Natural Earth Populated Places API: 7,342 cities worldwide

Label maps with the right cities at each zoom level, using Natural Earth ranks, population estimates and capital or megacity flags.

Search 7,342 populated places from Natural Earth 1:10m (v5.1.2): names, country, admin region, coordinates, population estimates, capital and megacity flags, rank. Public domain. 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
Made with Natural Earth. Free vector and raster map data @ naturalearthdata.com. Natural Earth data is in the public domain; crediting is optional.
Licence
Public domain (Natural Earth)
Snapshot
Natural Earth v5.1.2, prepared 2026-11
Coverage
Natural Earth ne_10m_populated_places_simple, GeoJSON from https://github.com/nvkelso/natural-earth-vector (tag v5.1.2). Terms of use (https://www.naturalearthdata.com/about/terms-of-use/): all Natural Earth vector and raster data are in the public domain, free for personal, educational and commercial use, crediting unnecessary. Source value -99, empty strings and population 0 (unknown in Natural Earth) are returned as null, never 0.

Who uses it

What you can query

Fields

FieldTypeDescription
ne_idintegerNatural Earth feature identifier.
namePlace name.
name_asciiPlain ASCII name.
name_altAlternate name, null if none.
feature_classNatural Earth feature class.
countryCountry name.
country_iso_a2ISO 3166-1 alpha-2 code, null where Natural Earth has none.
country_a3Natural Earth admin-0 A3 code.
sovereignSovereign state name.
admin1Admin-1 region name.
latnumberLatitude, decimal degrees.
lonnumberLongitude, decimal degrees.
pop_maxintegerMaximum population estimate, null if unknown.
pop_minintegerMinimum population estimate, null if unknown.
pop_otherintegerOther population estimate, null if unknown.
is_country_capitalbooleanTrue for a national capital.
is_world_citybooleanNatural Earth world city flag.
is_megacitybooleanNatural Earth megacity flag.
rank_maxintegerLabel rank from pop_max.
rank_minintegerLabel rank from pop_min.
scalerankintegerNatural Earth scale rank.
min_zoomnumberSuggested minimum map zoom.
noteNatural Earth note, null if none.

Extract of the data

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

ne_idnamename_asciiname_altfeature_classcountrycountry_iso_a2country_a3
1159112629Colonia del SacramentoColonia del SacramentoAdmin-1 capitalUruguayUYURY
1159112647TrinidadTrinidadAdmin-1 capitalUruguayUYURY
1159112663Fray BentosFray BentosAdmin-1 capitalUruguayUYURY
1159112679CanelonesCanelonesAdmin-1 capitalUruguayUYURY
1159112703FloridaFloridaAdmin-1 capitalUruguayUYURY

Quick start

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/natural-earth-populated-places').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~natural-earth-populated-places/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' -d '{"countryCodes": ["US"], "maxResults": 10}'

FAQ

Where does the Natural Earth Populated Places: 7,342 cities worldwide data come from?

Made with Natural Earth. Free vector and raster map data @ naturalearthdata.com. Natural Earth data is in the public domain; crediting is optional. Natural Earth ne_10m_populated_places_simple, GeoJSON from https://github.com/nvkelso/natural-earth-vector (tag v5.1.2). Terms of use (https://www.naturalearthdata.com/about/terms-of-use/): all Natural Earth vector and raster data are in the public domain, free for personal, educational and commercial use, crediting unnecessary. Source value -99, empty strings and population 0 (unknown in Natural Earth) are returned as null, never 0.

What can I filter on?

Place name; Country name; Admin region name (state, province); Country code (ISO 3166-1 alpha-2, e.g. FR, US); Feature class (Populated place, Admin-0 capital, Admin-1 capital, Admin-1 region capital, Admin-0 region capital, Scientific station, Historic place...); Min population (pop_max) / Max population (pop_max).

Is there a free sample?

Yes: 100 records in JSONL and CSV, with the schema, free on GitHub at https://github.com/adminglobalcostdata/natural-earth-populated-places.

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/natural-earth-populated-places.

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 Natural Earth v5.1.2, prepared 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.