# Eurostat Data Fetcher – EU Statistics to CSV/Excel (`adamplaenitz/eurostat-dataset-fetcher`) Actor

Fetch any Eurostat table (GDP, unemployment, inflation/HICP, population, energy, trade …) via the official Eurostat API as flat rows: one row per observation with dimension codes, labels, value and status flag. Filter by country, time and unit; search the catalogue.

- **URL**: https://apify.com/adamplaenitz/eurostat-dataset-fetcher.md
- **Developed by:** [Adam Plänitz](https://apify.com/adamplaenitz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 observations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Eurostat Data Fetcher – EU Statistics to CSV/Excel

**Download any Eurostat table – GDP, unemployment, inflation (HICP), population, energy, trade, regional NUTS data and thousands more – through the official Eurostat Statistics API as flat rows: one row per observation with dimension codes, readable labels, value and status flag. Ready for CSV, Excel, Google Sheets, BI tools or a database. Includes a keyword search over the Eurostat catalogue to find the right dataset code.**

*Deutsche Kurzfassung weiter unten.*

### What does it do?

- **Data mode** – fetches one or more Eurostat datasets (e.g. `une_rt_m`, `nama_10_gdp`, `prc_hicp_minr`, `demo_pjan`) with your filters (countries/regions, time period, unit and any other dimension) and turns the multi-dimensional JSON-stat cube into a **flat table**: every observation becomes one row with
  - every dimension as a code column (`geo = DE`, `unit = PC_ACT`, `time = 2026-09`) plus a label column (`geo_label = Germany`),
  - `value` and the Eurostat status `flag` (`p` provisional, `e` estimated, `b` break in series, `c` confidential …) with `flagLabel`,
  - dataset title, last update, DOI, Data Browser link, `attribution` and `license`.
- **Search mode** – searches the Eurostat table of contents (about 7,600 datasets and predefined tables) by keyword or code prefix and returns code, title, theme path, first and last period, number of values and last update.
- Filters for dimensions a dataset does not have are dropped automatically for that dataset, so you can fetch several datasets with one filter set.
- Labels in English, German or French.

### Who is it for?

- **Analysts, economists, consultants** who need EU indicators in Excel or Sheets without clicking through the Data Browser.
- **Data teams** loading Eurostat series into a warehouse or dashboard on a schedule (daily or after each Eurostat release).
- **Journalists, researchers, students** who want clean CSVs with readable labels instead of SDMX/JSON-stat.
- **Developers** who need Eurostat data in an automation (Make, Zapier, n8n, webhooks) without writing a JSON-stat parser.

### How to use it

**Unemployment rate, monthly, for Germany, France, Italy, Spain and the EU (default input):**
dataset `une_rt_m`, geo `DE, FR, IT, ES, EU27_2020`, since `2024-01`, filters `{"unit": "PC_ACT", "sex": "T", "age": "TOTAL", "s_adj": "SA"}`.

**GDP at current prices for all countries since 2015:** dataset `nama_10_gdp`, since `2015`, filters `{"na_item": "B1GQ", "unit": "CP_MEUR"}`.

**Latest inflation rate (HICP, annual rate of change) per country:** dataset `prc_hicp_minr`, last N periods `1`, filters `{"unit": "RCH_A", "coicop18": "TOTAL"}`.

**Find the code first:** mode *Search the catalogue*, search term `population regions` or `house prices`.

**Tip:** open the dataset in the [Eurostat Data Browser](https://ec.europa.eu/eurostat/databrowser/), set the filters there and copy the codes – or run once with a narrow filter (e.g. last N periods `1`, one country) and look at the code columns of the result.

### Input

| Field | Example | Notes |
|---|---|---|
| Mode | `data` / `search` | |
| Dataset codes | `une_rt_m`, `nama_10_gdp`, Data Browser link | several datasets per run |
| Countries / regions (geo) | `DE`, `FR`, `EL`, `EU27_2020`, `EA20`, `DE21` | empty = all |
| Since / until time period | `2020`, `2020-Q1`, `2020-01` | format of the dataset's frequency |
| Last N periods | `1` | latest value(s) only |
| Dimension filters (JSON) | `{"unit": "PC_ACT", "sex": ["M", "F"]}` | any dimension; also `time` |
| Label language | `EN` / `DE` / `FR` | |
| Include labels | `true` | adds `<dimension>_label` columns |
| Include missing / confidential cells | `false` | cells with only a flag, value `null` |
| Max observations per dataset | `500000` | |
| Max items | `1000000` | charged items per run |
| Search term / Search in / Max search results | `unemployment monthly` / `dataset` / `50` | search mode |

A run without any input uses the example above (monthly unemployment rate). Datasets that do not exist, return no observations for the filters, or are too large for a synchronous Eurostat request are reported as free rows with an `error` field.

### Output example (data mode, one row)

```json
{
  "dataset": "une_rt_m",
  "datasetTitle": "Unemployment by sex and age - monthly data",
  "freq": "M", "freq_label": "Monthly",
  "s_adj": "SA", "s_adj_label": "Seasonally adjusted data, not calendar adjusted data",
  "age": "TOTAL", "age_label": "Total",
  "unit": "PC_ACT", "unit_label": "Percentage of population in the labour force",
  "sex": "T", "sex_label": "Total",
  "geo": "DE", "geo_label": "Germany",
  "time": "2026-09",
  "value": 4.1,
  "flag": null,
  "flagLabel": null,
  "lastUpdate": "2026-11-05T23:00:00+0100",
  "language": "EN",
  "doi": "https://doi.org/10.2908/UNE_RT_M",
  "datasetUrl": "https://ec.europa.eu/eurostat/databrowser/view/une_rt_m/default/table?lang=en",
  "attribution": "Source: Eurostat, Unemployment by sex and age - monthly data (UNE_RT_M), https://doi.org/10.2908/UNE_RT_M, accessed 2026-11-19",
  "license": "CC BY 4.0 (Eurostat copyright and reuse policy, Commission Decision 2011/833/EU)"
}
```

The columns depend on the dataset's dimensions (e.g. `na_item`, `coicop18`, `nace_r2`, `citizen`). Search results contain `dataset`, `datasetTitle`, `type`, `lastUpdate`, `dataStart`, `dataEnd`, `values`, `themes`, `datasetUrl` and `apiUrl`. A `RUN-SUMMARY` record in the key-value store lists per dataset the dimensions and sizes, observations, ignored filters and errors.

**Status flags:** `b` break in time series, `c` confidential, `d` definition differs, `e` estimated, `f` forecast, `n` not significant, `p` provisional, `r` revised, `s` Eurostat estimate, `u` low reliability, `z` not applicable; combinations like `bp` are possible.

### Pricing and speed

See the **Pricing** tab for the current price. You pay per observation (one row) – priced for bulk data – plus a small fee per dataset that returns data; catalogue search results are charged per entry. Error rows and empty results are free. A filtered request (a few hundred rows) takes about 5 seconds; an unfiltered medium table (about 760,000 observations) is downloaded in a few seconds; storing runs at about 2,000 rows per second (100,000 observations in under a minute).

### Data source, licence and privacy

- **Source:** [Eurostat](https://ec.europa.eu/eurostat), the statistical office of the European Union – [Eurostat Statistics API (JSON-stat 2.0)](https://wikis.ec.europa.eu/display/EUROSTATHELP/API+Statistics+-+data+query) and the [catalogue API](https://wikis.ec.europa.eu/display/EUROSTATHELP/API+Catalogue).
- **Licence:** according to the [Eurostat copyright notice](https://ec.europa.eu/eurostat/web/main/help/copyright-notice), Eurostat data may be reused free of charge for commercial and non-commercial purposes under **CC BY 4.0** (Commission Decision 2011/833/EU), **provided the source is acknowledged**. Eurostat asks for the citation `Source: Eurostat, [dataset DOI], [access date]`; every row carries this in `attribution` (and `doi`). If you modify the data, you must say so.
- **Exceptions to watch:** the reuse permission does not cover material of third parties. Eurostat notes that some data may only be reused **non-commercially**, in particular data from non-Eurostat sources and data for countries outside the EU, EFTA and the EU candidate countries, and certain trade data. Check the dataset's metadata (link in `datasetUrl`) if you reuse such data commercially.
- **No responsibility of Eurostat:** the data are provided as published by Eurostat; Eurostat and the European Commission accept no responsibility for this Actor or for any use of the data.
- **No personal data:** Eurostat publishes aggregated statistics only.
- This Actor is an independent tool and is **not affiliated with or endorsed by Eurostat or the European Commission**.

### Limits

- Eurostat answers large extractions asynchronously ("too large"); this Actor then returns an error row – add filters (country, time, unit) or use the Eurostat bulk download for full tables. Unfiltered requests are refused for tables with more than 2 million values.
- The whole response of one dataset is held in memory: the response size limit is about 1/10 of the run memory (about 100 MB at the default 1 GB). Increase the memory for very large filtered extracts.
- Time filters must use the dataset's frequency format (`2024`, `2024-Q1`, `2024-01`); `Last N periods` and since/until should not be combined.
- Some old tables are frozen (e.g. `prc_hicp_manr` ends in 2025-12; the current HICP table is `prc_hicp_minr` with dimension `coicop18`). The search mode shows `dataEnd` for every table.
- Search uses the catalogue titles in the selected label language; English gives the best results.

Questions or feature requests? Please open an issue in the **Issues** tab – usually answered within 1–2 working days.

***

### Deutsch (Kurzfassung)

**Beliebige Eurostat-Tabellen (BIP, Arbeitslosigkeit, Inflation/HVPI, Bevölkerung, Energie, Handel, NUTS-Regionen …) über die offizielle Eurostat-API als flache Tabelle – eine Zeile je Beobachtung mit Dimensionscodes, Bezeichnungen, Wert und Statusflag, direkt für CSV/Excel.**

- Eingabe: Dataset-Codes (z. B. `une_rt_m`, `nama_10_gdp`, `prc_hicp_minr`), Länder/Regionen (`DE`, `AT`, `EU27_2020`), Zeitraum und beliebige Dimensionsfilter als JSON; Bezeichnungen auf Deutsch, Englisch oder Französisch.
- Suchmodus: Eurostat-Katalog per Stichwort oder Code-Anfang durchsuchen.
- Quelle: Eurostat, Weiterverwendung nach CC BY 4.0 mit Quellenangabe („Source: Eurostat, DOI, Abrufdatum“ steht in jeder Zeile); Ausnahmen für Drittdaten und Nicht-EU/EFTA-Länder beachten. Keine Verbindung zu Eurostat oder der Europäischen Kommission.

# Actor input Schema

## `mode` (type: `string`):

data = download observations of the given datasets. search = find dataset codes in the Eurostat catalogue by keyword.

## `datasets` (type: `array`):

Eurostat dataset codes, e.g. une_rt_m (unemployment, monthly), nama_10_gdp (GDP), prc_hicp_manr (HICP inflation), demo_pjan (population). A Data Browser link (…/databrowser/view/une_rt_m/…) works too. Filters apply to all datasets; filters for dimensions a dataset does not have are ignored for that dataset.

## `geo` (type: `array`):

Geo codes, e.g. DE, FR, IT, ES, EL (Greece), EU27_2020, EA20, or NUTS regions like DE21. Empty = all.

## `sinceTimePeriod` (type: `string`):

First period to include, in the format of the dataset: 2020 (annual), 2020-Q1 (quarterly), 2020-01 (monthly).

## `untilTimePeriod` (type: `string`):

Last period to include (same format as above). Empty = up to the latest.

## `lastTimePeriod` (type: `integer`):

Only the latest N time periods (e.g. 1 = most recent value per series). Do not combine with since/until.

## `filters` (type: `object`):

Further dimension filters as JSON: dimension code → value or list of values, e.g. {"unit": "PC_ACT", "sex": "T", "age": "TOTAL", "s_adj": "SA"} or {"na_item": "B1GQ", "unit": \["CP_MEUR", "CLV10_MEUR"]}. Codes are shown in the Eurostat Data Browser and in the output (columns with \_label). You can also put time here, e.g. {"time": \["2023", "2024"]}.

## `language` (type: `string`):

Language of the dataset title and the dimension labels.

## `includeLabels` (type: `boolean`):

Add a <dimension>\_label column with the readable label next to every dimension code (e.g. geo = DE, geo_label = Germany).

## `includeMissing` (type: `boolean`):

Also output cells without a value that carry only a status flag (e.g. confidential). They have value null and are charged like observations.

## `maxRowsPerDataset` (type: `integer`):

Upper limit of observations per dataset (protects against accidentally huge downloads).

## `maxItems` (type: `integer`):

Upper limit of charged items per run (observations or catalogue entries) across all datasets.

## `searchQuery` (type: `string`):

Search mode: words that must appear in the dataset title, code or theme, e.g. "unemployment monthly", "GDP regional", "HICP" or a code prefix like "nama_10". English works best (the catalogue is searched in the label language).

## `searchTypes` (type: `array`):

Search mode: dataset = full multi-dimensional datasets, table = Eurostat's predefined tables (tps…, tec…, tin…). Empty = both.

## `maxSearchResults` (type: `integer`):

Search mode: maximum number of catalogue entries returned (best matches first).

## Actor input object example

```json
{
  "mode": "data",
  "datasets": [
    "une_rt_m"
  ],
  "geo": [
    "DE",
    "FR",
    "IT",
    "ES",
    "EU27_2020"
  ],
  "sinceTimePeriod": "2024-01",
  "filters": {
    "unit": "PC_ACT",
    "sex": "T",
    "age": "TOTAL",
    "s_adj": "SA"
  },
  "language": "EN",
  "includeLabels": true,
  "includeMissing": false,
  "maxRowsPerDataset": 500000,
  "maxItems": 1000000,
  "maxSearchResults": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per observation (data mode) or per dataset found (search mode).

## `summary` (type: `string`):

Datasets fetched, observations, ignored filters, errors and API statistics.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "datasets": [
        "une_rt_m"
    ],
    "geo": [
        "DE",
        "FR",
        "IT",
        "ES",
        "EU27_2020"
    ],
    "sinceTimePeriod": "2024-01",
    "filters": {
        "unit": "PC_ACT",
        "sex": "T",
        "age": "TOTAL",
        "s_adj": "SA"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("adamplaenitz/eurostat-dataset-fetcher").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "datasets": ["une_rt_m"],
    "geo": [
        "DE",
        "FR",
        "IT",
        "ES",
        "EU27_2020",
    ],
    "sinceTimePeriod": "2024-01",
    "filters": {
        "unit": "PC_ACT",
        "sex": "T",
        "age": "TOTAL",
        "s_adj": "SA",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("adamplaenitz/eurostat-dataset-fetcher").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "datasets": [
    "une_rt_m"
  ],
  "geo": [
    "DE",
    "FR",
    "IT",
    "ES",
    "EU27_2020"
  ],
  "sinceTimePeriod": "2024-01",
  "filters": {
    "unit": "PC_ACT",
    "sex": "T",
    "age": "TOTAL",
    "s_adj": "SA"
  }
}' |
apify call adamplaenitz/eurostat-dataset-fetcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,adamplaenitz/eurostat-dataset-fetcher"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cla2f6bbG8P5jinUn/builds/GXQTPRm0xq5SDRBDz/openapi.json
