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
- Cartographer: Choose labels per zoom level from min_zoom, scalerank and rank_max for a world basemap.
- Data visualisation designer: Plot places flagged is_country_capital or is_megacity, sized by pop_max, on global charts.
- Edtech geography quiz publisher: List capitals and is_world_city places per country with lat and lon for map quizzes.
What you can query
- 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)
Fields
| Field | Type | Description |
|---|---|---|
ne_id | integer | Natural Earth feature identifier. |
name | Place name. | |
name_ascii | Plain ASCII name. | |
name_alt | Alternate name, null if none. | |
feature_class | Natural Earth feature class. | |
country | Country name. | |
country_iso_a2 | ISO 3166-1 alpha-2 code, null where Natural Earth has none. | |
country_a3 | Natural Earth admin-0 A3 code. | |
sovereign | Sovereign state name. | |
admin1 | Admin-1 region name. | |
lat | number | Latitude, decimal degrees. |
lon | number | Longitude, decimal degrees. |
pop_max | integer | Maximum population estimate, null if unknown. |
pop_min | integer | Minimum population estimate, null if unknown. |
pop_other | integer | Other population estimate, null if unknown. |
is_country_capital | boolean | True for a national capital. |
is_world_city | boolean | Natural Earth world city flag. |
is_megacity | boolean | Natural Earth megacity flag. |
rank_max | integer | Label rank from pop_max. |
rank_min | integer | Label rank from pop_min. |
scalerank | integer | Natural Earth scale rank. |
min_zoom | number | Suggested minimum map zoom. |
note | Natural Earth note, null if none. |
Extract of the data
First 5 records of the free sample, 8 of 23 fields shown.
| ne_id | name | name_ascii | name_alt | feature_class | country | country_iso_a2 | country_a3 |
|---|---|---|---|---|---|---|---|
| 1159112629 | Colonia del Sacramento | Colonia del Sacramento | Admin-1 capital | Uruguay | UY | URY | |
| 1159112647 | Trinidad | Trinidad | Admin-1 capital | Uruguay | UY | URY | |
| 1159112663 | Fray Bentos | Fray Bentos | Admin-1 capital | Uruguay | UY | URY | |
| 1159112679 | Canelones | Canelones | Admin-1 capital | Uruguay | UY | URY | |
| 1159112703 | Florida | Florida | Admin-1 capital | Uruguay | UY | URY |
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
- GeoNames Cities 500+: 236,971 places 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.