data-geo / WorldPop · also: LandScan Mosaic
WorldPop population
WorldPop's gridded population, release R2025A: every country at 100 m for 2015–2030, with sex and age. Read the files by range, or ask the API how many people live in any place or shape.
How the WorldPop mirror works: the architecture, measured speeds and what we learned, in the open.
Data © WorldPop, release R2025A v1 (constrained, 100 m), CC BY 4.0. Cite WorldPop for every figure: population 10.5258/SOTON/WP00839, age and sex WP00841, under 18 WP00847; full citations and terms. WorldPop calls R2025A an alpha that may change. Changes made by data-geo: country files re-encoded as cloud-optimised GeoTIFFs with every value kept, age and sex files combined into one file per country and year, and new products computed from them: global VRTs, the Zarr cube, sum pyramids, admin totals and API counts. This is an independent mirror run by Baobab Tech, not affiliated with or endorsed by WorldPop.
WorldPop's notice: "This data is not intended, and should not be used, for purposes that discriminate against, exploit, surveil, or otherwise harm individuals or vulnerable populations; users are expected to apply it responsibly, assess the risks of their own analyses (particularly when combining it with other datasets) and are solely responsible for how they use it."
Why it exists
WorldPop publishes one GeoTIFF per country and year, from servers that ignore HTTP range requests. Reading one city means downloading the whole country: 160 MB for Ethiopia, each year. Here the same grids are stored as Cloud-Optimized GeoTIFFs, a Zarr cube and summary tables on storage that answers range requests, so a city reads in under a second.
Ask the API
Pick the cheapest call that answers the question. Every answer is JSON and names its source; a 404 means not published, never a guess.
| Question | Call | Speed |
|---|---|---|
| How many people in each region (or district) of a country? | GET /v1/worldpop/totals?iso3=KEN&level=ADM1&year=2026 | lookup |
| How many people in one named place? | GET /v1/worldpop/total?iso3=KEN&unit={shape_id}&year=2026 | lookup |
| How many people inside my shape: a project area, a catchment, a flood extent? | POST /v1/worldpop/polygon?year=2026 with GeoJSON | ~1 s city, 4–8 s country |
| How many people within 1, 5 and 10 km of a site? | GET /v1/worldpop/catchment?lon=36.8219&lat=-1.2921&radii=1,5,10&year=2025 | ~1 s |
| How many people live in this 100 m cell? | GET /v1/worldpop/point?lon=36.8219&lat=-1.2921&year=2026 | under 1 s |
| How many children under 5, women 15–49, people 65 and over, in a place or shape? | Add &groups=summary to any call above (by sex and age) | the same call, a little more |
| Median age, sex ratio, dependency ratios? | Add &indicators=true to any call above | the same call |
| How did a place or area change from 2015 to 2030, and when did it peak? | Use years=2015-2030 in place of year on any call above; for a large area over many years, read the Zarr cube (below) | a lookup for units; one read of the edge per year for shapes |
| The same shape, point or catchment in LandScan Mosaic (ORNL's ambient, 24-hour population, 1975–2024)? | See LandScan Mosaic | as WorldPop's |
| What is published? | GET /v1/catalog | lookup |
Regions of a country
curl "https://data-geo.baobabtech.app/v1/worldpop/totals?iso3=KEN&level=ADM1&year=2026"
{
"iso3": "KEN", "level": "ADM1", "year": 2026, "release": "r2025a",
"units": [
{ "shape_id": "32016919B57908315498598", "shape_name": "Nairobi", "population": 5762596.59 },
{ "shape_id": "32016919B11020559484650", "shape_name": "Kiambu", "population": 3273407.47 },
… 47 counties
],
"source": "WorldPop R2025A constrained 100 m, doi:10.5258/SOTON/WP00839, CC BY 4.0; units from geoBoundaries gbOpen; …"
}
level is ADM0 (the country), ADM1 or ADM2. Units are geoBoundaries; take a shape_id from here to ask about one unit. Their edges miss some people (2030: 69.5 million at ADM0, 55.3 million at ADM2; Russia 14% at ADM2), listed in admin_totals.unassigned.json:
curl "https://data-geo.baobabtech.app/v1/worldpop/total?iso3=KEN&unit=32016919B57908315498598&year=2026"
→ { "shape_name": "Nairobi", "population": 5762596.59,
"boundary_source": "RCMRD GeoPortal, Africa GeoPortal", "boundary_year": "2020", "boundary_license": "Public Domain", … }
Any shape
Send a GeoJSON Polygon, MultiPolygon, Feature or FeatureCollection in longitude/latitude. Holes are subtracted; several parts are added up.
curl -X POST "https://data-geo.baobabtech.app/v1/worldpop/polygon?year=2025" \
-H "content-type: application/json" \
-d '{"type":"Feature","properties":{"name":"central Addis"},
"geometry":{"type":"Polygon","coordinates":[[[38.70,8.98],[38.80,8.98],[38.80,9.06],[38.70,9.06],[38.70,8.98]]]}}'
→ { "population": 1606479.3, "cells": 11356, "method": { … }, … }
| Shape (2025) | People | Answer |
|---|---|---|
Box over central Addis Ababa (a Feature) | 1,606,479 | 0.9 s |
| The same box with a 4 km hole in the middle | 1,290,299 | under 0.1 s |
Central Addis and central Nairobi together (a MultiPolygon) | 2,491,252 | 0.6 s |
| 5 km around Nairobi's centre (a 64-sided circle) | 931,744 | 0.6 s |
| Nairobi county boundary | 5,653,421 | 1.3–2 s |
| All of Ethiopia | 133,610,866 | 3–5 s |
method says how the answer was built: how many 10 km and 1 km stored sums were used, how many tiles of 100 m data were read along the edge, and from which files. A cell counts when its centre is inside the shape; how and why.
By sex and age
Add groups to totals, total, point or polygon. summary gives female, male, under 5, under 18, women 15–49, ages 15–64 and 65 and over; all gives the 42 stored groups (each sex in 20 age groups, and under 18 by sex); or name the ones you want, e.g. groups=under5,women_15_49. Every group is counted over the same cells by the same rule as the total, so they add up with it.
curl -X POST "https://data-geo.baobabtech.app/v1/worldpop/polygon?year=2025&groups=summary" \
-H "content-type: application/json" -d @central-addis.json
→ { "population": 1606479.3,
"groups": { "female": 831617, "male": 774863, "under5": 124189, "under18": 452596,
"women_15_49": 549033, "age_15_64": 1207487, "age_65_plus": 54430 },
"group_definitions": { "under5": "under 5 years: f_00 + m_00 + f_01 + m_01", … }, … }
Nairobi county with /totals?iso3=KEN&level=ADM1&year=2025&groups=summary: 5,653,421 people, 662,549 under 5, 1,837,249 women 15–49, 58,270 aged 65 and over.
Add indicators=true for median age, sex ratio, dependency ratios (young, old, total), ageing index, child-woman ratio and the shares under 5, under 15, under 18, 15–64, 65 and over and women 15–49, named and defined as in WorldPop's own API. The central Addis box, 2025: median age 25.3, 93.18 men per 100 women, 33.04 dependants per 100 of working age.
Several years
Put years in place of year: years=2015-2030, years=2015,2020,2025,2030, or both forms mixed. Each year comes back under years, with the change from first to last (absolute, percent, compound annual growth) and the peak, for the population and for every group asked.
curl -X POST "https://data-geo.baobabtech.app/v1/worldpop/polygon?years=2015,2020,2025,2030" \
-H "content-type: application/json" -d @central-addis.json
→ { "years": [ { "year": 2015, "population": 1266919.5, … }, … { "year": 2030, "population": 1780608.1, … } ],
"change": { "from_year": 2015, "to_year": 2030, "absolute": 513688.6, "percent": 40.55, "annual_growth_percent": 2.3 },
"peak": { "year": 2030, "population": 1780608.1 }, … }
For administrative units every year is one lookup. A shape's edge is read once per year, so a whole country over many years answers 413: all of Ethiopia answers for up to nine years at once (about a minute). Sex and age cover 2015, 2020, 2025 and 2030; other years answer 404 with missing_years.
Around a point
curl "https://data-geo.baobabtech.app/v1/worldpop/catchment?lon=36.8219&lat=-1.2921&radii=1,5,10&year=2025"
→ { "rings": [ { "radius_km": 1, "population": 27013.7 }, { "radius_km": 5, "population": 935401.6 }, { "radius_km": 10, "population": 3204498.0 } ],
"bands": [ { "from_km": 0, "to_km": 1, … }, { "from_km": 1, "to_km": 5, "population": 908387.9 }, { "from_km": 5, "to_km": 10, "population": 2269096.4 } ], … }
Up to 10 radii of at most 100 km. Each is a geodesic circle drawn as a 256-sided polygon (99.99% of its area) and counted like any polygon. Takes years, groups and indicators too.
Worldwide for 2015, 2020, 2025 and 2030; Ethiopia and Kenya for every year with release=r2025a/_test. Under 18 is null for areas including Russia, Fiji or Greenland: WorldPop publishes none for them. Data: WorldPop R2025A age and sex structures, CC BY 4.0.
From Python
import requests
API = "https://data-geo.baobabtech.app/v1/worldpop"
# Regions of a country
r = requests.get(f"{API}/totals", params={"iso3": "ETH", "level": "ADM1", "year": 2026}).json()
for u in r["units"]:
print(u["shape_name"], round(u["population"]))
# Within 1, 5 and 10 km of a site
r = requests.get(f"{API}/catchment", params={"lon": 36.8219, "lat": -1.2921, "radii": "1,5,10", "year": 2026}).json()
for ring in r["rings"]:
print(ring["radius_km"], "km:", round(ring["population"]))
# A region over every year, with the change and the peak
r = requests.get(f"{API}/totals", params={"iso3": "ETH", "level": "ADM1", "years": "2015-2030"}).json()
for u in r["units"]:
print(u["shape_name"], u["change"]["percent"], "%", "peak", u["peak"]["year"])
For a long time series over a large shape, read the Zarr cube instead: all 16 years come back in one read.
From JavaScript
import circle from "@turf/circle";
const area = circle([36.8219, -1.2921], 5, { units: "kilometers" });
const r = await fetch("https://data-geo.baobabtech.app/v1/worldpop/polygon?year=2026", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify(area),
}).then((res) => res.json());
console.log(Math.round(r.population));
When it says no
| Status | Means | Do |
|---|---|---|
| 404 | Not published: that year, release, unit, or a point outside every country file (the sea, an uninhabited territory) | Report it as missing. Do not substitute another figure. |
| 400 | The request is malformed: a missing parameter, or GeoJSON that is not a polygon | Fix the request; the message says what is wrong. |
| 413 | The polygon is too large for one request (over 50° of latitude, or over 4,000 tiles of edge), or too large for that many years at once | Split it, ask for fewer years, or use /totals for administrative units. |
| 429 | Too many requests from your IP: over 2,000 API calls this hour, or too fast | Wait the Retry-After seconds; pace polygons, or use /totals or the files. |
Python's built-in urllib is currently refused (403) by Cloudflare's default bot screening; requests, httpx, GDAL, DuckDB, browsers and curl are not.
For agents: /llms.txt and /worldpop/how-it-works.md. For tools and code generators: /openapi.json.
WorldPop's own API
WorldPop serves the same R2025A data through its own API v3. Its polygon totals agree with this API's to under one person: both count a cell when its centre is inside (checked 5 November 2026). Use WorldPop's for place profiles with charts, comparisons and maps, age and sex in every year 2015–2030, exposure weighted by distance, batches of features, catchments around many points, search by place name and clipped GeoTIFFs; it asks for a key above 1,000 requests a day or 100,000 km². Use data-geo for the files read by range (WorldPop's own ignore ranges; it plans a release on AWS Open Data, not listed on 5 November 2026), polygons of any size up to a whole country, geoBoundaries ADM1 and ADM2 units, and use without a key. Side by side.
Read the files
| File | Use it for |
|---|---|
worldpop/r2025a/100m/{year}/{iso3}.tif | One country, one year. Cloud-Optimized GeoTIFF, identical to WorldPop's cell for cell. |
worldpop/r2025a/100m/{year}/global.vrt | The whole world for one year, as one raster. |
worldpop/r2025a/100m.zarr | Change over time: every year in each chunk, so 2015–2030 for an area is one read. |
worldpop/r2025a/admin_totals.parquet | Totals per administrative unit and year, readable with DuckDB over HTTP. |
worldpop/r2025a/pyramid/{year}/1km.tif, 10km.tif | Exact sums of the 100 m grid at 1 km and 10 km. |
worldpop/r2025a/agesex/100m/{year}/{iso3}.tif | By sex and age: 43 bands per country and year (population, then each group). Every fifth year worldwide; every year for Ethiopia and Kenya under _test/agesex/. |
# GDAL / rasterio
GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR gdalinfo /vsicurl/https://data-geo.baobabtech.app/worldpop/r2025a/100m/2026/global.vrt
# xarray
xr.open_zarr("https://data-geo.baobabtech.app/worldpop/r2025a/100m.zarr")
# DuckDB
SELECT shape_name, pop_2015, pop_2030 FROM 'https://data-geo.baobabtech.app/worldpop/r2025a/admin_totals.parquet' WHERE iso3 = 'ETH' AND level = 'ADM1';
How a polygon is counted
A 100 m cell is counted when its centre is inside the polygon. Checking that cell by cell for a country is hundreds of millions of reads, so the API works from coarse to fine:
- The grid is also stored summed into 10 km and 1 km cells. These are exact sums, not averages, because people add up.
- 10 km cells lying wholly inside the polygon count as one stored number each.
- Where the polygon's edge cuts a 10 km cell, its 1 km cells are checked the same way.
- Only the 1 km cells the edge still cuts are read at 100 m, cell by cell.
The answer is the same as counting every 100 m cell, to the last person. For all of Ethiopia that is about 13,000 coarse sums, 33,000 medium ones and 155 tiles of 100 m data along the border, instead of the whole country.
What is checked
- Every COG against WorldPop's file: same total, same number of cells, same grid, same values.
- Every country sits on one global grid, so nothing is resampled; neighbouring countries never both claim a cell.
- The cube, the pyramid and the totals against the COGs they were built from.
- Every age and sex band against WorldPop's file, cell for cell; the groups against the total (they add up to it within 3.1e-5 of a person per cell in the Ethiopia and Kenya test; worldwide, within 0.002% per country, except Nepal, where WorldPop's groups are 1.8% short).
- A manifest lists every file with its size and SHA-256; a STAC catalogue lists every country and year. Paths under a release never change; the manifest, STAC and
catalog.jsonare rewritten as files land.
Limits
The API takes 2,000 calls an hour per IP, with no key; every answer says how many are left (X-RateLimit-Remaining) and when the count resets (X-RateLimit-Reset). Requests are also limited per IP over short windows, and the polygon endpoint far more tightly than file reads, so send polygons in small, paced batches. A single-year read is 4–5 requests. The polygon endpoint answers one request per polygon; a very large or very detailed polygon gets a 413 telling you to split it.
Not included: WorldPop's 1 km and variant products, reprojection or clipped downloads. For those, see WorldPop's own API and hub.