Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Official country health indicators for building life-expectancy, mortality, and coverage comparison tools.
From source to product signal
The GHO OData API returns WHO health indicators by country and year. Start with life expectancy at birth for one country. Values can lag, sex and age splits differ by indicator, and WHO forbids implying endorsement.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://ghoapi.azureedge.net/api/WHOSIS_000001",
params={"$filter": "SpatialDim eq 'USA'", "$top": "20"},
timeout=30,
)
response.raise_for_status()
observations = pd.DataFrame(response.json()["value"])
print(
observations[
["IndicatorCode", "SpatialDim", "TimeDim", "Dim1", "NumericValue"]
].head()
)Test a useful signal
Test whether one WHO indicator can power a bounded national trend card.
World Health Organization is an intergovernmental source. Last verified 2026-08-18. Temporal coverage: indicator series with country-specific starts.