Skip to content

Development statistics, country statistics and country rankings

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 run

Example results

Unit
USD
Year
2025
Indicator Code
NY.GDP.PCAP.CD
Statistic Name
GDP per capita (current US$)
Countries
Countries
RankValueCountryPage LinkCountry Code
1
147,252.179121515
Luxembourg
LUX
2
131,592.462547877
Ireland
IRL
3
114,769.012314293
Switzerland
CHE
4
98,813.9788172877
Singapore
SGP
5
98,323.4849517418
Iceland
ISL
6
94,594.1929573987
Norway
NOR
7
90,026.5163005744
United States
USA
8
76,970.1535217919
Denmark
DNK
9
75,901.7461294198
Macao SAR, China
MAC
10
73,683.917132794
Netherlands
NLD
11
72,524.9066385222
Qatar
QAT
12
65,129.7227990563
Australia
AUS
13
63,133.2126736715
Sweden
SWE
14
62,930.0351324599
Austria
AUT
15
60,750.2735864647
Belgium
BEL
16
60,496.4350820414
Germany
DEU
17
60,336.8477964194
Israel
ISR
18
57,601.9621201954
United Kingdom
GBR
19
56,983.0663059906
Hong Kong SAR, China
HKG
20
56,148.580949046
Finland
FIN
Example data · Run in Studio for fresh results.

Choose an action

About World Bank

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

Built by Fous from data.worldbank.org and worldbank.org and checked automatically; it last passed a check on Sep 29, 2026. Fous is not affiliated with World Bank.

Actions

Compare countries

1 credit per run

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 per run

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

Run this workflow from your own code. In Studio, turn on Developer mode and create an API key.

cURL
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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

Is Fous affiliated with World Bank?

No. Fous is not affiliated with World Bank. This workflow reads the public data.worldbank.org website and returns its data.

How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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 workflowsBrowse all workflows