v6

latestOpenAPI 3.1.02026-08-0597255315.1 KB
location

List available locations

Without country, returns every region and country (states and cities empty) — ~250 rows, cheap to cache. Pass country to get one country's full subtree with states and cities. The previous behavior of returning all ~45k cities in one response is gone; enumerate per country instead.

get/v1/location.getLocations

Query parameters

countrystring

Country name or ISO code. When set, the response is that country's region with its states and cities populated. Without it, all regions and countries are returned, states and cities empty

Example:DE

Country name or ISO code. When set, the response is that country's region with its states and cities populated. Without it, all regions and countries are returned, states and cities empty

Response

OK

namestring required

The name of the region

Example response

[
  {
    "name": "Europe"
  }
]