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
- Unit
- USD
- Year
- 2025
- Indicator Code
- NY.GDP.PCAP.CD
- Statistic Name
- GDP per capita (current US$)
- Countries
Countries Rank Value Country Page Link Country Code 1147,252.179121515LuxembourgLUX2131,592.462547877IrelandIRL3114,769.012314293SwitzerlandCHE498,813.9788172877SingaporeSGP598,323.4849517418IcelandISL694,594.1929573987NorwayNOR790,026.5163005744United StatesUSA876,970.1535217919DenmarkDNK975,901.7461294198Macao SAR, ChinaMAC1073,683.917132794NetherlandsNLD1172,524.9066385222QatarQAT1265,129.7227990563AustraliaAUS1363,133.2126736715SwedenSWE1462,930.0351324599AustriaAUT1560,750.2735864647BelgiumBEL1660,496.4350820414GermanyDEU1760,336.8477964194IsraelISR1857,601.9621201954United KingdomGBR1956,983.0663059906Hong Kong SAR, ChinaHKG2056,148.580949046FinlandFIN
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 runRank 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 credit per runGet 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
Run this workflow from your own code. In Studio, turn on Developer mode and create an API key.
# 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.