Loading
Loading
https://api.apifreaks.com/v1.0/geo/admin-levels
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-levels"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
| Field | Type | Requirement | Description |
|---|---|---|---|
| admin_levels | Array | Mandatory | An array of strings listing all distinct administrative level types present in the specified country. |
| admin_levels[] | String | Mandatory | An administrative level type name (e.g., "province", "federal capital territory", "administered area"). |