geo-api

Static Country / State / City JSON, versioned under /v1. GET only, CORS open, cached for a day.

EndpointReturns
/v1/countries.jsonAll countries: id, name, iso2, iso3, emoji_flag, phone_code
/v1/countries/{ISO2}.jsonOne country with capital, currency, timezones, region, native name…
/v1/states/{ISO2}.jsonStates of a country: id, name, state_code, type, timezone…
/v1/cities/{ISO2}/{STATE_CODE}.jsonCities of a state: id, name, latitude, longitude (timezone when it differs from the state's)
/v1/search-index/{ISO2}.jsonEvery city of a country as [id, name, state_code], for autocomplete
/v1/meta.jsonVersion, generated_at and row counts

Example: /v1/cities/IN/MH.json (Maharashtra). Lists are sorted by name. A state without a usable code is published under its numeric id.