World Bank & Eurostat API: GDP, Inflation, Unemployment avatar

World Bank & Eurostat API: GDP, Inflation, Unemployment

Pricing

from $0.26 / 1,000 indicator datapoints

Go to Apify Store
World Bank & Eurostat API: GDP, Inflation, Unemployment

World Bank & Eurostat API: GDP, Inflation, Unemployment

GDP, inflation, unemployment, population and 1,400+ official indicators from World Bank and Eurostat: one row per country and year, YoY change, rank, CSV table. No API key, no login. MCP-ready for AI agents. Pay per result, errors and empty values free. $0.30 per 1,000 datapoints

Pricing

from $0.26 / 1,000 indicator datapoints

Rating

0.0

(0)

Developer

ABM

ABM

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

World Bank & Eurostat Indicators API: GDP, Inflation, Unemployment

$0.30 per 1,000 datapoints ($0.0003 each). Pay per result, no monthly rental. Errors, unknown codes and empty values are free.

Get official macroeconomic data from the World Bank (WDI, 1,400+ indicators, 260+ countries and aggregates) and Eurostat (every dataset of the EU statistical office) as one clean row per country, indicator and year. No raw nested JSON, no SDMX / JSON-stat cubes to decode.

  • GDP, GDP per capita, GDP growth, inflation (CPI and HICP), unemployment, population, debt, exports, CO2… or any indicator code
  • Compare countries directly: each row has the change vs previous year (absolute and %) and the rank among the countries you asked for
  • Extra files: a wide comparison table (countries × years) in CSV and Markdown, ready for Google Sheets or an LLM prompt
  • onlyNew mode for scheduled runs: get only newly published or revised values
  • No API key, no login. MCP-ready for Claude, Cursor, ChatGPT and AI agents
  • A free, fast alternative to downloading Excel files from the World Bank or Eurostat data browsers

How much does it cost?

You pay $0.0003 per datapoint delivered (one country × one indicator × one period with a value).

RequestDatapointsPrice
GDP per capita, 4 countries, 2015–202440$0.012
5 indicators, 27 EU countries, 10 years1,350$0.41
1 indicator, every country and aggregate, 10 years~2,600~$0.78
1,000 datapoints1,000$0.30

Nothing is charged for unknown codes, countries without data, empty values (skipped by default) or failed requests. Set a maximum cost per run in Apify: the actor stops cleanly when it is reached, without free "preview" rows.

Input

FieldWhat it does
worldBankIndicatorsWorld Bank codes, e.g. NY.GDP.PCAP.CD, FP.CPI.TOTL.ZG, SL.UEM.TOTL.ZS, SP.POP.TOTL
eurostatDatasetsEurostat dataset + optional filters, e.g. une_rt_a?age=Y15-74&sex=T&unit=PC_ACT
presetsShortcuts: wb:gdp, wb:gdpPerCapita, wb:inflation, wb:unemployment, wb:population, eurostat:inflationHicp, eurostat:unemploymentRate, eurostat:gdpPerCapita…
countriesISO2 or ISO3 codes (FR, DEU, US), aggregates (EUU, WLD, EU27_2020), or all
startYear, endYearPeriod (default: last 10 years)
mostRecentValuesOnly the N latest periods (overrides the years)
onlyNewOnly datapoints not delivered in previous runs, plus revisions
skipEmptyValues, includeAggregates, comparisonTable, maxResultsFine-tuning

Example:

{
"worldBankIndicators": ["NY.GDP.PCAP.CD"],
"presets": ["eurostat:unemploymentRate"],
"countries": ["FR", "DE", "IT", "ES"],
"startYear": 2015,
"endYear": 2024
}

Greece and the United Kingdom are converted automatically for Eurostat (GR → EL, GB → UK). Duplicates such as DE and DEU are merged.

Output

One object per datapoint in the dataset (export to JSON, CSV, Excel, XML):

{
"source": "worldbank",
"indicatorCode": "NY.GDP.PCAP.CD",
"indicatorName": "GDP per capita (current US$)",
"datasetCode": null,
"seriesKey": "NY.GDP.PCAP.CD",
"dimensions": null,
"countryCode": "DE",
"countryIso3": "DEU",
"countryName": "Germany",
"isAggregate": false,
"region": "Europe & Central Asia",
"incomeLevel": "High income",
"period": "2023",
"year": 2023,
"value": 54776.77,
"unit": null,
"observationStatus": null,
"previousPeriod": "2022",
"changeFromPreviousPeriod": 4270.25,
"changeFromPreviousPeriodPct": 8.4549,
"rankAmongRequestedCountries": 1,
"countriesCompared": 4,
"isRevision": null,
"text": "Germany — GDP per capita (current US$) in 2023: 54,776.77 (+8.45% vs 2022), rank 1 of 4 countries compared. Source: World Bank.",
"lastUpdated": "2026-10-08",
"sourceUrl": "https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=DE",
"apiUrl": "https://api.worldbank.org/v2/country/DEU/indicator/NY.GDP.PCAP.CD?format=json",
"scrapedAt": "2026-10-22T08:00:00+00:00"
}

A Eurostat row has the same fields, plus the dataset dimensions:

{
"source": "eurostat",
"indicatorCode": "une_rt_a?age=Y15-74&unit=PC_ACT&sex=T",
"indicatorName": "Unemployment by sex and age - annual data — From 15 to 74 years, Percentage of population in the labour force, Total",
"datasetCode": "une_rt_a",
"dimensions": {"age": "Y15-74", "unit": "PC_ACT", "sex": "T"},
"dimensionLabels": {"age": "From 15 to 74 years", "unit": "Percentage of population in the labour force", "sex": "Total"},
"countryCode": "FR",
"countryIso3": "FRA",
"countryName": "France",
"period": "2024",
"year": 2024,
"value": 7.4,
"unit": "Percentage of population in the labour force",
"observationStatus": "d (definition differs, see metadata)",
"rankAmongRequestedCountries": 2,
"countriesCompared": 4
}

Files in the run's key-value store (links in the log and in the Output tab):

  • comparison.md: one Markdown table per indicator, countries × years
  • comparison.csv: the same data in long CSV format

Use cases

1. Country risk analyst: monthly macro dashboard in Google Sheets

A credit analyst covering Southern Europe refreshes GDP growth, inflation and unemployment for 6 countries every month.

Input:

{
"presets": ["wb:gdpGrowth", "wb:inflation", "eurostat:unemploymentRate"],
"countries": ["IT", "ES", "PT", "GR", "FR", "DE"],
"startYear": 2018,
"endYear": 2025
}

Output (extract): {"countryName": "Greece", "indicatorName": "Inflation, consumer prices (annual %)", "period": "2024", "value": 2.7, "rankAmongRequestedCountries": 2}

About 140 datapoints, about $0.04 per refresh. The Google Sheets integration writes the dataset to a sheet, and a pivot table drives the charts in the credit committee deck.

2. Economics journalist / data desk: "Who is richest in the EU?" chart

A data journalist needs GDP per capita in euros for all 27 member states for a 10-year chart.

Input:

{
"presets": ["eurostat:gdpPerCapita"],
"countries": ["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],
"startYear": 2015,
"endYear": 2024
}

Output: 270 rows, plus comparison.csv pasted straight into Datawrapper or Flourish. Cost: $0.08. rankAmongRequestedCountries gives the ranking for the article text at once.

3. AI agent / RAG: grounded answers on macro questions

An AI assistant for a wealth-management firm answers "How did inflation in Japan compare with the US since 2020?" with official figures instead of guesses.

Input sent by the agent through MCP:

{"presets": ["wb:inflation"], "countries": ["JP", "US"], "startYear": 2020, "endYear": 2024}

Output: 10 rows, each with a ready-to-quote text field such as "Japan — Inflation, consumer prices (annual %) in 2023: 3.27 (+30.24% vs 2022), rank 2 of 2 countries compared. Source: World Bank." Cost: $0.003 per question.

4. Market-entry consultant: weekly alert when new data is published

A consultant tracking emerging markets schedules a weekly run with onlyNew: true on population, GDP and GDP per capita for 15 countries. Most weeks return 0 rows and cost nothing beyond the run start. When the World Bank publishes a new year (or revises one), only those rows come back (isRevision shows revisions), and a Make scenario emails them to the team.

{"presets": ["wb:gdp", "wb:gdpPerCapita", "wb:population"], "countries": ["IN","ID","VN","PH","NG","KE","EG","MA","BR","MX","CO","PE","TR","SA","BD"], "mostRecentValues": 3, "onlyNew": true}

Use with the API

Python:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("<username>/world-bank-eurostat-indicators").call(run_input={
"worldBankIndicators": ["NY.GDP.PCAP.CD"],
"countries": ["FR", "DE", "IT", "ES"],
"startYear": 2015,
"endYear": 2024,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["countryName"], row["period"], row["value"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('<username>/world-bank-eurostat-indicators').call({
presets: ['eurostat:inflationHicp'],
countries: ['FR', 'DE', 'IT', 'ES'],
startYear: 2019,
endYear: 2025,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(items.map((r) => [r.countryName, r.period, r.value]));

Synchronous HTTP call returning the rows directly:

POST https://api.apify.com/v2/acts/<username>~world-bank-eurostat-indicators/run-sync-get-dataset-items?token=<TOKEN>

Use with AI agents (MCP)

Add the actor to the Apify MCP server (https://mcp.apify.com?actors=<username>/world-bank-eurostat-indicators) in Claude Desktop, Cursor, VS Code or any MCP client. The agent passes indicator codes or presets, countries and years. Every row carries a one-sentence text summary, and comparison.md gives a compact table for the context window.

Integrations

  • Google Sheets: export the dataset to a sheet after every run (built-in integration)
  • Make / Zapier / n8n: trigger on "Actor run succeeded" and get dataset items. Example n8n flow: Schedule (every Monday) → Apify "Run actor" with onlyNew: true → IF items > 0 → Slack message "New GDP data: {{text}}"
  • Webhooks, REST API, Python and JavaScript clients
  • Export formats: JSON, CSV, Excel, XML, RSS, HTML

FAQ

Where does the data come from? Directly from the official open APIs: api.worldbank.org/v2 and the Eurostat dissemination API (ec.europa.eu/eurostat/api/dissemination). Values are not modified, only reshaped and enriched (change, rank, labels).

How do I find an indicator code? World Bank: open the indicator on data.worldbank.org. The code is in the URL (/indicator/NY.GDP.PCAP.CD). Eurostat: the dataset code is shown in the data browser (e.g. une_rt_a). Add the filters you see in the browser as ?dimension=value.

Why is the latest year missing? The World Bank publishes most annual indicators with a 1-year lag. Eurostat is often more recent for EU countries. Empty years are skipped and not charged.

Are provisional values flagged? Yes: observationStatus contains Eurostat flags such as p (provisional) or e (estimated).

Monthly or quarterly data? Eurostat monthly and quarterly datasets work (period = 2025-06 or 2025-Q2, year = 2025). The World Bank API mostly gives annual series.

Does it work for aggregates? Yes: World Bank WLD, EUU, OED, income groups, and Eurostat EU27_2020, EA20. Aggregates are not ranked against countries.

What if I call it with an empty input? It runs a small demo query (GDP per capita for FR, DE, IT, ES over the default years, about 40 datapoints) instead of failing. If you give indicators without countries, or countries without indicators, the run stops right away with a clear message and nothing is charged.

Limits

  • An Eurostat dataset without filters returns every dimension combination (and each one is a datapoint). Filter large datasets (unit=, sex=, age=…), or the request may be refused by Eurostat as too large.
  • Indicator names, units and regions come from the sources in English.
  • rankAmongRequestedCountries ranks only the countries in your request, highest value first, and ignores aggregates.
  • The World Bank and Eurostat APIs sometimes slow down or return temporary errors. The actor retries 4 times with back-off, then skips that indicator (or only that country) with a clear log message (free). Other indicators keep going: they are fetched in parallel.
  • onlyNew remembers values per indicator, country and period in the named key-value store world-bank-eurostat-indicators-state of your account. Delete it to start over.