admin_divisions
Find administrative divisions like cities and regions by filtering criteria such as location, population, country, or name prefix to retrieve geographic data.
Instructions
Find administrative divisions, filtering by optional criteria. If no criteria are set, you will get back all known divisions with a population of at least 1000
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | Only divisions near this location. Latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD | |
| radius | No | The location radius within which to find divisions | 0 |
| distanceUnit | No | The unit of distance to use: MI | KM | |
| countryIds | No | Only divisions in these countries (comma-delimited country codes or WikiData ids) | |
| excludedCountryIds | No | Only divisions NOT in these countries (comma-delimited country codes or WikiData ids) | |
| timeZoneIds | No | Only divisions in these time-zones | |
| minPopulation | No | Only divisions having at least this population | 0 |
| maxPopulation | No | Only divisions having no more than this population | 0 |
| namePrefix | No | Only divisions whose names start with this prefix. If languageCode is set, the prefix will be matched on the name as it appears in that language. | |
| namePrefixDefaultLangResults | No | Example value: | |
| languageCode | No | Display results in this language | |
| asciiMode | No | Example value: | |
| hateoasMode | No | Example value: | |
| includeDeleted | No | Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE | |
| limit | No | The maximum number of results to retrieve | 0 |
| offset | No | The zero-ary offset into the results | 0 |
| sort | No | How to sort the results. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |