Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection for the World Bank API
Country and regional development indicators spanning economics, health, education, and infrastructure for comparing change over time.
From source to product signal
World Development Indicators provides documented country-level time series across many development topics. Start with one indicator and three countries before exploring the wider catalog. Check the indicator definition and missing values before comparing places or drawing conclusions.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import requests
import pandas as pd
url = "https://api.worldbank.org/v2/country/all/indicator/NY.GDP.PCAP.CD"
response = requests.get(url, params={"format": "json", "per_page": 20000}, timeout=30)
response.raise_for_status()
rows = response.json()[1]
gdp = pd.DataFrame(rows)[["countryiso3code", "date", "value"]]
print(gdp.dropna().head())Test a useful signal
Compare long-term GDP-per-capita patterns for three countries while accounting for missing observations.
World Bank is an intergovernmental source. Last verified 2026-08-10. Temporal coverage: 1960-present.