Access statistical datasets from the UN Statistics Division covering population, national accounts, trade, energy, environment, and social indicators for 200+ countries. Used in data engineering for building global indicator dashboards, cross-country comparison pipelines, and ingesting UN SDG datasets into analytical systems.
Engineers use `requests` to query UN Data APIs and the UNSD Statistical Data API (comtrade.un.org), retrieving JSON or CSV data on population, trade, and SDG indicators by country and year. Data is loaded into pandas for cross-country comparison and trend analysis.
UN datasets ground AI systems in verified global statistics. RAG pipelines built on SDG indicators and country reports help LLMs answer policy questions with authoritative data. AI knowledge bases built from UN documents support multilingual question-answering for international development applications.
# pip install requests pandas
import requests, pandas as pd
resp = requests.get(
"https://data.un.org/ws/rest/data/DF_UNDATA_WDI/A.NY_GDP_MKTP_CD.USA/",
headers={"Accept": "application/json"}
)
print(pd.DataFrame(resp.json()["dataSets"][0]["series"]).head())Official dataset source
More datasets used by Python data engineers.
The Swedish government monopoly liquor store API providing product catalogues, store locations, inventory, and pricing data. Useful for practising structured API ingestion, building retail analytics pipelines, and learning how to work with government-published commercial datasets in Python.
It provides REST access to FoodData Central (FDC). It is intended primarily to assist application developers wishing to incorporate nutrient data into their applications or websites.
Access NASA's extensive collection of space data including the Astronomy Picture of the Day, Mars rover photos, near-Earth object tracking, satellite imagery, and Earth observation datasets. Commonly used in scientific data pipelines, geospatial analysis workflows, and educational data engineering projects with Python.