World Economic Indicators API
GDP, inflation, unemployment, population & 60+ indicators for 200+ countries: time series since 1960, country snapshot, comparison and rankings.
Get a free API key on RapidAPI Try it in the playgroundWorld Economic Indicators API
Macro-economic and development data from the World Bank, with friendly indicator keys so you never have to memorise codes like NY.GDP.MKTP.CD.
📈 Time series
Any indicator for up to 10 countries at once, as an annual series since 1960, with latest value, year-on-year change, minimum and maximum. Use keys such as gdp, gdp_growth, gdp_per_capita, inflation, unemployment, population, life_expectancy, exports, fdi_inflows, reserves, gov_debt_pct_gdp, internet_users, co2_per_capita — or any of the 1,500 World Bank codes.
🌍 Country snapshot
18 headline indicators for a country in a single call, each with its latest available year — plus region, income level and capital.
⚖️ Compare & rank
Compare up to 15 countries on up to 8 indicators, or get the world ranking for any indicator (highest or lowest), with the world aggregate for context.
Use cases: finance and investing apps · country-risk and market-entry dashboards · news and data journalism · education · economic research · AI assistants that need grounded facts
Keywords: economic indicators api, gdp api, inflation api, unemployment rate, population data, world bank api, macroeconomic data, country statistics, gdp per capita, economy ranking
Endpoints (7)
| Endpoint | What it returns |
|---|---|
GET/indicator | Indicator time series Annual series of one indicator for 1-10 countries, with latest value, change versus the previous year, minimum and maximum. Use `last` for the most recent N years or `from` / `to` for a range. |
GET/snapshot | Country snapshot A country's profile plus 18 headline indicators (GDP, growth, GDP per capita, inflation, unemployment, population, life expectancy, trade, FDI, reserves, debt, internet users, Gini, CO2…), each with its latest available |
GET/compare | Compare countries Latest values of up to 8 indicators for 2-15 countries, with a ranking of the countries on each indicator. |
GET/ranking | World ranking Countries ranked by an indicator for a year (or each country's latest available value), highest or lowest first, with the world aggregate. |
GET/indicators | Indicator catalogue The built-in indicator keys with their World Bank codes, names and topics (economy, labor, people, trade, finance, poverty, sectors, technology, environment, education, health). |
GET/countries | Countries All countries with ISO codes, region, income level and capital. Filter by name, region or income level; set aggregates=true to include regions and income groups. |
GET/country | Country profile Name, ISO codes, region, income level, lending type, capital and coordinates of one country. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /indicator:
curl --request GET \
--url 'https://world-economic-indicators-api.p.rapidapi.com/indicator?indicator=inflation&country=US%2CDE%2CTR&last=5' \
--header 'x-rapidapi-host: world-economic-indicators-api.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://world-economic-indicators-api.p.rapidapi.com/indicator?indicator=inflation&country=US%2CDE%2CTR&last=5"
headers = {
"x-rapidapi-host": "world-economic-indicators-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://world-economic-indicators-api.p.rapidapi.com/indicator?indicator=inflation&country=US%2CDE%2CTR&last=5", {
method: "GET",
headers: {
"x-rapidapi-host": "world-economic-indicators-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"indicator": {
"key": "inflation",
"code": "FP.CPI.TOTL.ZG",
"name": "Inflation, consumer prices (annual %)",
"topic": "economy"
},
"last_updated": "2026-11-11",
"count": 3,
"countries": [
{
"country_code": "DEU",
"country": "Germany",
"series": [
{
"year": 2021,
"value": 3.0667
},
{
"year": 2022,
"value": 6.8726
}
],
"latest": {
"year": 2025,
"value": 2.1718
},
"change_percent": -3.75,
"min": {
"year": 2025,
"value": 2.1718
},
"max": {
"year": 2022,
"value": 6.8726
}
},
{
"country_code": "TUR",
"country": "Turkiye",
"series": [
{
"year": 2021,
"value": 19.5965
},
{
"year": 2022,
"value": 72.3088
}
],
"latest": {
"year": 2025,
"value": 34.8812
},
"change_percent": -40.38,
"min": {
"year": 2021,
"value": 19.5965
},
"max": {
"year": 2022,
"value": 72.3088
}
}
],
"source": "World Bank Open Data (CC BY 4.0)"
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
ForexFactory Economic Calendar
The ForexFactory economic calendar as clean JSON: every event with impact, time and actual / forecast / previous, filterable by date, currency and impact.
FinanceYahoo Finance Realtime
Real-time & historical market data: quotes, OHLC history, symbol search, fundamentals, trending tickers and options for stocks, crypto, FX and indices.
FinanceIBAN & SWIFT/BIC Validator API
Validate IBANs for 80+ countries (checksum, length, structure), extract bank/branch/account, bulk check, generate IBAN, validate BIC & card numbers.
FinanceMetals Prices API - Gold, Silver, Platinum & More
Real-time gold, silver, platinum & palladium spot prices in 35+ currencies and any unit (gram, tola, ounce…), karat tables, base metals and history.
FinanceStock Market API - Real-Time Data & Fundamentals
All-in-one US stock market data: real-time & batch quotes, history, options, financials, earnings, analysts, insiders, calendars, screener, technicals, news.