Generate a static JSON API for geographic data including countries, states, and cities that can be hosted on any CDN
Transform geographic datasets into a small, cacheable, CDN-ready API with search capabilities
Countries
States/Provinces
Cities
Get started with our API in seconds:
// Get all countries
fetch('/api/v1/countries.json')
.then(response => response.json())
.then(data => console.log(data));
// Get country by ISO2
fetch('/api/v1/countries/us.json')
.then(response => response.json())
.then(data => console.log(data));
GET /api/v1/countries.json - All countriesGET /api/v1/countries/{iso2}.json - Single countryGET /api/v1/states/{iso3166_2}.json - Single stateGET /api/v1/states/country/{iso2}.json - States by country
GET /api/v1/cities/batch/{batchId}.json - Cities in batches
GET /api/v1/cities/country/{iso2}.json - Cities by country
GET /api/v1/cities/state/{iso3166_2}.json - Cities by state
Node.js