geo-api
Static Country / State / City JSON, versioned under /v1. GET only, CORS open, cached for a day.
| Endpoint | Returns |
|---|---|
/v1/countries.json | All countries: id, name, iso2, iso3, emoji_flag, phone_code |
/v1/countries/{ISO2}.json | One country with capital, currency, timezones, region, native name… |
/v1/states/{ISO2}.json | States of a country: id, name, state_code, type, timezone… |
/v1/cities/{ISO2}/{STATE_CODE}.json | Cities of a state: id, name, latitude, longitude (timezone when it differs from the state's) |
/v1/search-index/{ISO2}.json | Every city of a country as [id, name, state_code], for autocomplete |
/v1/meta.json | Version, 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.