# EU Electricity & Gas Prices incl. Taxes and Components (`vespa-zzz/eu-energy-prices`) Actor

Eurostat electricity and gas prices for households and businesses across EU countries: prices with/without taxes by consumption band, and the price breakdown into energy & supply, network costs, taxes, levies and VAT.

- **URL**: https://apify.com/vespa-zzz/eu-energy-prices.md
- **Developed by:** [Vespa ZZZ](https://apify.com/vespa-zzz) (community)
- **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.

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

## EU Electricity & Gas Prices incl. Taxes and Components

Official **Eurostat electricity and gas prices** for households and businesses across European countries, as clean JSON rows:

- **Prices** (half-yearly, periods like `2025-S1`) by consumption band and tax level: excluding taxes, excluding VAT, all taxes included.
- **Price components** (yearly): how the price splits into **energy & supply, network costs, taxes, fees, levies and charges, VAT** and their sub-items (renewable taxes, capacity taxes, environmental taxes, nuclear taxes …).
- Electricity and gas, household and non-household consumers, in EUR, national currency or PPS.

No API key; data comes straight from the Eurostat dissemination API (JSON-stat), flattened into one row per observation with codes **and** human-readable labels.

### Use cases

- **Energy procurement & site selection:** compare what a business in band IC pays in Germany vs. France vs. Spain, with and without taxes
- **Cost analysis:** see whether price changes come from wholesale energy, network tariffs or taxes and levies
- **Consulting, research & media:** reproducible country comparisons without manual Eurostat downloads
- **AI agents & dashboards:** a reliable tool for "what is the electricity price for industry in Italy?"

### Datasets

| Code | Content | Frequency |
|---|---|---|
| `nrg_pc_205` | Electricity, non-household consumers | half-yearly |
| `nrg_pc_204` | Electricity, household consumers | half-yearly |
| `nrg_pc_203` | Gas, non-household consumers | half-yearly |
| `nrg_pc_202` | Gas, household consumers | half-yearly |
| `nrg_pc_205_c` / `nrg_pc_204_c` | Electricity price components (non-household / household) | yearly |
| `nrg_pc_203_c` / `nrg_pc_202_c` | Gas price components (non-household / household) | yearly |

### Input examples

Business electricity prices (band IC, all taxes) for four countries since 2023:

```json
{
  "datasets": ["nrg_pc_205"],
  "countries": ["DE", "FR", "IT", "ES"],
  "since": "2023",
  "nrg_cons": ["MWH500-1999"],
  "tax": ["I_TAX"],
  "currency": ["EUR"]
}
```

Price breakdown of household electricity in the EU average and Germany:

```json
{ "datasets": ["nrg_pc_204_c"], "countries": ["EU27_2020", "DE"], "since": "2022", "currency": ["EUR"] }
```

Filters are optional: leave a list empty to get all values. Filters are only sent to datasets that have that dimension (`tax` → price datasets, `nrg_prc` → component datasets, `unit` → price datasets and gas component datasets); ignored filters are logged.

### Output example

```json
{
  "dataset": "nrg_pc_205_c",
  "datasetLabel": "Electricity prices components for non-household consumers",
  "energy": "electricity",
  "consumer": "non-household",
  "frequency": "yearly",
  "period": "2024",
  "geo": "DE",
  "geoName": "Germany",
  "consumptionBand": "TOT_KWH",
  "consumptionBandLabel": "Consumption of kWh - all bands",
  "component": "NRG_SUP",
  "componentLabel": "Energy and supply",
  "currency": "EUR",
  "currencyLabel": "Euro",
  "value": 0.1204,
  "flag": null,
  "updated": "2026-10-16T11:00:00+0200",
  "sourceUrl": "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/nrg_pc_205_c?lang=en&geo=DE&sinceTimePeriod=2024",
  "source": "Eurostat (European Commission)"
}
```

- `value` is the price per unit (`unit`, usually per kWh). Missing values are `null`, never 0; a published `0` (e.g. a component that does not apply) stays `0`.
- `flag` is the Eurostat status flag when present (e.g. `p` provisional, `e` estimated, `c` confidential). Cells with a flag but no value are only output with `includeEmpty: true`.
- Price datasets carry `tax` (`X_TAX`, `X_VAT`, `I_TAX`) and `product`; component datasets carry `component`.

### How it works

One request per selected dataset to the official Eurostat API, filtered server-side by your countries, periods and codes. Requests are sequential with a delay and retried on temporary errors. If Eurostat returns an error (e.g. an unknown code) the run fails with Eurostat's message; if the response format is not recognised it fails instead of returning wrong data.

### Data source & terms

Source: Eurostat, European Commission. Eurostat data may be reused, including commercially, provided the source is acknowledged ([Eurostat copyright notice](https://ec.europa.eu/eurostat/help/copyright-notice)). When you publish results, cite the source with the dataset code, link and access date, and state that the data were extracted and reshaped, e.g.:

> Source: Eurostat, dataset nrg_pc_205 (https://ec.europa.eu/eurostat/databrowser/view/nrg_pc_205/default/table), accessed 2026-11-21. Data extracted and reshaped by <your organisation>; Eurostat has no responsibility for the processed data.
> This Actor is not affiliated with or endorsed by Eurostat or the European Commission.

***

### 日本語の概要

Eurostat（欧州委員会統計局）の公式 API から、EU 各国の電力・ガス料金（家庭用・非家庭用、消費量帯別、税抜き/税込み）と、料金の内訳（エネルギー・供給、ネットワーク費用、税・賦課金、VAT など）を JSON で取得します。欧州拠点の電力調達やコスト分析、国別比較に使えます。利用時は出典（Eurostat）を明記してください。

# Actor input Schema

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

Eurostat datasets to fetch. Price datasets are half-yearly (periods like 2025-S1) with tax levels; component datasets are yearly and split the price into energy & supply, network costs, taxes, levies and VAT.

## `countries` (type: `array`):

Eurostat country codes (EU members and others reported, e.g. DE, FR, IT, ES, NL, PL, EL for Greece, EU27_2020 for the EU average). Leave empty for all.

## `since` (type: `string`):

YYYY or YYYY-S1/S2 (inclusive).

## `until` (type: `string`):

YYYY or YYYY-S1/S2 (inclusive). Leave empty for the latest.

## `nrg_cons` (type: `array`):

Optional Eurostat band codes, e.g. TOT_KWH (all bands), KWH2500-4999 (household band DC), MWH500-1999 (business band IC), GJ20-199 (household gas band D2). Leave empty for all.

## `currency` (type: `array`):

EUR, NAC (national currency) or PPS (purchasing power standard). Leave empty for all.

## `tax` (type: `array`):

X_TAX (excluding taxes and levies), X_VAT (excluding VAT and recoverable taxes), I_TAX (all taxes included). Ignored for component datasets.

## `nrg_prc` (type: `array`):

e.g. NRG_SUP (energy and supply), NETC (network costs), TAX_FEE_LEV_CHRG (taxes, fees, levies and charges), VAT. Ignored for price datasets.

## `unit` (type: `array`):

KWH, or for gas GJ_GCV (gigajoule, gross calorific value). Applies to price datasets and gas component datasets (electricity component datasets have no unit dimension; the filter is ignored there).

## `includeEmpty` (type: `boolean`):

Also output cells that have no value but carry a Eurostat flag (e.g. c = confidential).

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

Maximum number of rows to output.

## `requestIntervalMs` (type: `integer`):

Pause between API requests.

## Actor input object example

```json
{
  "datasets": [
    "nrg_pc_205"
  ],
  "countries": [
    "DE",
    "FR",
    "IT",
    "ES"
  ],
  "since": "2023",
  "currency": [
    "EUR"
  ],
  "includeEmpty": false,
  "maxItems": 100000,
  "requestIntervalMs": 2000
}
```

# Actor output Schema

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

No description

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

No description

## `runSummary` (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 = {
    "datasets": [
        "nrg_pc_205"
    ],
    "countries": [
        "DE",
        "FR",
        "IT",
        "ES"
    ],
    "since": "2023",
    "currency": [
        "EUR"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/eu-energy-prices").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": ["nrg_pc_205"],
    "countries": [
        "DE",
        "FR",
        "IT",
        "ES",
    ],
    "since": "2023",
    "currency": ["EUR"],
}

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/eu-energy-prices").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": [
    "nrg_pc_205"
  ],
  "countries": [
    "DE",
    "FR",
    "IT",
    "ES"
  ],
  "since": "2023",
  "currency": [
    "EUR"
  ]
}' |
apify call vespa-zzz/eu-energy-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vespa-zzz/eu-energy-prices"
        }
    }
}
```

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/uuZSiJ2hbptjY7dzu/builds/GjwToKcaqPDUIC6Qe/openapi.json
