Address and sign-up forms
Country, state and city pickers that stay in sync, with postal code formats and phone prefixes for validation.
Countries · States · CitiesClean, consistent data for 252 countries, 5,056 states and provinces and 235,669 cities, plus airports, ports, timezones, currencies and population statistics. No sign-up. No API key. Just JSON.
{
"ip": "203.0.113.42",
"city": "Tokyo",
"region": "Tokyo", "regionCode": "13",
"country": "JP", "continent": "AS", "isEU": false,
"latitude": "35.68536", "longitude": "139.75309",
"timezone": "Asia/Tokyo",
"countryInfo": { "name": "Japan", "currency": "JPY", "…" },
"stateInfo": { "…" }, "cityInfo": { "…" }
} One request tells you where a visitor is: country, region, city, timezone and currency. Use it to prefill forms, pick a default currency or show local time.
From capitals to small towns. Every point on this map is a city in Geocoded, plotted from its real coordinates.
Country, state and city pickers that stay in sync, with postal code formats and phone prefixes for validation.
Countries · States · CitiesSet the right currency, timezone, clock format and first day of the week for every visitor automatically.
IP lookup · Currencies · TimezonesAirports with IATA codes, seaports and border crossings, each with coordinates and country.
Airports · Ports · AirlinesPopulation, age, income, life expectancy and migration for every country, ready to chart.
Statistics · MigrationFilter by country or state, sort by any field and return only the fields you use. Every list comes back paginated in the same shape, so your code stays simple.
curl "https://api.geocoded.me/v2/countries/JP/states/Tokyo/cities ?sort=-population&fields=name,population&limit=3"
{
"data": [
{ "name": "Tokyo", "population": 9733276 },
{ "name": "Setagaya", "population": 940071 },
{ "name": "Ōta", "population": 748081 }
],
"meta": { "total": 221, "limit": 3, "hasMore": true }
}Type a name and get matching countries, states and cities in one request. Ideal for location autocomplete.
of Japanese residents are 65 or older, the second-highest share in the world after Monaco.
Source: World Bank, 2025of people living in Qatar were born in another country.
Source: UN DESA, 2024of the population is under 15, the youngest country in the world.
Source: World Bank, 2025Yes. The API is free to use, with no sign-up and no API key. The source code is open under the MIT licence.
Yes. The data is published under CC BY 4.0, which allows commercial use. Credit Geocoded and its sources when you redistribute the data.
GeoNames, the World Bank, UN DESA, UN/LOCODE, IATA, IANA, ISO and Unicode CLDR. Every dataset lists its source and year.
Datasets are refreshed from their sources and republished daily.
Responses are served and cached at the edge, close to your users, so repeat requests return almost instantly.