Skip to content

Development statistics, country statistics and country rankings

Back to tools

World Bank provides country statistics and latest values within selected years, plus country rankings for a chosen year or the latest broadly covered year.

Compare countries

Rank countries by a World Bank development statistic, using a requested year or the latest year with broad country coverage. Regional aggregates and countries without data for the selected year are excluded. Statistics are matched against World Development Indicators.

Your information

Statistic in plain words, for example GDP per person or life expectancy.

More options

Calendar year, for example 2022. Leave out to use the latest year with broad country coverage.

Comma-separated country names, for example United States, Canada, France. Leave out to rank all countries.

Maximum number of ranked countries, for example 20.

1 credit per completed run

The same inputs also work from your code or an AI assistant. See For developers.

Example results

GDP per capita (current US$)

2,025, USD

RankCountryValue

Choose an action

About the World Bank tool

Compare countries ranks countries by a development statistic; provide a statistic and optionally a year, countries, or result limit.

Built from data.worldbank.org and worldbank.org. Last checked Sep 29, 2026.

Actions

Compare countries

1 credit

Rank countries by a World Bank development statistic, using a requested year or the latest year with broad country coverage. Regional aggregates and countries without data for the selected year are excluded. Statistics are matched against World Development Indicators.

Uses worldbank.org.

What you provide

FieldTypeRequiredDescription
YearyearNumberOptionalCalendar year, for example 2022. Leave out to use the latest year with broad country coverage.Example: 2022
CountriescountriesTextOptionalComma-separated country names, for example United States, Canada, France. Leave out to rank all countries.Example: United States, Japan, Canada
StatisticstatisticTextRequiredStatistic in plain words, for example GDP per person or life expectancy.Example: GDP per person
Max Resultsmax_resultsNumberOptionalMaximum number of ranked countries, for example 20.Example: 3

What you get

FieldTypeDescription
UnitunitTextMeasurement unit.Example: USD
YearyearNumberReporting year for the country values.Example: 2025
CountriescountriesListRanked countries, highest value first.
Rankcountries[].rankNumberExample: 1
Valuecountries[].valueNumberExample: 147252.179121515
Countrycountries[].countryTextExample: Luxembourg
Page Linkcountries[].page_linkTextWorld Bank chart for this indicator and country.Example: https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=LUX
Country Codecountries[].country_codeTextExample: LUX
Indicator Codeindicator_codeTextWorld Bank indicator identifier.Example: NY.GDP.PCAP.CD
Statistic Namestatistic_nameTextWorld Bank statistic name.Example: GDP per capita (current US$)

Example result

For Statistic: GDP per person

JSON
{
  "unit": "USD",
  "year": 2025,
  "countries": [
    {
      "rank": 1,
      "value": 147252.179121515,
      "country": "Luxembourg",
      "page_link": "https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=LUX",
      "country_code": "LUX"
    },
    {
      "rank": 2,
      "value": 131592.462547877,
      "country": "Ireland",
      "page_link": "https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=IRL",
      "country_code": "IRL"
    },
    {
      "rank": 3,
      "value": 114769.012314293,
      "country": "Switzerland",
      "page_link": "https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=CHE",
      "country_code": "CHE"
    }
  ],
  "indicator_code": "NY.GDP.PCAP.CD",
  "statistic_name": "GDP per capita (current US$)"
}

Get country statistic

1 credit

Get a World Bank statistic for a country by year, including its latest value in the selected years. Supports common measures such as GDP, population, inflation, life expectancy, CO2 emissions per person, and unemployment.

Uses worldbank.org.

What you provide

FieldTypeRequiredDescription
CountrycountryTextRequiredCountry name, such as Brazil.Example: Brazil
To Yearto_yearNumberOptionalLast year to include, such as 2023. Defaults to the most recent year with data.Example: 2024
From Yearfrom_yearNumberOptionalFirst year to include, such as 2015. Defaults to nine years before the most recent year with data.Example: 2019
StatisticstatisticTextRequiredStatistic in everyday words, such as GDP per person or inflation.Example: GDP

What you get

FieldTypeDescription
UnitunitTextUnit of measurement.Example: current US$
SourcesourceTextWorld Bank data collection supplying this statistic.Example: World Development Indicators
ValuesvaluesListAnnual values, oldest first, including years without data.
Yearvalues[].yearNumberExample: 2019
Valuevalues[].valueNumberExample: 1873288205059.69
CountrycountryTextWorld Bank country name.Example: Brazil
StatisticstatisticTextWorld Bank indicator title.Example: GDP (current US$)
Latest Yearlatest_yearNumberYear of the most recent available value within the selected years.Example: 2024
Latest Valuelatest_valueNumberMost recent available value within the selected years.Example: 2185821610689.31
Data Page Linkdata_page_linkTextWorld Bank page for this country and statistic.Example: https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=BR
Indicator Codeindicator_codeTextWorld Bank indicator identifier.Example: NY.GDP.MKTP.CD

Example result

For Country: Brazil, To Year: 2024, From Year: 2019, Statistic: GDP

JSON
{
  "unit": "current US$",
  "source": "World Development Indicators",
  "values": [
    {
      "year": 2019,
      "value": 1873288205059.69
    },
    {
      "year": 2020,
      "value": 1476107231310.49
    },
    {
      "year": 2021,
      "value": 1670647398904.9
    }
  ],
  "country": "Brazil",
  "statistic": "GDP (current US$)",
  "latest_year": 2024,
  "latest_value": 2185821610689.31,
  "data_page_link": "https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=BR",
  "indicator_code": "NY.GDP.MKTP.CD"
}

For developers

Call it from your code with one request. Change the values in input to run it on new data. To get an API key, open Developers at the bottom of Studio, turn on Developer mode and go to API keys.

cURL
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@world-bank",
  "visibility": "public",
  "operation": "compare_countries",
  "version": 1,
  "input": {
    "statistic": "GDP per person"
  },
  "response": {
    "format": "json"
  }
}'

What you can do with it

  • Track a country's GDP, inflation, or population over time
  • Compare countries by life expectancy or emissions
  • Rank countries by a development statistic
  • Review the latest value within a selected year range

Questions about World Bank

Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

Can I call this World Bank tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

Do I need a World Bank account?

No. You only need a Fous account.

How current is the data?

Fous gets the data from data.worldbank.org when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

What was a country's GDP in a given year?

Get country statistic returns a country's GDP values by year; provide the country and statistic, and optionally a year range.

How do countries rank by life expectancy?

Compare countries ranks countries by life expectancy; optionally provide a year or selected countries.

What is the latest available value for a statistic?

Get country statistic returns the latest available value within the selected years.

All Data toolsBrowse all tools