Loading
Loading
https://api.apifreaks.com/v1.0/geo/admin-unit/details
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/geo/admin-unit/details"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
| Field | Type | Requirement | Description |
|---|---|---|---|
| name | String | Mandatory | Name of the administrative unit. |
| admin_code | String | Mandatory | Administrative code of the unit. |
| admin_iso3166_2 | String | Mandatory | Admin code in ISO 3166-1 alpha-2 format. |
| admin_level | String | Mandatory | Level or type of the administrative unit (e.g., province, region). |
| country_iso3166_2 | String | Mandatory | Country code in ISO 3166-1 alpha-2 format. |
| country_name | String | Mandatory | Name of the country. |