Skip to content

World Bank API: Get country statistic

Looks up a World Bank statistic for a country and returns its annual values and latest value for the selected years.

data.worldbank.org (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by World Bank.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Country, requiredcountry

Country name, such as Brazil.

South Korea

To Year optionalto_year

Last year to include, such as 2023. Defaults to the most recent year with data.

Not set

Whole number.

From Year optionalfrom_year

First year to include, such as 2015. Defaults to nine years before the most recent year with data.

Not set

Whole number.

Statistic, requiredstatistic

Statistic in everyday words, such as GDP per person or inflation.

GDP per person

Output

From a run on Oct 23, 2026, shortened for this page.
{  "unit": "current US$",  "source": "World Development Indicators",  "values": [    {      "year": 2016,      "value": 30832.0628072516    },    {      "year": 2017,      "value": 33296.9845439195    },    {      "year": 2018,      "value": 35363.9508228687    }  ],  "country": "Korea, Rep.",  "statistic": "GDP per capita (current US$)",  "latest_year": 2025,  "latest_value": 36226.9663637512,  "data_page_link": "https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=KR",  "indicator_code": "NY.GDP.PCAP.CD"}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
data.worldbank.org/get_country_statistic
Returns
country, statistic, unit, latest value and year, annual values, source, data page link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method data.worldbank.org/get_country_statistic with the inputs above.

Ask your agent

  • What was Brazil's GDP per person over the last ten years, and what is the latest figure?
  • Show me inflation rates for Kenya from 2010 to 2020 with the most recent value.
  • I need the unemployment rate for Germany for 2015 through 2022, year by year, from worldbank.org.
  • What is the latest life expectancy for Japan, plus its annual values since 2000?
  • Give me the annual population figures for Nigeria between 2012 and 2023 with a source link.
  • Ranks countries by a World Development Indicators statistic for a given year, or for the latest year with broad country coverage. Regional aggregates and countries without data for that year are left out.

    worldbank.org/compare_countries
  • Finds the Our World in Data chart that best matches a statistic and returns its country-by-year numeric values, definition and source.

    ourworldindata.org/get_statistic
  • Gets the latest WHO value of a health statistic for a country, with sex-specific values, the regional value for the same year, and up to 10 years of history.

    who.int/get_country_health_statistics
  • Gets World Economic Outlook figures for a country or region by year, labelled as actual or forecast. Measures the IMF does not publish for a year are null.

    imf.org/get_economic_forecast
  • Looks up an official Eurostat statistic for an EU or EEA country and the EU27 figure for the same period. Quarterly and half-yearly series return the reporting period that contains a requested month.

    ec.europa.eu/get_statistic
  • Returns seven key economic indicators for a country from its public Trading Economics overview: GDP growth rate, inflation rate, interest rate, unemployment rate, government debt to GDP, currency and stock market. Indicators absent from the overview are null; the US dollar index is not reported as a USD exchange rate.

    tradingeconomics.com/get_country_overview
  • Ranks countries by a World Economic Outlook indicator for a chosen year, excluding regional and group totals and countries without a value.

    imf.org/list_country_rankings
  • Compares the latest reported value of an economic indicator across countries in a region, highest first. World includes all listed countries; Australia uses the Oceania region.

    tradingeconomics.com/list_countries_by_indicator