# Eurostat Scraper (`anyxsolutions/eurostat-scraper`) Actor

Scrape Eurostat, the EU's official statistics: GDP, population, inflation, unemployment, trade and 7,500+ datasets and tables for every EU country and region, filtered by country, unit and year, one tidy row per value with labels and status flags. Search the catalogue by keyword. No API key.

- **URL**: https://apify.com/anyxsolutions/eurostat-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

![banner](https://anyx.solutions/banners/eurostat-scraper.png)

## Eurostat Scraper

**Official EU statistics — GDP, population, prices, jobs, trade and 7,500+ datasets — as one tidy row per value, with labels and status flags.**

Eurostat is the statistical office of the European Union. Its database covers every EU country, the
euro area, EFTA and candidate countries, and their regions, on everything from GDP and inflation to
unemployment, population, energy prices, house prices, tourism and health. This Actor reads any
Eurostat dataset or table, narrows it to the countries, units, breakdowns and periods you choose, and
returns one clean row per value: the dataset, every dimension's code and label, the period, the value,
and Eurostat's status flag (provisional, estimated, break in series…). It can also search the whole
catalogue by keyword, so you can find the right dataset first. Paste a data browser URL or a dataset
code; there is no API key, login or proxy to set up. Built for economists, analysts, consultants,
journalists, and anyone feeding EU statistics into spreadsheets, BI tools or models.

### ⚡ Quick start

```json
{
  "startUrls": [
    {
      "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en"
    }
  ],
  "filters": { "unit": "CP_MEUR", "na_item": "B1GQ" },
  "geo": ["DE", "FR", "IT"],
  "timeFrom": "2015",
  "maxItems": 50
}
```

### 🧩 Input

| Field                 | Type    | Required | Default                      | Description                                                                                                                                                        |
| --------------------- | ------- | -------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `startUrls`           | array   | no       | —                            | Eurostat dataset URLs: data browser pages (`ec.europa.eu/eurostat/databrowser/view/<code>/default/table`) or product pages (`…/databrowser/product/page/<CODE>`).  |
| `datasetCodes`        | array   | no       | —                            | Dataset codes, one per line, for example `nama_10_gdp` (GDP), `une_rt_m` (monthly unemployment), `prc_hicp_manr` (inflation) or `tps00001` (population).           |
| `searchTerms`         | array   | no       | —                            | Search the catalogue: keywords such as `unemployment rate` or `house prices`. Returns one row per matching dataset instead of data.                                |
| `geo`                 | array   | no       | —                            | Countries and regions: Eurostat geo codes such as `DE`, `EL` (Greece), `EU27_2020` (the EU), `EA20` (euro area) or NUTS codes like `DE11`. Empty means all.        |
| `filters`             | object  | no       | —                            | Dimension filters: codes to keep per dimension, for example `{"unit": "CP_MEUR", "na_item": ["B1GQ"], "sex": "T"}`. Keys are the names in each row's `dimensions`. |
| `timeFrom`            | string  | no       | —                            | From period: only periods from this one on, written as Eurostat writes them (`2015`, `2020-Q1`, `2023-01`).                                                        |
| `timeTo`              | string  | no       | —                            | To period: only periods up to this one; a year takes in its quarters and months.                                                                                   |
| `lastTimePeriods`     | integer | no       | —                            | Latest periods only: the newest N periods of each dataset, for example `1` for a snapshot.                                                                         |
| `skipEmptyValues`     | boolean | no       | `false`                      | Skip observations without a value: leave out rows that carry only a status flag, such as confidential values.                                                      |
| `onlyCommercialReuse` | boolean | no       | `true`                       | Only data licensed for commercial reuse: leave out countries outside the EU, EFTA and the EU candidate countries (see the FAQ).                                    |
| `maxItems`            | integer | no       | —                            | Maximum rows per source (URL, dataset code or search). The input form starts at 5; leave it empty for every row.                                                   |
| `proxyConfiguration`  | object  | no       | `{ "useApifyProxy": false }` | Proxy configuration. Eurostat needs no proxy.                                                                                                                      |

**How do I find dimension codes?** Run a dataset once with a small `maxItems`: each row's
`dimensions` and `dimensionLabels` list every dimension with its code and meaning. A filter on a
dimension a dataset does not have is skipped for that dataset, so one filter set can serve several
datasets.

### 📤 Output

Datasets, codes and URLs give one row per observation (`itemType: "observation"`). Searches give
one row per matching dataset or table (`itemType: "dataset"`).

#### Fields

| Field                 | Type   | Description                                                                                                              |
| --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| `itemType`            | string | `observation` for a value, `dataset` for a search result.                                                                |
| `datasetCode`         | string | Eurostat dataset or table code, for example `nama_10_gdp`.                                                               |
| `datasetTitle`        | string | Dataset title.                                                                                                           |
| `seriesKey`           | string | Observation: the series' codes joined by dots in dimension order (`A.CP_MEUR.B1GQ.DE`), handy for joins.                 |
| `geo`                 | string | Observation: country or region code (`null` for datasets without one).                                                   |
| `geoLabel`            | string | Observation: country or region name.                                                                                     |
| `unit`                | string | Observation: unit of measure code.                                                                                       |
| `unitLabel`           | string | Observation: unit of measure, in words.                                                                                  |
| `freq`                | string | Observation: frequency code (`A` annual, `Q` quarterly, `M` monthly…).                                                   |
| `freqLabel`           | string | Observation: frequency, in words.                                                                                        |
| `time`                | string | Observation: the period, as Eurostat writes it (`2024`, `2024-Q2`, `2024-07`).                                           |
| `year`                | number | Observation: the period's year.                                                                                          |
| `value`               | number | Observation: the value, or `null` when Eurostat gives only a status flag.                                                |
| `statusFlag`          | string | Observation: Eurostat's flag, for example `p` (provisional), `e` (estimated), `b` (break in series), `c` (confidential). |
| `statusLabel`         | string | Observation: the flag, in words.                                                                                         |
| `dimensions`          | object | Observation: every dimension's code, for example `{"unit": "CP_MEUR", "na_item": "B1GQ", "geo": "DE"}`.                  |
| `dimensionLabels`     | object | Observation: every dimension's label, keyed like `dimensions`.                                                           |
| `lastUpdated`         | string | When Eurostat last updated the data (ISO 8601; a date for search results).                                               |
| `doi`                 | string | Observation: the dataset's DOI, for citing it.                                                                           |
| `url`                 | string | The dataset's page in the Eurostat data browser.                                                                         |
| `type`                | string | Search result: `dataset` or `table`.                                                                                     |
| `lastStructureChange` | string | Search result: date of the last change to the dataset's structure.                                                       |
| `dataStart`           | string | Search result: first period with data.                                                                                   |
| `dataEnd`             | string | Search result: latest period with data.                                                                                  |
| `valuesCount`         | number | Search result: number of values the dataset holds.                                                                       |
| `themePath`           | array  | Search result: the dataset's place in Eurostat's theme tree.                                                             |
| `searchTerm`          | string | Search result: the search that found it.                                                                                 |

<details><summary>Example output</summary>

```json
{
  "itemType": "observation",
  "datasetCode": "nama_10_gdp",
  "datasetTitle": "Gross domestic product (GDP) and main components (output, expenditure and income) - annual data",
  "seriesKey": "A.CP_MEUR.B1GQ.DE",
  "geo": "DE",
  "geoLabel": "Germany",
  "unit": "CP_MEUR",
  "unitLabel": "Current prices, million euro",
  "freq": "A",
  "freqLabel": "Annual",
  "time": "2023",
  "year": 2023,
  "value": 4254930,
  "statusFlag": "p",
  "statusLabel": "provisional",
  "dimensions": {
    "freq": "A",
    "unit": "CP_MEUR",
    "na_item": "B1GQ",
    "geo": "DE"
  },
  "dimensionLabels": {
    "freq": "Annual",
    "unit": "Current prices, million euro",
    "na_item": "Gross domestic product at market prices",
    "geo": "Germany"
  },
  "lastUpdated": "2026-10-22T21:00:00.000Z",
  "doi": "10.2908/NAMA_10_GDP",
  "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en"
}
```

```json
{
  "itemType": "dataset",
  "datasetCode": "prc_hpi_q",
  "datasetTitle": "House price index - quarterly data",
  "type": "dataset",
  "lastUpdated": "2026-10-01",
  "lastStructureChange": "2026-10-01",
  "dataStart": "2005-Q1",
  "dataEnd": "2026-Q2",
  "valuesCount": 32753,
  "themePath": [
    "Economy and finance",
    "Prices",
    "Housing price and sales statistics",
    "House price and sales index"
  ],
  "searchTerm": "house prices",
  "url": "https://ec.europa.eu/eurostat/databrowser/view/prc_hpi_q/default/table?lang=en"
}
```

</details>

### 💡 Use cases

- **Economic research and forecasting** — pull GDP, inflation, unemployment, wages and trade for every EU country into one tidy table, ready for pandas, R, Excel or a BI tool.
- **Market sizing and expansion** — compare population, household spending, business counts and prices across countries and NUTS regions.
- **Monitoring and dashboards** — schedule a run with `lastTimePeriods` to catch each new release of the indicators you track.
- **Journalism and policy work** — find the right dataset with a keyword search, then fetch exactly the countries and years a story needs, with Eurostat's flags and DOI for sourcing.

### ❓ FAQ

- **Can I use the data commercially?** Eurostat's copyright notice allows reuse of its data, commercial or not, provided the source is acknowledged ("Source: Eurostat" with the dataset's DOI, which every row carries). It excludes from commercial reuse data for countries outside the EU, EFTA and the official candidate countries (for example the United States, Japan or China), some Swiss, Liechtenstein and Austrian trade data, and data Eurostat marks as belonging to other sources. `onlyCommercialReuse` is on by default and leaves out the excluded countries; turn it off only for non-commercial use. Check Eurostat's copyright notice for the full terms.
- **Which datasets work?** Every dataset and table in Eurostat's database (codes such as `nama_10_gdp`, `une_rt_m`, `tps00001`). Comext detailed trade datasets (`DS-…` codes) are not covered.
- **Can I get a whole dataset?** Yes: leave `maxItems` and the filters empty. Large datasets are read piece by piece, so even datasets with millions of values come through; filters make runs faster and cheaper.
- **Why do some rows have `value: null`?** Eurostat lists some cells with only a flag, such as `c` (confidential) or `:` gaps. Turn on `skipEmptyValues` to leave them out.
- **What language are the labels in?** English.
- **Do I need a proxy?** No. Eurostat's data is public; the Actor runs without one.

### 🔗 More scrapers by Anyx

- [Crossref Scraper](https://apify.com/anyxsolutions/crossref-scraper)
- [arXiv Scraper](https://apify.com/anyxsolutions/arxiv-scraper)
- [Google News Scraper](https://apify.com/anyxsolutions/google-news-scraper)
- [Hugging Face Scraper](https://apify.com/anyxsolutions/hugging-face-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

## `startUrls` (type: `array`):

Eurostat data browser pages of a dataset or table, for example https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en (GDP). Product pages (…/databrowser/product/page/NAMA_10_GDP) work too.

## `datasetCodes` (type: `array`):

Eurostat dataset or table codes, one per line, for example nama_10_gdp (GDP), une_rt_m (monthly unemployment), prc_hicp_manr (inflation), demo_pjan (population by age and sex) or tps00001 (population). The code is in every data browser address.

## `searchTerms` (type: `array`):

Keywords to find datasets and tables, one search per line, for example unemployment rate or house prices. Returns one row per matching dataset with its code, title, last update, period covered and size, instead of data.

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

Eurostat geo codes, one per line, for example DE, FR, EL (Greece), EU27_2020 (the EU) or EA20 (the euro area); regional datasets take NUTS codes such as DE11. Leave empty for every country and region.

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

Codes to keep per dimension, for example {"unit": "CP_MEUR", "na_item": \["B1GQ"], "sex": "T"}. Keys are the dimension codes shown in every row's dimensions field; values are one code or a list. Leave empty to get every code.

## `timeFrom` (type: `string`):

Only return periods from this one on, written as Eurostat writes them, for example 2015, 2020-Q1 or 2023-01. Leave empty to start at the first period on record.

## `timeTo` (type: `string`):

Only return periods up to this one, for example 2024; a year also takes in its quarters and months. Leave empty to end at the latest period.

## `lastTimePeriods` (type: `integer`):

Return only the latest N periods of each dataset, for example 1 for a snapshot of the newest figures. Combines with From period and To period.

## `skipEmptyValues` (type: `boolean`):

Leave out rows Eurostat lists with only a status flag and no number, such as confidential (c) or not available values.

## `onlyCommercialReuse` (type: `boolean`):

Leave out rows for countries outside the EU, EFTA and the EU candidate countries (for example the United States or Japan). Eurostat's copyright notice allows commercial reuse of its data except for those countries.

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

Maximum number of rows to return per URL, dataset code or search. Leave empty for every row; whole datasets can hold millions.

## `proxyConfiguration` (type: `object`):

Proxy settings. Eurostat data is public and needs no proxy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en"
    }
  ],
  "filters": {
    "unit": "CP_MEUR",
    "na_item": "B1GQ"
  },
  "skipEmptyValues": false,
  "onlyCommercialReuse": true,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en"
        }
    ],
    "filters": {
        "unit": "CP_MEUR",
        "na_item": "B1GQ"
    },
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/eurostat-scraper").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 = {
    "startUrls": [{ "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en" }],
    "filters": {
        "unit": "CP_MEUR",
        "na_item": "B1GQ",
    },
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/eurostat-scraper").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 '{
  "startUrls": [
    {
      "url": "https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en"
    }
  ],
  "filters": {
    "unit": "CP_MEUR",
    "na_item": "B1GQ"
  },
  "maxItems": 5
}' |
apify call anyxsolutions/eurostat-scraper --silent --output-dataset

```

## MCP server setup

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

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/RIiTKHYSKleAPWatM/builds/BEvaP8JFniDJsAXKy/openapi.json
