Loading
https://api.apifreaks.com/v1.0/geo/countries
$ pip install requests
Click Test it to start the request and see the response here!
| Field | Type | Requirement | Description |
|---|---|---|---|
| countries | Array | Mandatory | An array of country objects matching the applied filters. |
| countries[].name | String | Mandatory | The full English name of the country (e.g., "Afghanistan"). |
| countries[].iso_alpha_2 | String | Mandatory | The ISO 3166-1 alpha-2 two-letter country code (e.g., "AF"). |
| countries[].iso_alpha_3 | String | Mandatory | The ISO 3166-1 alpha-3 three-letter country code (e.g., "AFG"). |
| countries[].iso_numeric | Number | Mandatory | The ISO 3166-1 numeric country code (e.g., 4). |
| countries[].capital | String | Mandatory | The capital city of the country (e.g., "Kabul"). |
| countries[].region | String | Mandatory | The broad geographical region the country belongs to (e.g., "Asia", "Europe"). |
| countries[].subregion | String | Mandatory | The more specific subregion the country belongs to (e.g., "Southern Asia", "Western Europe"). |