skills/43-wentorai-research-plugins/skills/domains/economics/world-bank-data-guide/SKILL.md
Access World Bank development indicators and country statistics
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research world-bank-data-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The World Bank Data API provides free access to one of the most comprehensive collections of global development data available. The Indicators API covers over 16,000 development indicators across 217 countries and territories, with time series data spanning several decades. Topics include poverty and inequality, health outcomes, education statistics, infrastructure, trade, environmental metrics, and governance indicators.
This API is a cornerstone resource for researchers in development economics, public health, education policy, environmental science, and political science. The World Bank's data is widely cited in academic publications and policy documents, making it an authoritative source for cross-country comparative research.
The API is entirely free, requires no authentication, and returns data in JSON, XML, or other formats. The v2 API supports pagination, filtering by date ranges and income levels, and provides metadata about indicators and data sources.
No authentication is required. The World Bank Data API is free and open.
# No API key needed
curl "https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD?format=json&date=2020:2024"
GET https://api.worldbank.org/v2/country/{country_code}/indicator/{indicator_code}?format=json
Parameters:
country_code: ISO 2-letter or 3-letter code; use all for all countriesindicator_code: World Bank indicator codeformat: json or xml (default xml)date: Year range (e.g., 2015:2024)per_page: Results per page (default 50, max 32500)page: Page numberCommon Indicators:
NY.GDP.MKTP.CD: GDP (current US$)NY.GDP.PCAP.CD: GDP per capita (current US$)SP.POP.TOTL: Total populationSI.POV.DDAY: Poverty headcount ratio at $2.15/daySE.ADT.LITR.ZS: Adult literacy rateSH.XPD.CHEX.GD.ZS: Current health expenditure (% of GDP)EN.ATM.CO2E.PC: CO2 emissions (metric tons per capita)Example: GDP per capita for BRICS nations:
curl -s "https://api.worldbank.org/v2/country/BR;RU;IN;CN;ZA/indicator/NY.GDP.PCAP.CD?format=json&date=2019:2023&per_page=100" \
| python3 -m json.tool
curl -s "https://api.worldbank.org/v2/indicator?format=json&per_page=50" \
| python3 -m json.tool
curl -s "https://api.worldbank.org/v2/topic/8/indicator?format=json&per_page=20" \
| python3 -m json.tool
Topics include: 1=Agriculture, 3=Economy, 4=Education, 6=Environment, 8=Health, 11=Poverty, etc.
curl -s "https://api.worldbank.org/v2/country/CN?format=json" \
| python3 -m json.tool
import requests
import time
BASE_URL = "https://api.worldbank.org/v2"
def get_indicator(indicator_code, countries="all", date_range="2015:2023", per_page=500):
"""Fetch World Bank indicator data."""
url = f"{BASE_URL}/country/{countries}/indicator/{indicator_code}"
params = {
"format": "json",
"date": date_range,
"per_page": per_page
}
resp = requests.get(url, params=params)
resp.raise_for_status()
data = resp.json()
if len(data) < 2:
return []
return data[1]
# Compare health expenditure vs life expectancy
health_exp = get_indicator("SH.XPD.CHEX.GD.ZS", countries="US;GB;DE;JP;BR;IN", date_range="2020")
for record in health_exp:
if record["value"] is not None:
country = record["country"]["value"]
year = record["date"]
value = record["value"]
print(f"{country} ({year}): {value:.1f}% of GDP on health")
import requests
import csv
def build_panel(indicators, countries, years):
"""Build a panel dataset from multiple World Bank indicators."""
panel = {}
for ind_code, ind_name in indicators.items():
url = f"https://api.worldbank.org/v2/country/{countries}/indicator/{ind_code}"
params = {"format": "json", "date": years, "per_page": 5000}
resp = requests.get(url, params=params)
data = resp.json()
if len(data) < 2:
continue
for record in data[1]:
key = (record["country"]["id"], record["date"])
if key not in panel:
panel[key] = {"country": record["country"]["value"], "year": record["date"]}
panel[key][ind_name] = record["value"]
return list(panel.values())
indicators = {
"NY.GDP.PCAP.CD": "gdp_per_capita",
"SP.POP.TOTL": "population",
"SE.ADT.LITR.ZS": "literacy_rate"
}
data = build_panel(indicators, "BR;IN;NG;ID", "2018:2023")
for row in data[:10]:
print(row)
Development Panel Regressions: Combine multiple indicators across countries and years to construct panel datasets for econometric analysis. Study relationships between education spending, health outcomes, and economic growth.
Poverty and Inequality Analysis: Track poverty headcount ratios, Gini coefficients, and income share data across countries and over time to study the effectiveness of development interventions.
Environmental-Economic Nexus: Combine CO2 emissions, renewable energy, and GDP data to study the Environmental Kuznets Curve or the decoupling of economic growth from environmental degradation.
Policy Evaluation: Compare indicator trajectories before and after major policy reforms across treated and comparison countries using difference-in-differences or synthetic control methods.
per_page=32500 for single-page retrieval of most queriesformat=json as the default is XMLEUU (EU), WLD (World), LIC (Low Income) for pre-computed aggregatesMRV=1 to get the most recent value for each country when the latest year variesdevelopment
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.