Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Country-level high-resolution population grids for building catchment, coverage, and demographic-denominator tools.
From source to product signal
WorldPop REST metadata lists per-country population rasters. Start with one ISO3 code and the unconstrained 2000-2020 series, not the global mosaic. Grid values are modeled estimates, not a census count, and some derived layers use a different share-alike licence.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://www.worldpop.org/rest/data/pop/wpgp",
params={"iso3": "LUX"},
timeout=30,
)
response.raise_for_status()
layers = pd.DataFrame(response.json()["data"])
sample = layers[layers["popyear"].astype(str) == "2020"]
print(sample[["iso3", "popyear", "doi", "data_format", "files"]].head())Test a useful signal
Test whether REST metadata can locate one country unconstrained population file.
WorldPop, University of Southampton is an academic source. Last verified 2026-08-18. Temporal coverage: 2000-2020 global per-country estimates.