World Bank Open Data
World Development Indicators: GDP, population, inflation, unemployment and 1,400+ more series by country and year.
- Provider id:
worldbank - Tools: 1, at $0.001 per call
- Categories: Finance & Markets, Government & Law
- Homepage: data.worldbank.org
- Provider docs: datahelpdesk.worldbank.org/knowledgebase/articles/889392-about-the-indicators-api-documentation
- Licence: CC BY 4.0
- Attribution: The World Bank: World Development Indicators (data.worldbank.org)
| Tool | Price | What it does |
|---|---|---|
worldbank/indicator | $0.001 | Yearly values of a World Bank indicator (GDP, population, inflation…) for a country, newest first. |
Inputs are JSON bodies, and unknown fields are rejected with 422 invalid_input (not charged). POST /v1/inspect with a tool's id returns the same input schema, plus the output schema.
World Bank Indicator
worldbank/indicator · $0.001 per call (local) · Finance & Markets, Government & Law
Yearly values of a World Bank indicator (GDP, population, inflation…) for a country, newest first.
Returns the most recent non-empty yearly values of one World Development Indicator for one country or aggregate (world, EU, income groups), with the indicator's full name and the data's last update. Pass a WDI code or a friendly alias (gdp, gdp_per_capita, gdp_growth, population, inflation, unemployment, life_expectancy, internet_users, co2_per_capita, gini, …). Values are annual and lag 1–2 years; it has no monthly, live market or forecast data. An unknown country or code answers found=false. A query nobody has asked recently can take several seconds upstream; repeats are cached for a day.
Related: wikidata/entity, akashi/answer.
Input
| Field | Type | Required | Description |
|---|---|---|---|
country | string | yes | ISO 3166 alpha-2 or alpha-3 code ('BR', 'BRA'), or a region such as 'WLD' (world) or 'EUU' (European Union). Pattern ^[A-Za-z0-9]{2,3}$. |
indicator | string | yes | A WDI code such as 'NY.GDP.MKTP.CD', or one of: gdp, gdp_per_capita, gdp_growth, population, inflation, unemployment, life_expectancy, internet_users, co2_per_capita, gini, fdi_inflows, exports_pct_gdp, government_debt_pct_gdp, urban_population_pct. 2–40 characters. |
years | integer | no | How many most recent non-empty years. From 1 to 60. Default 10. |
Example
{
"country": "BR",
"indicator": "gdp",
"years": 5
}node akashi.mjs run worldbank/indicator --input '{"country":"BR","indicator":"gdp","years":5}'