Download OpenAPI specification:
The GeoDB API focuses on getting global places and regions. Easily obtain country, region, and place data for use in your apps!
Since the database is periodically updated, this may very rarely result in certain places being marked as deleted (e.g., duplicates removed).
By default, endpoints returning place data will exclude deleted places. However, if you're paging through results and want to avoid unexpected changes due to deletions, you can specify:
includeDeleted=SINCE_YESTERDAYincludeDeleted=SINCE_LAST_WEEK (if you're extra cautious)Find administrative divisions, filtering by optional criteria. If no criteria are set, you will get back all known divisions.
| location | string Only places near this location. Latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get administrative division details such as location coordinates, population, and elevation above sea-level (if available).
| divisionId required | string An admin-division id (either native 'id' or 'wikiDataId') |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "elevationMeters": 10,
- "latitude": 40.67,
- "longitude": -73.94,
- "population": 8398748,
- "timezone": "America__New_York",
- "deleted": false
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find cities near the given administrative division, filtering by optional criteria. If no criteria are set, you will get back all known cities.
| divisionId required | string An admin-division id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only cities for these types (comma-delimited): ADM2 | CITY |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find administrative divisions near the given division, filtering by optional criteria. If no criteria are set, you will get back all known divisions.
| divisionId required | string An admin-division id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find places near the given administrative division, filtering by optional criteria. If no criteria are set, you will get back all known places.
| divisionId required | string An admin-division id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find cities, filtering by optional criteria. If no criteria are set, you will get back all known cities.
| location | string Only places near this location. Latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only cities for these types (comma-delimited): ADM2 | CITY |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find cities near the given city, filtering by optional criteria. If no criteria are set, you will get back all cities within the default radius.
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only cities for these types (comma-delimited): ADM2 | CITY |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find administrative divisions near the given city, filtering by optional criteria. If no criteria are set, you will get back all divisions within the default radius.
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find places near the given city, filtering by optional criteria. If no criteria are set, you will get back all places within the default radius.
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get city details such as location coordinates, population, and elevation above sea-level (if available).
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "elevationMeters": 10,
- "latitude": 40.67,
- "longitude": -73.94,
- "population": 8398748,
- "timezone": "America__New_York",
- "deleted": false
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get distance from the given city
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| toCityId required | string Distance to this city |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
{- "data": 0.8008281904610115,
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get city date-time
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
{- "data": "2000-01-23T04:56:07.000+00:00",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}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).
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "elevationMeters": 10,
- "latitude": 40.67,
- "longitude": -73.94,
- "population": 8398748,
- "timezone": "America__New_York",
- "deleted": false
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get city time
| cityId required | string A city id (either native 'id' or 'wikiDataId') |
{- "data": "data",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find countries, filtering by optional criteria. If no criteria are set, you will get back all known countries.
| currencyCode | string Only countries supporting this currency |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort countries. Format: ±SORT_FIELD where SORT_FIELD = code | name |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "code": "US",
- "currencyCodes": [
- "USD"
], - "name": "United States",
- "wikiDataId": "Q30"
}, - {
- "code": "US",
- "currencyCodes": [
- "USD"
], - "name": "United States",
- "wikiDataId": "Q30"
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get country details such as number of regions.
| countryId required | string An ISO-3166 country code or WikiData id |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "code": "US",
- "callingCode": "+1",
- "currencyCodes": [
- "USD"
], - "name": "United States",
- "numRegions": 56,
- "wikiDataId": "Q30"
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get the country's places. The country is omitted in the response.
| countryId required | string An ISO-3166 country code or WikiData id |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort place results. 'Format: ±SORT_FIELD,±SORT_FIELD' where SORT_FIELD = elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get the country's regions. These could be states, provinces, districts, or otherwise major political divisions.
| countryId required | string An ISO-3166 country code or WikiData id |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort regions. Format: ±SORT_FIELD where SORT_FIELD = fipsCode | isoCode | name |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "countryCode": "US",
- "fipsCode": 6,
- "isoCode": "CA",
- "name": "California",
- "wikiDataId": "Q99"
}, - {
- "countryCode": "US",
- "fipsCode": 6,
- "isoCode": "CA",
- "name": "California",
- "wikiDataId": "Q99"
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get country region details such as number of cities.
| countryId required | string An ISO-3166 country code or WikiData id |
| regionCode required | string An ISO-3166 or FIPS region code |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "capital": "Sacramento",
- "countryCode": "US",
- "fipsCode": 6,
- "isoCode": "CA",
- "name": "California",
- "numCities": 1532,
- "wikiDataId": "Q99"
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get country region administrative divisions. The country and region info is omitted in the response.
| countryId required | string An ISO-3166 country code or WikiData id |
| regionCode required | string An ISO-3166 or FIPS region code |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort place results. 'Format: ±SORT_FIELD,±SORT_FIELD' where SORT_FIELD = elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get country region cities. The country and region info is omitted in the response.
| countryId required | string An ISO-3166 country code or WikiData id |
| regionCode required | string An ISO-3166 or FIPS region code |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only cities for these types (comma-delimited): ADM2 | CITY |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort place results. 'Format: ±SORT_FIELD,±SORT_FIELD' where SORT_FIELD = elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get country region places. The country and region info is omitted in the response.
| countryId required | string An ISO-3166 country code or WikiData id |
| regionCode required | string An ISO-3166 or FIPS region code |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort place results. 'Format: ±SORT_FIELD,±SORT_FIELD' where SORT_FIELD = elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find cities near the given location, filtering by optional criteria. If no criteria are set, you will get back all cities within the default radius.
| locationId required | string A latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only cities for these types (comma-delimited): ADM2 | CITY |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find administrative divisions near the given location, filtering by optional criteria. If no criteria are set, you will get back all divisions within the default radius.
| locationId required | string A latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find places near the given location, filtering by optional criteria. If no criteria are set, you will get back all places within the default radius.
| locationId required | string A latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find places, filtering by optional criteria. If no criteria are set, you will get back all known places.
| location | string Only places near this location. Latitude/longitude in ISO-6709 format: ±DD.DDDD±DDD.DDDD |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find places near the given place, filtering by optional criteria. If no criteria are set, you will get back all places within the default radius.
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
| radius | integer <int32> The location radius within which to find places |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
| countryIds | string Only places in these countries (comma-delimited country codes or WikiData ids) |
| excludedCountryIds | string Only places NOT in these countries (comma-delimited country codes or WikiData ids) |
| minPopulation | integer <int32> Only places having at least this population |
| maxPopulation | integer <int32> Only places having no more than this population |
| namePrefix | string Only entities 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 | boolean Default: true When name-prefix matching, whether or not to match on names in the default language if a non-default languageCode is set. |
| timeZoneIds | string Only places in these time-zones (comma-delimited) |
| types | string Only places for these types (comma-delimited): ADM2 | CITY | ISLAND |
| asciiMode | boolean Default: false Display results using ASCII characters |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| languageCode | string Display results in this language |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
| sort | string How to sort places. Format: ±SORT_FIELD,±SORT_FIELD where SORT_FIELD = countryCode | elevation | name | population |
| includeDeleted | string Default: "NONE" Whether to include any divisions marked deleted: ALL | SINCE_YESTERDAY | SINCE_LAST_WEEK | NONE |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}, - {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "latitude": 40.67,
- "longitude": -73.94
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get place details such as location coordinates, population, and elevation above sea-level (if available).
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "elevationMeters": 10,
- "latitude": 40.67,
- "longitude": -73.94,
- "population": 8398748,
- "timezone": "America__New_York",
- "deleted": false
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get distance from the given place
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
| toPlaceId required | string Distance to this place |
| distanceUnit | string Default: "MI" The unit of distance: MI | KM |
{- "data": 0.8008281904610115,
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get place date-time
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
{- "data": "2000-01-23T04:56:07.000+00:00",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}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).
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
| asciiMode | boolean Default: false Display results using ASCII characters |
| languageCode | string Display results in this language |
{- "data": {
- "id": 123214,
- "wikiDataId": "Q60",
- "type": "CITY",
- "name": "New York City",
- "country": "United States of America",
- "countryCode": "US",
- "region": "New York",
- "regionCode": "NY",
- "elevationMeters": 10,
- "latitude": 40.67,
- "longitude": -73.94,
- "population": 8398748,
- "timezone": "America__New_York",
- "deleted": false
}, - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get place time
| placeId required | string A place id (either native 'id' or 'wikiDataId') |
{- "data": "data",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Find currencies, filtering by optional criteria. If no criteria are set, you will get back all known currencies.
| countryId required | string Currencies for this country id |
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "code": "USD",
- "countryCodes": [
- "PR",
- "MP",
- "IO",
- "FM",
- "PW",
- "GU",
- "BQ",
- "TC",
- "VG",
- "AS",
- "VI",
- "TL",
- "UM",
- "MH",
- "EC",
- "US"
], - "symbol": "$"
}, - {
- "code": "USD",
- "countryCodes": [
- "PR",
- "MP",
- "IO",
- "FM",
- "PW",
- "GU",
- "BQ",
- "TC",
- "VG",
- "AS",
- "VI",
- "TL",
- "UM",
- "MH",
- "EC",
- "US"
], - "symbol": "$"
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get all supported languages
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "code": "en",
- "name": "English"
}, - {
- "code": "en",
- "name": "English"
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get all known locales
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "code": "en_US"
}, - {
- "code": "en_US"
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get all known time-zones
| hateoasMode | boolean Default: true Include HATEOAS-style links in results |
| limit | integer <int32> Default: 10 The maximum number of results to retrieve |
| offset | integer <int32> Default: 0 The zero-ary offset index into the results |
{- "metadata": {
- "currentOffset": 0,
- "totalCount": 100
}, - "data": [
- {
- "id": "Africa__Abidjan",
- "name": "Greenwich Mean Time",
- "rawUtcOffsetHours": 0
}, - {
- "id": "Africa__Abidjan",
- "name": "Greenwich Mean Time",
- "rawUtcOffsetHours": 0
}
], - "links": [
- {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}, - {
- "rel": "next",
- "href": "/data/world/v1/geo/cities?offset=10&limit=10"
}
], - "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get time-zone
| zoneId required | string A time-zone id |
{- "rawUtcOffsetHours": 0,
- "name": "name",
- "id": "id",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get time-zone date-time
| zoneId required | string A time-zone id |
{- "data": "2000-01-23T04:56:07.000+00:00",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}Get time-zone time
| zoneId required | string A time-zone id |
{- "data": "data",
- "errors": [
- {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}, - {
- "code": "ENTITY_NOT_FOUND",
- "message": "Param [someParam] has invalid value: invalidValue"
}
]
}