Check the Setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Cross-national education indicators from the UNESCO Institute for Statistics for building country comparison and SDG 4 monitoring tools.
Report a ProblemFrom Source to Product Signal
The UIS Data API returns internationally comparable education indicators. Start with completion rate CR.1 for one country and a few recent years. Values can lag, national definitions differ, and ShareAlike applies to adapted data products.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://api.uis.unesco.org/api/public/data/indicators",
params={
"indicator": "CR.1",
"geoUnit": "USA",
"start": 2020,
"end": 2022,
},
timeout=30,
)
response.raise_for_status()
observations = pd.DataFrame(response.json()["records"])
observations["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(observations[["indicatorId", "geoUnit", "year", "value"]].head())Test a Useful Signal
Test whether one UIS completion-rate series can power a bounded country comparison.
UNESCO Institute for Statistics is an intergovernmental source. Last verified 2026-08-20. Temporal coverage: indicator series with country-specific starts.