Finance
World Bank logo

World Bank API

worldbank.org

World Bank Open Data — 1,500+ macroeconomic indicators across 200+ countries. GDP, inflation, trade, debt, health, education, climate, poverty, gender, and more.

Actions
22
Category
Finance
Login
Not required
Output
JSON

Call the World Bank API

Submit a task, then poll the job until it settles. This example runs wb_climate_stats.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "wb_climate_stats",
    "params": {
      "country": "<country>"
    }
  }'

22 actions on worldbank.org

Read

  • Climate Stats

    wb_climate_statsread1 credit / call

    Climate and environment: CO2 emissions, renewables, forest area, electricity access.

    country
    string · required
    mrv
    integer
  • Country Comparison

    wb_country_comparisonread1 credit / call

    Compare a single indicator across multiple countries side-by-side.

    indicator_id
    string · required
    countries
    array · required
    mrv
    integer
  • Country Overview

    wb_country_overviewread1 credit / call

    Snapshot of 10 key macroeconomic indicators for a country (GDP, inflation, unemployment, trade, debt, population).

    country
    string · required
    mrv
    integer
  • Debt Stats

    wb_debt_statsread1 credit / call

    External debt and debt service: debt stocks, reserves, debt-to-GNI ratios.

    country
    string · required
    mrv
    integer
  • Education Stats

    wb_education_statsread1 credit / call

    Education indicators: literacy, enrollment, completion rates, spending.

    country
    string · required
    mrv
    integer
  • Financial Stats

    wb_financial_statsread1 credit / call

    Financial sector: market cap, credit, interest rates, NPLs, broad money.

    country
    string · required
    mrv
    integer
  • Gender Stats

    wb_gender_statsread1 credit / call

    Gender indicators: labor participation, education parity, maternal health, women in parliament.

    country
    string · required
    mrv
    integer
  • Health Stats

    wb_health_statsread1 credit / call

    Health indicators: life expectancy, mortality, immunization, health spending, physicians.

    country
    string · required
    mrv
    integer
  • Indicator Data

    wb_indicatorread1 credit / call

    Fetch time-series data for any World Bank indicator across one or more countries.

    indicator_id
    string · required
    countries
    string
    mrv
    integer
    start_year
    integer
    end_year
    integer
  • Indicator Ranking

    wb_indicator_rankingread1 credit / call

    Rank all countries by any indicator (e.g. highest GDP per capita, lowest unemployment).

    indicator_id
    string · required
    order
    string
    limit
    integer
    mrv
    integer
  • Infrastructure Stats

    wb_infrastructure_statsread1 credit / call

    Infrastructure: internet, mobile, broadband, electricity access, logistics, transport.

    country
    string · required
    mrv
    integer
  • List Countries

    wb_list_countriesread1 credit / call

    List World Bank countries with region, income level, and capital city.

    region
    string
    income_level
    string
    limit
    integer
  • List Income Levels

    wb_list_income_levelsread1 credit / call

    List World Bank income level classifications.

  • List Regions

    wb_list_regionsread1 credit / call

    List all World Bank regions with codes and metadata.

  • List Sources

    wb_list_sourcesread1 credit / call

    List all World Bank data sources (WDI, International Debt Statistics, etc.).

  • List Topics

    wb_list_topicsread1 credit / call

    List all World Bank data topics (Education, Health, Trade, Poverty, etc.).

  • Multi Indicator

    wb_multi_indicatorread1 credit / call

    Fetch multiple indicators for a country in one call.

    country
    string · required
    indicator_ids
    array · required
    mrv
    integer
  • Poverty Stats

    wb_poverty_statsread1 credit / call

    Poverty and inequality indicators: headcount ratios, Gini index, income shares.

    country
    string · required
    mrv
    integer
  • Regional Aggregate

    wb_regional_aggregateread1 credit / call

    Indicator data at regional or income-group level (East Asia, OECD, Sub-Saharan Africa, World).

    indicator_id
    string · required
    regions
    string
    mrv
    integer
  • Search Indicators

    wb_search_indicatorsread1 credit / call

    Search the World Bank indicator library by keyword.

    query
    string · required
    limit
    integer
  • Topic Indicators

    wb_topic_indicatorsread1 credit / call

    List all indicators under a specific World Bank topic.

    topic_id
    integer · required
    limit
    integer
  • Trade Stats

    wb_trade_statsread1 credit / call

    Trade indicators: exports, imports, FDI, tariffs, current account, terms of trade.

    country
    string · required
    mrv
    integer

World Bank API questions

Is there an API for World Bank?
World Bank does not offer a public data API for this, but Anakin Wire provides 22 maintained endpoints for worldbank.org. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape World Bank data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when worldbank.org changes its markup, Anakin updates the action.
Do I need a World Bank account?
No. Every World Bank action listed here runs anonymously — no account and no credentials required.
What does the World Bank API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Finance APIs

All Finance sites