Places that fit together
Browse countries, their states and provinces, and the cities within them.
Countries, states, and cities in simple, ready-to-use JSON. Build location-aware experiences without an API key or a backend to manage.
// Get all countries
fetch('./api/v1/countries.json')
.then(function (response) { return response.json(); })
.then(function (data) { console.log(data); });
// Get a country by ISO2
fetch('./api/v1/countries/us.json')
.then(function (response) { return response.json(); })
.then(function (data) { console.log(data); });
A world of places, in one dataset
Loading dataset statistics…
—
Countries
—
States & provinces
—
Cities
The essentials, made simple
From a better address form to a searchable city picker, get the data you need without adding complexity.
Browse countries, their states and provinces, and the cities within them.
Use country-specific search files and normalized names to find a city quickly.
Serve the generated JSON files from your favorite static host or CDN.
A few places to start
Each endpoint is a static file. Open one to see the data, or try the examples in the playground.
See all endpointsSee it in action
Try the address picker, city search, and ID lookup with real data.