World Bank indicators, countries, projects and documents
World Bank open data: development indicator values by country and year (GDP, population, poverty, health, energy and about 1,500 more), indicator and country metadata, World Bank-financed projects, and the documents and reports library.
No API key needed to call
- Source
- World Bank Open Data, Projects and Documents APIs
- Licence and terms
- CC BY 4.0 (World Bank data catalogue)
- Coverage
- worldwide
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
- What was the GDP of Brazil and Germany in the last three years according to the World Bank?
- How does the World Bank define total population?
- What income group is Brazil in according to the World Bank?
- Which active World Bank water projects are there in Brazil?
- What is the objective of World Bank project P180429?
- Which World Bank reports discuss water security in Brazil?
Operations
World Bank indicator values by country and year
Answers: what is the value of a World Bank development indicator (GDP, population, life expectancy, inflation, CO2 and so on) for one or several countries, newest year first? Use mrv for the most recent N values or date for a year or range.
| country | required, string, ISO country code(s), 2 or 3 letters, separated by semicolons, up to 10, for example BRA or BRA;DEU. Aggregate codes such as WLD (world) or EUU also work. |
|---|---|
| indicator | required, string, Indicator code, for example NY.GDP.MKTP.CD (GDP, current US$), SP.POP.TOTL (population), SP.DYN.LE00.IN (life expectancy). |
| mrv | optional, integer, default 5, Most recent values: how many of the latest years with data to return per country. |
| date | optional, string, A year (2020) or range (2015:2020). When given it replaces the most-recent-values window. |
Example: What was the GDP of Brazil and Germany in the last three years according to the World Bank?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_indicator_data","params":{"country":"BRA;DEU","indicator":"NY.GDP.MKTP.CD","mrv":3}}}Over HTTP
curl '/v1/connectors/wb/wb_indicator_data?country=BRA%3BDEU&indicator=NY.GDP.MKTP.CD&mrv=3'World Bank indicator definition
Answers: what does a World Bank indicator code measure, which source database does it come from, and how is it defined?
| indicator | required, string, Indicator code, for example SP.POP.TOTL. |
|---|
Example: How does the World Bank define total population?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_indicator_info","params":{"indicator":"SP.POP.TOTL"}}}Over HTTP
curl '/v1/connectors/wb/wb_indicator_info?indicator=SP.POP.TOTL'World Bank country profile
Answers: what are a country's World Bank region, income level, lending type and capital city?
| country | required, string, ISO country code, 2 or 3 letters. |
|---|
Example: What income group is Brazil in according to the World Bank?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_country_info","params":{"country":"BRA"}}}Over HTTP
curl '/v1/connectors/wb/wb_country_info?country=BRA'Search World Bank-financed projects
Answers: which World Bank projects match a keyword, country or status, with their commitment amount, approval date and sector? Newest approvals first.
| q | optional, string, Keywords in the project name or description. |
|---|---|
| country | optional, string, Two-letter ISO country code of the project country. |
| status | optional, string, Active | Closed | Pipeline | Dropped, Project status. |
| rows | optional, integer, default 8, How many projects. |
Example: Which active World Bank water projects are there in Brazil?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_projects_search","params":{"q":"water","country":"BR","status":"Active","rows":3}}}Over HTTP
curl '/v1/connectors/wb/wb_projects_search?q=water&country=BR&status=Active&rows=3'World Bank project by id
Answers: what is the development objective, commitment, status and timeline of one World Bank project, from its id such as P180429?
| id | required, string, World Bank project id: P followed by six digits. |
|---|
Example: What is the objective of World Bank project P180429?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_project_detail","params":{"id":"P180429"}}}Over HTTP
curl '/v1/connectors/wb/wb_project_detail?id=P180429'Search World Bank documents and reports
Answers: which World Bank documents and reports (appraisal documents, evaluations, country strategies, research papers) match a keyword or country? Newest first.
| q | required, string, Keywords. |
|---|---|
| country | optional, string, Country name as the World Bank spells it, for example Brazil. |
| rows | optional, integer, default 8, How many documents. |
Example: Which World Bank reports discuss water security in Brazil?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"wb","operation":"wb_documents_search","params":{"q":"water security","country":"Brazil","rows":3}}}Over HTTP
curl '/v1/connectors/wb/wb_documents_search?q=water+security&country=Brazil&rows=3'Source notice
Source: The World Bank. The World Bank data catalogue licence page states that it "licenses datasets under the Creative Commons Attribution 4.0 International license (CC-BY 4.0)" and that many datasets are available under other licences. The CC BY 4.0 terms were not confirmed for the Projects and Documents APIs: check the terms page for each item. Values are trimmed and reordered here; the publisher does not endorse this presentation.