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

What you can query

Fields

FieldTypeDescription
geonameidintegerGeoNames identifier.
namePlace name (UTF-8).
ascii_namePlain ASCII name.
latnumberLatitude, decimal degrees WGS84.
lonnumberLongitude, decimal degrees WGS84.
feature_codeGeoNames feature code (PPL, PPLA...).
country_codeISO 3166-1 alpha-2 country code.
country_nameCountry name.
admin1_codeFirst-level admin division code.
admin1_nameFirst-level admin division name, null if unknown.
admin2_codeSecond-level admin division code.
populationintegerPopulation, null if unknown.
elevation_mintegerElevation in metres, null if not given.
dem_mintegerDigital elevation model value in metres.
timezoneIANA timezone id.
modification_dateLast modification date in GeoNames (YYYY-MM-DD).

Extract of the data

First 5 records of the free sample, 8 of 16 fields shown.

geonameidnameascii_namelatlonfeature_codecountry_codecountry_name
3038832VilaVila42.531761.56654PPLADAndorra
3038999SoldeuSoldeu42.576881.66769PPLADAndorra
3039077SisponySispony42.533681.51613PPLADAndorra
3039154El TarterEl Tarter42.579521.65362PPLADAndorra
3039163Sant Julià de LòriaSant Julia de Loria42.463721.49129PPLAADAndorra

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

Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.