City Geocoding API

GET

Turn a city name into coordinates, or coordinates into the nearest cities, for 31,000+ cities worldwide, with each city's time zone, UTC offset and current local time.

Try it live

GET

About this API

Turn a city name into coordinates, or coordinates into the nearest cities, for 31,000+ cities worldwide, with each city's time zone, UTC offset and current local time. Data: 31,000+ cities from GeoNames (cities with 15,000+ people, CC BY 4.0) plus a curated set; credit GeoNames when you display results. City-level only: no street addresses or postcodes. Names match case- and accent-insensitively, including alternate names; exact matches come first, then larger cities. The time zone comes from the city record; local time and UTC offset are computed at request time.

Endpoint

https://apistack.online/api/data/geocoding/v1

Method

GET

Category

data