World Bank
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.
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.
Example results
GDP per capita (current US$)
2,025, USD
| Rank | Country | Value |
|---|---|---|
| 1 | Luxembourg | 147,252.18 |
| 2 | Ireland | 131,592.46 |
| 3 | Switzerland | 114,769.01 |
| 4 | Singapore | 98,813.98 |
| 5 | Iceland | 98,323.48 |
| 6 | Norway | 94,594.19 |
| 7 | United States | 90,026.52 |
| 8 | Denmark | 76,970.15 |
| 9 | Macao SAR, China | 75,901.75 |
| 10 | Netherlands | 73,683.92 |
| 11 | Qatar | 72,524.91 |
| 12 | Australia | 65,129.72 |
| 13 | Sweden | 63,133.21 |
| 14 | Austria | 62,930.04 |
| 15 | Belgium | 60,750.27 |
| 16 | Germany | 60,496.44 |
| 17 | Israel | 60,336.85 |
| 18 | United Kingdom | 57,601.96 |
| 19 | Hong Kong SAR, China | 56,983.07 |
| 20 | Finland | 56,148.58 |
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 creditRank 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
| Field | Type | Required | Description |
|---|---|---|---|
Yearyear | Number | Optional | Calendar year, for example 2022. Leave out to use the latest year with broad country coverage.Example: 2022 |
Countriescountries | Text | Optional | Comma-separated country names, for example United States, Canada, France. Leave out to rank all countries.Example: United States, Japan, Canada |
Statisticstatistic | Text | Required | Statistic in plain words, for example GDP per person or life expectancy.Example: GDP per person |
Max Resultsmax_results | Number | Optional | Maximum number of ranked countries, for example 20.Example: 3 |
What you get
| Field | Type | Description |
|---|---|---|
Unitunit | Text | Measurement unit.Example: USD |
Yearyear | Number | Reporting year for the country values.Example: 2025 |
Countriescountries | List | Ranked countries, highest value first. |
Rankcountries[].rank | Number | Example: 1 |
Valuecountries[].value | Number | Example: 147252.179121515 |
Countrycountries[].country | Text | Example: Luxembourg |
Page Linkcountries[].page_link | Text | World Bank chart for this indicator and country.Example: https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=LUX |
Country Codecountries[].country_code | Text | Example: LUX |
Indicator Codeindicator_code | Text | World Bank indicator identifier.Example: NY.GDP.PCAP.CD |
Statistic Namestatistic_name | Text | World Bank statistic name.Example: GDP per capita (current US$) |
Example result
For Statistic: GDP per person
{
"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 creditGet 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
| Field | Type | Required | Description |
|---|---|---|---|
Countrycountry | Text | Required | Country name, such as Brazil.Example: Brazil |
To Yearto_year | Number | Optional | Last year to include, such as 2023. Defaults to the most recent year with data.Example: 2024 |
From Yearfrom_year | Number | Optional | First year to include, such as 2015. Defaults to nine years before the most recent year with data.Example: 2019 |
Statisticstatistic | Text | Required | Statistic in everyday words, such as GDP per person or inflation.Example: GDP |
What you get
| Field | Type | Description |
|---|---|---|
Unitunit | Text | Unit of measurement.Example: current US$ |
Sourcesource | Text | World Bank data collection supplying this statistic.Example: World Development Indicators |
Valuesvalues | List | Annual values, oldest first, including years without data. |
Yearvalues[].year | Number | Example: 2019 |
Valuevalues[].value | Number | Example: 1873288205059.69 |
Countrycountry | Text | World Bank country name.Example: Brazil |
Statisticstatistic | Text | World Bank indicator title.Example: GDP (current US$) |
Latest Yearlatest_year | Number | Year of the most recent available value within the selected years.Example: 2024 |
Latest Valuelatest_value | Number | Most recent available value within the selected years.Example: 2185821610689.31 |
Data Page Linkdata_page_link | Text | World Bank page for this country and statistic.Example: https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=BR |
Indicator Codeindicator_code | Text | World Bank indicator identifier.Example: NY.GDP.MKTP.CD |
Example result
For Country: Brazil, To Year: 2024, From Year: 2019, Statistic: GDP
{
"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 '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.