Get Region Details
get_region_detailsRetrieve population, area, capital city, and Wikidata links for every ADM1 region of a country, then join them to map geometry using match_key.
Instructions
Get population, area, capital city and reference links for each first-level region (ADM1) of a country, from Wikidata.
Complements get_map_data, which supplies the geometry but carries no statistics. Join the two on the 'match_key' field, which normalises the different naming conventions the two sources use.
Each region returns its ISO 3166-2 code, English and native names, population, area in km2, its capital city (with that city's own population and coordinates), and Wikidata plus Wikipedia URLs for further reading. Coverage is best for ADM1; many countries do not publish ISO 3166-2 codes below that level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||