v1

latestSwagger 2.0Creative Commons Attribution 3.02026-07-14263452.9 KB
Geo

Get city admin region

Get the details for the containing populated place (e.g., its county or other administrative division), including location coordinates, population, and elevation above sea-level (if available).

get/geo/cities/{cityId}/locatedIn

Path parameters

cityIdstring required

A city id (either native 'id' or 'wikiDataId')

Query parameters

asciiModeboolean

Display results using ASCII characters

languageCodestring

Display results in this language

Response

Populated-place details

Example response

{
  "data": {
    "country": "United States of America",
    "countryCode": "US",
    "deleted": false,
    "elevationMeters": 10,
    "id": 123214,
    "latitude": 40.67,
    "longitude": -73.94,
    "name": "New York City",
    "population": 8398748,
    "region": "New York",
    "regionCode": "NY",
    "timezone": "America__New_York",
    "type": "CITY",
    "wikiDataId": "Q60"
  }
}