# Eurostat EU Statistics Scraper (`parseforge/eurostat-scraper`) Actor

Scrape European Union statistical data from Eurostat. Get GDP, unemployment, inflation, population, trade, and economic indicators for all 27 EU member states plus candidate countries with time series data going back decades.

- **URL**: https://apify.com/parseforge/eurostat-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Business, Other
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![ParseForge Banner](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)

## 🇪🇺 Eurostat EU Statistics Scraper


<table><tr>
<td style="border-left:4px solid #0F766E;padding:12px 16px;font-weight:600">Pull structured records from Eurostat EU Statistics — clean fields ready as CSV, JSON, JSONL, Excel, or XML for downstream pipelines.</td>
</tr></table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

````

parseforge/eurostat-scraper on Apify. Call: ApifyClient("TOKEN").actor("parseforge/eurostat-scraper").call(run\_input={...}), then client.dataset(run\["defaultDatasetId"]).list\_items().items for results. Key inputs: maxItems (integer, default 10), datasetCode (string, default "demo\_gind"), geo (string), timeFrom (string), timeTo (string). Full actor spec: fetch build via GET https://api.apify.com/v2/acts/parseforge~eurostat-scraper (Bearer TOKEN). Get token: https://console.apify.com/account/integrations

````

🚀 Collect official European Union statistics from any Eurostat dataset. Get GDP, unemployment, inflation, population, trade, and energy data for all 27 EU member states with automatic dimension unfolding into clean tabular rows.

🕒 Last updated: 2026-04-23

European economic and social statistics are spread across thousands of Eurostat datasets in a compact JSON-stat format that requires manual downloading and wrangling. Researchers, analysts, and journalists need this data in flat, analysis-ready format.

The Eurostat EU Statistics Scraper automates this entire workflow. Enter a dataset code, optionally filter by country and time range, and get clean tabular data with human-readable labels for every dimension. No coding, no JSON-stat parsing, no manual downloads.

| | |
|---|---|
| **Target Audience** | Economists, financial analysts, policy researchers, data journalists |
| **Primary Use Cases** | Economic research, policy analysis, macro modeling, data journalism |

---

### 📋 What Does It Do

This tool collects official statistics from the Eurostat database, automatically flattening the nested JSON-stat format into one row per data point. It delivers:

- 📊 **Any Eurostat dataset** - population, GDP, inflation, unemployment, trade, energy, and thousands more
- 🗺️ **Country filtering** - pull data for specific EU countries, candidate states, or EU27 totals
- 📅 **Time range filtering** - limit results to a specific start and end period
- 🔄 **Auto-flatten dimensions** - nested JSON-stat unfolded into one row per data point
- 🌍 **Multi-country comparisons** - pull data for several countries in one run
- 🏷️ **Human-readable labels** - every dimension code comes with its localized label

---

### 🎬 How to Use the Eurostat Scraper - Full Demo

🚧 Demo video coming soon. Follow the step-by-step instructions below to get started in under 2 minutes.

---

### ⚙️ Input

Configure your dataset, country filter, and time range.

<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
</thead>
<tbody>
<tr><td><b>Max Items</b></td><td>Integer</td><td>Free users: Limited to 10 data points. Paid users: up to 1,000,000</td></tr>
<tr><td><b>Dataset Code</b></td><td>String</td><td>Eurostat dataset identifier (e.g. "demo_gind", "nama_10_gdp", "une_rt_a")</td></tr>
<tr><td><b>Geographic Filter</b></td><td>String</td><td>Country codes, comma-separated (e.g. "DE,FR,IT") or "EU27_2020" for EU total</td></tr>
<tr><td><b>Time From</b></td><td>String</td><td>Start period (e.g. "2020" for yearly, "2020-01" for monthly)</td></tr>
<tr><td><b>Time To</b></td><td>String</td><td>End period</td></tr>
</tbody>
</table>

**Example 1 - Unemployment rates for 5 countries:**
```json
{
    "datasetCode": "une_rt_a",
    "geo": "DE,FR,IT,ES,PL",
    "timeFrom": "2020",
    "timeTo": "2024",
    "maxItems": 500
}
````

**Example 2 - EU population data:**

```json
{
    "datasetCode": "demo_gind",
    "geo": "EU27_2020",
    "maxItems": 100
}
```

> ⚠️ Free users are limited to 10 data points per run. [Sign up for a paid plan](https://console.apify.com/sign-up?fpr=vmoqkp) to unlock up to 1,000,000 records.

***

### 📊 Output

#### 🧾 Output Schema

| Field | Type | Description |
|-------|------|-------------|
| value | number | The numeric data point |
| dataset | string | Eurostat dataset code |
| datasetLabel | string | Human-readable dataset title |
| geo | string | Country code |
| geo\_label | string | Country full name |
| time | string | Time period (year/month/quarter) |
| unit | string | Measurement unit code |
| unit\_label | string | Unit description (persons, EUR, %) |
| freq | string | Frequency code (A, M, Q) |
| freq\_label | string | Frequency description |
| scrapedAt | string | Timestamp of data collection |

#### 📦 Sample Output

**Sample 1 - German unemployment rate:**

```json
{
    "value": 3.1,
    "dataset": "une_rt_a",
    "datasetLabel": "Unemployment rate - annual data",
    "freq": "A",
    "freq_label": "Annual",
    "unit": "PC_ACT",
    "unit_label": "Percentage of active population",
    "sex": "T",
    "sex_label": "Total",
    "geo": "DE",
    "geo_label": "Germany",
    "time": "2024",
    "scrapedAt": "2026-04-10T12:00:00.000Z"
}
```

**Sample 2 - French GDP:**

```json
{
    "value": 2716000,
    "dataset": "nama_10_gdp",
    "datasetLabel": "GDP and main components",
    "freq": "A",
    "freq_label": "Annual",
    "unit": "CP_MEUR",
    "unit_label": "Current prices, million euro",
    "geo": "FR",
    "geo_label": "France",
    "time": "2023",
    "scrapedAt": "2026-04-10T12:00:00.000Z"
}
```

**Sample 3 - Italian inflation:**

```json
{
    "value": 1.8,
    "dataset": "prc_hicp_manr",
    "datasetLabel": "HICP - monthly data (annual rate of change)",
    "freq": "M",
    "freq_label": "Monthly",
    "unit": "RCH_A",
    "unit_label": "Annual rate of change",
    "geo": "IT",
    "geo_label": "Italy",
    "time": "2024-06",
    "scrapedAt": "2026-04-10T12:00:00.000Z"
}
```

***

### ✨ Why Choose the Eurostat EU Statistics Scraper?

| Advantage | Details |
|-----------|---------|
| 📊 **Any dataset** | Access thousands of Eurostat datasets with one tool |
| 🔄 **Auto-flatten** | JSON-stat automatically unfolded into flat rows |
| 🏷️ **Human labels** | Every code comes with its readable label |
| 🗺️ **Country filtering** | Pull data for specific countries or EU totals |
| 📅 **Time range** | Filter by start and end period |
| ⏰ **Scheduled refresh** | Set up monthly runs to track new data releases |
| 📁 **Multiple formats** | Export as JSON, CSV, or Excel |

***

### 📈 How Does It Compare?

| Feature | Our Tool | Manual Download |
|---------|----------|-----------------|
| Auto-flatten JSON-stat | One row per data point | Nested format |
| Multi-dataset support | Any dataset code | Per-dataset downloads |
| Country + time filters | Built-in | Manual UI |
| Dimension labels | Included | Codes only |
| Scheduled refresh | Daily/monthly | Manual downloads |
| Export to JSON/CSV/Excel | Yes | Limited formats |

***

### 🚀 How to Use

1. **Sign Up** - [Create a free account w/ $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes)
2. **Find the Tool** - Search for "Eurostat EU Statistics Scraper" in the Apify Store
3. **Set Input** - Enter a dataset code, optionally filter by country and date
4. **Run It** - Click "Start" and get flat stats ready for analysis
5. **Download Data** - Export results as CSV, Excel, or JSON from the Dataset tab

***

### 💼 Business Use Cases

**Economists and Researchers:**

- Track GDP, inflation, and unemployment across EU countries
- Download historical time series for academic papers

**Financial Analysts:**

- Feed Eurostat indicators into macro models and dashboards
- Compare economic performance across member states

**Policy Analysts:**

- Compare labor force, migration, and education stats
- Build country profiles with comprehensive data

**Journalists:**

- Pull fresh statistics for data journalism pieces on the EU
- Create interactive charts from structured data

***

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🎯 | **Built for the job.** Scoped specifically to this data source so you skip the parser engineering entirely. |
| 🔖 | **Structured output.** Clean, typed fields ready for analysis, dashboards, or downstream pipelines. |
| ⚡ | **Fast.** Optimized request patterns return results in seconds, not minutes. |
| 🔁 | **Always fresh.** Every run pulls live data, so the dataset reflects the source as of run time. |
| 🌐 | **No infra to manage.** Apify handles proxies, retries, scaling, scheduling, and storage. |
| 🛡️ | **Reliable.** Battle-tested across many runs and edge cases, with graceful error handling. |
| 🚫 | **No code required.** Configure in the UI, run from CLI, schedule via cron, or call from any language with the Apify SDK. |

> 📊 Production-grade structured data without the engineering overhead of building and maintaining your own scraper.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ Eurostat EU Statistics Scraper** *(this Actor)* | $5 free credit, then pay-per-use | Full source coverage | **Live per run** | Source-native filters supported | ⚡ 2 min |
| Build your own scraper | Engineering hours | Full once built | Whenever you maintain it | Custom code | 🐢 Days to weeks |
| Paid managed APIs | $$$ monthly | Vendor-defined | Live | Vendor-defined | ⏳ Hours |
| Third-party data dumps | Varies | Subset, often stale | Periodic | None | 🕒 Variable |

Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the Eurostat EU Statistics Scraper page on the Apify Store.
3. 🎯 **Set input.** Configure the input fields in the form (or paste a JSON), then set maxItems.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 📊 Data & Analytics

- Build trend reports and dashboards from live source data
- Feed BI tools, warehouses, and ML pipelines with structured records
- Run periodic snapshots to track changes over time
- Compare segments, regions, or categories with consistent fields

</td>
<td width="50%" valign="top">

#### 🏢 Operations & Strategy

- Monitor competitor moves, pricing, and inventory shifts
- Build internal directories and lookup tools backed by current data
- Power workflows that depend on fresh source records
- Cut manual data-gathering time from hours to minutes

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🎯 Marketing & Growth

- Identify market opportunities and trending topics
- Research target audiences and customer personas at scale
- Power lead-generation pipelines with verified records
- Track sentiment, reviews, or social signals over time

</td>
<td width="50%" valign="top">

#### 🛠️ Engineering & Product

- Prototype features that need real-world data without owning a crawler
- Replace fragile in-house scrapers with a managed Actor
- Wire datasets into your apps via the Apify API or webhooks
- Skip the proxy, retry, and parsing maintenance entirely

</td>
</tr>
</table>

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20Eurostat%20EU%20Statistics%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20Eurostat%20EU%20Statistics%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20Eurostat%20EU%20Statistics%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20Eurostat%20EU%20Statistics%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating Your Eurostat Data Collection

Schedule monthly runs to automatically collect the latest data releases. Use the Apify scheduler and push results to Google Sheets, Slack, or your data warehouse.

### 🔌 Integrate Eurostat Scraper with Any App

Connect your EU statistics to thousands of apps using these integrations:

- [Make](https://docs.apify.com/platform/integrations/make) - Automate stats imports
- [Zapier](https://docs.apify.com/platform/integrations/zapier) - Push new data releases to workflows
- [Slack](https://docs.apify.com/platform/integrations/slack) - Post monthly stats updates
- [Google Drive](https://docs.apify.com/platform/integrations/drive) - Build live dashboards
- [Airbyte](https://docs.apify.com/platform/integrations/airbyte) - Sync to your data warehouse
- [Webhooks](https://docs.apify.com/platform/integrations/webhooks) - Trigger workflows on completion

***

### 🔌 Integrate with any app

Eurostat EU Statistics Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe results into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh data into your product backend, or alert your team in Slack.

***

### 🔗 Recommended Actors

Looking for more data collection tools? Check out these related actors:

| Actor | Description | Link |
|-------|-------------|------|
| GSA eLibrary Scraper | US government contract data | [Link](https://apify.com/parseforge/gsa-elibrary-scraper) |
| FINRA BrokerCheck Scraper | Broker registration data | [Link](https://apify.com/parseforge/finra-brokercheck-scraper) |
| Pitchbook Funds Scraper | Private fund profiles | [Link](https://apify.com/parseforge/pitchbook-funds-scraper) |
| LoopNet Business Listings Scraper | Commercial real estate listings | [Link](https://apify.com/parseforge/loopnet-scraper) |
| Franchise Direct Scraper | Franchise opportunity listings | [Link](https://apify.com/parseforge/franchisedirect-scraper) |

**Pro Tip:** 💡 Browse the full [ParseForge catalog](https://apify.com/parseforge) to find more data tools.

***

### 🆘 Need Help?

- Check the FAQ section above for common questions
- Visit the [Apify documentation](https://docs.apify.com) for platform guides
- Contact us at [Tally contact form](https://tally.so/r/BzdKgA)

***

> **⚠️ Disclaimer:** This Actor is an independent tool and is not affiliated with, endorsed by, or connected to Eurostat, the European Commission, or any EU institution. It collects only publicly available statistical data.

# Actor input Schema

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

Free users: Limited to 10 data points. Paid users: Optional, max 1,000,000

## `datasetCode` (type: `string`):

Eurostat dataset code. Examples: 'demo\_gind' (population), 'nama\_10\_gdp' (GDP), 'une\_rt\_a' (unemployment), 'prc\_hicp\_manr' (inflation), 'nrg\_ind\_peh' (energy).

## `geo` (type: `string`):

Country codes, comma-separated (e.g. 'DE,FR,IT'). Use 'EU27\_2020' for EU total.

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

Start period (e.g. '2020' for yearly, '2020-01' for monthly).

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

End period.

## Actor input object example

```json
{
  "maxItems": 10,
  "datasetCode": "demo_gind"
}
```

# 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 = {
    "maxItems": 10,
    "datasetCode": "demo_gind"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/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 = {
    "maxItems": 10,
    "datasetCode": "demo_gind",
}

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

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

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

```

## CLI example

```bash
echo '{
  "maxItems": 10,
  "datasetCode": "demo_gind"
}' |
apify call parseforge/eurostat-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/eurostat-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Eurostat EU Statistics Scraper",
        "description": "Scrape European Union statistical data from Eurostat. Get GDP, unemployment, inflation, population, trade, and economic indicators for all 27 EU member states plus candidate countries with time series data going back decades.",
        "version": "1.0",
        "x-build-id": "3AeDfFnDdkykB2CwL"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~eurostat-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-eurostat-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~eurostat-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-eurostat-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~eurostat-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-eurostat-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 10 data points. Paid users: Optional, max 1,000,000"
                    },
                    "datasetCode": {
                        "title": "Dataset Code",
                        "type": "string",
                        "description": "Eurostat dataset code. Examples: 'demo_gind' (population), 'nama_10_gdp' (GDP), 'une_rt_a' (unemployment), 'prc_hicp_manr' (inflation), 'nrg_ind_peh' (energy)."
                    },
                    "geo": {
                        "title": "Geographic Filter",
                        "type": "string",
                        "description": "Country codes, comma-separated (e.g. 'DE,FR,IT'). Use 'EU27_2020' for EU total."
                    },
                    "timeFrom": {
                        "title": "Time From",
                        "type": "string",
                        "description": "Start period (e.g. '2020' for yearly, '2020-01' for monthly)."
                    },
                    "timeTo": {
                        "title": "Time To",
                        "type": "string",
                        "description": "End period."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
