GeoNames Cities 500+ API: 236,971 places worldwide
Geocode settlements worldwide down to about 500 inhabitants, with admin region, population, timezone and elevation, or find those near a point.
Search 236,971 cities and settlements (population above 500 or admin seats) from GeoNames: coordinates, country, admin region, population, elevation, timezone. Data from GeoNames (CC BY 4.0). Embedded data, no scraping, pay per record.
Query the full dataset (API, CSV, JSON) Free sample and schema on GitHub
At a glance
- Official source
- Source: GeoNames, https://www.geonames.org, licensed under Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/). Credit 'GeoNames' when you reuse this data.
- Licence
- CC BY 4.0 (GeoNames, https://www.geonames.org)
- Snapshot
- 2026-11
- Coverage
- GeoNames gazetteer extract cities500.zip (https://download.geonames.org/export/dump/cities500.zip), downloaded 2026-11; licence stated in https://download.geonames.org/export/dump/readme.txt : Creative Commons Attribution 4.0, data provided 'as is' without warranty of accuracy, timeliness or completeness. Attribution to GeoNames is required. Country names come from GeoNames countryInfo.txt, admin region names from admin1CodesASCII.txt. In the source, population 0 and empty elevation mean unknown: both are returned as null, never 0. Alternate names are not included.
Who uses it
- Logistics software developer: Resolve customer town names to lat, lon, country_code and admin1_name for delivery zoning.
- Scheduling app developer: Attach the IANA timezone to each user city from name and country_code.
- Market expansion analyst: List towns of a country sorted by population to rank candidate cities.
- Travel content editor: Find settlements within a radius of a point with dem_m elevation for mountain destination pages.
What you can query
- Place name
- Admin region name (state, province)
- Country name
- Country code (ISO 3166-1 alpha-2, e.g. FR, US)
- GeoNames feature code (PPL, PPLA, PPLA2, PPLC, PPLX...)
- IANA timezone (e.g. Europe/Paris)
- Min population / Max population
- Min elevation (m, DEM) / Max elevation (m, DEM)
Fields
| Field | Type | Description |
|---|---|---|
geonameid | integer | GeoNames identifier. |
name | Place name (UTF-8). | |
ascii_name | Plain ASCII name. | |
lat | number | Latitude, decimal degrees WGS84. |
lon | number | Longitude, decimal degrees WGS84. |
feature_code | GeoNames feature code (PPL, PPLA...). | |
country_code | ISO 3166-1 alpha-2 country code. | |
country_name | Country name. | |
admin1_code | First-level admin division code. | |
admin1_name | First-level admin division name, null if unknown. | |
admin2_code | Second-level admin division code. | |
population | integer | Population, null if unknown. |
elevation_m | integer | Elevation in metres, null if not given. |
dem_m | integer | Digital elevation model value in metres. |
timezone | IANA timezone id. | |
modification_date | Last modification date in GeoNames (YYYY-MM-DD). |
Extract of the data
First 5 records of the free sample, 8 of 16 fields shown.
| geonameid | name | ascii_name | lat | lon | feature_code | country_code | country_name |
|---|---|---|---|---|---|---|---|
| 3038832 | Vila | Vila | 42.53176 | 1.56654 | PPL | AD | Andorra |
| 3038999 | Soldeu | Soldeu | 42.57688 | 1.66769 | PPL | AD | Andorra |
| 3039077 | Sispony | Sispony | 42.53368 | 1.51613 | PPL | AD | Andorra |
| 3039154 | El Tarter | El Tarter | 42.57952 | 1.65362 | PPL | AD | Andorra |
| 3039163 | Sant Julià de Lòria | Sant Julia de Loria | 42.46372 | 1.49129 | PPLA | AD | Andorra |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/geonames-cities-500').call(run_input={'countryCodes': ['US'], 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)HTTP:
curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~geonames-cities-500/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"countryCodes": ["US"], "maxResults": 10}'
FAQ
Where does the GeoNames Cities 500+: 236,971 places worldwide data come from?
Source: GeoNames, https://www.geonames.org, licensed under Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/). Credit 'GeoNames' when you reuse this data. GeoNames gazetteer extract cities500.zip (https://download.geonames.org/export/dump/cities500.zip), downloaded 2026-11; licence stated in https://download.geonames.org/export/dump/readme.txt : Creative Commons Attribution 4.0, data provided 'as is' without warranty of accuracy, timeliness or completeness. Attribution to GeoNames is required. Country names come from GeoNames countryInfo.txt, admin region names from admin1CodesASCII.txt. In the source, population 0 and empty elevation mean unknown: both are returned as null, never 0. Alternate names are not included.
What can I filter on?
Place name; Admin region name (state, province); Country name; Country code (ISO 3166-1 alpha-2, e.g. FR, US); GeoNames feature code (PPL, PPLA, PPLA2, PPLC, PPLX...); IANA timezone (e.g. Europe/Paris); Min population / Max population; Min elevation (m, DEM) / Max elevation (m, DEM).
Is there a free sample?
Yes: 100 records in JSONL and CSV, with the schema, free on GitHub at https://github.com/adminglobalcostdata/geonames-cities-500.
How much does it cost?
The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/geonames-cities-500.
Can an AI agent query it?
Yes, through the MCP server io.github.adminglobalcostdata/world-reference-datasets on the official MCP registry.
How recent is the data?
Snapshot of 2026-11 from the official source.
Related datasets
- Natural Earth Populated Places: 7,342 cities worldwide
- ROR Research Organizations: 146,716 institutions
- OpenAlex Institutions: 143,455 universities and labs
- Global Power Plants: 34,936 plants with capacity and fuel
- Canada GHG Emissions by Facility 2004-2024: 20,685 rows
- UK Flood Monitoring Stations: 5,527 stations
- Canada Vehicle Fuel Ratings 1995-2026: 30,886 models
- CITES Species List - 36,900 species by appendix
- Domain Risk and Authority: Rank, Disposable, .gov Type
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.