# EU Electricity Prices — Eurostat (`zinin/eu-electricity-prices`) Actor

Get official household and non-household electricity prices by EU country, consumption band, tax treatment and semester. No API key or proxy.

- **URL**: https://apify.com/zinin/eu-electricity-prices.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 5 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## EU Electricity Prices — Eurostat

Get official, comparable household and non-household electricity-price observations by country, consumption band, tax treatment, currency, and semester. The Actor uses only Eurostat's official dissemination API: no API key, browser, scraping, or proxy is required.

### Use cases

- **Energy procurement:** benchmark contract offers against official national price series.
- **Market intelligence:** compare household and industrial price bands across EU markets.
- **Finance and strategy:** track tax-inclusive and tax-exclusive movements semester by semester.
- **Data pipelines:** load normalized observations into a warehouse or dashboard.

### Input

```json
{"countries":["DE","FR"],"consumerTypes":["household","nonHousehold"],"consumptionBands":["KWH2500-4999"],"taxTreatments":["I_TAX"],"currencies":["EUR"],"semesters":["2024-S2"],"maxRows":100}
```

Leave `consumptionBands` empty for all published bands. Values are Eurostat codes. Hard limits are 30 countries, 2 consumer types, 20 bands, 3 tax treatments, 3 currencies, 20 semesters, and 1,000 output rows.

### Output

```json
{"found":true,"consumerType":"household","country":"DE","countryName":"Germany","consumptionBand":"KWH2500-4999","consumptionBandName":"2 500 kWh - 4 999 kWh","taxTreatment":"I_TAX","taxTreatmentName":"All taxes included","semester":"2024-S2","value":0.3943,"currency":"EUR","unit":"KWH","status":null,"datasetCode":"nrg_pc_204","sourceUrl":"https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/nrg_pc_204?lang=en&geo=DE&time=2024-S2","sourceAttribution":"Source: Eurostat (European Commission), dissemination API.","retrievedAt":"2026-11-10T20:00:00.000Z"}
```

Every row includes its source URL, attribution, and retrieval time. An upstream failure or empty selection produces a transparent `found:false` explanatory row.

### Pricing

**$0.0025 per electricity price observation (`result-found`) on the Free plan, with automatic discounts on paid Apify plans: Bronze −5%, Silver −10%, and Gold/Platinum/Diamond −15%. A small Actor start event ($0.002) applies per run.**

Found observations are charged as `result-found` events and delivered atomically with the charge. `found:false` rows are free. The Actor checks the remaining run budget before every paid row.

### Limitations

- These series are normally published twice yearly; this is not a real-time wholesale feed.
- Values, flags, coverage, bands, and revisions are exactly those published by Eurostat.
- An empty band filter includes aggregate or legacy bands when Eurostat publishes them.
- Requests are sequential with timeouts and bounded retries. A prolonged outage yields a free error row.
- `maxRows` can truncate a broad selection; increase it or narrow filters for a complete slice.

### Source, terms, and attribution

Data comes from the [Eurostat dissemination API](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-introduction). Reuse is governed by the [Eurostat copyright and reuse policy](https://ec.europa.eu/eurostat/about-us/policies/copyright), including its conditions and dataset-specific notices. Outputs retain **“Source: Eurostat (European Commission), dissemination API.”** Users should identify modifications or derived analysis and verify the current terms.

This Actor is independently developed and is not affiliated with or endorsed by Eurostat or the European Commission.

### Related Actors

- [eu-hicp-price-basket](https://apify.com/zinin/eu-hicp-price-basket)
- [us-nws-point-forecast](https://apify.com/zinin/us-nws-point-forecast)
- [singstat-cost-and-demand-pressure-monitor](https://apify.com/zinin/singstat-cost-and-demand-pressure-monitor)

# Actor input Schema

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

Eurostat geographic codes (for example DE, FR, EU27_2020).

## `consumerTypes` (type: `array`):

Household and/or non-household consumers.

## `consumptionBands` (type: `array`):

Eurostat nrg_cons codes. Leave empty for all published bands.

## `taxTreatments` (type: `array`):

I_TAX includes taxes; X_VAT excludes VAT; X_TAX excludes taxes and levies.

## `currencies` (type: `array`):

EUR, purchasing power standard, or national currency.

## `semesters` (type: `array`):

Eurostat semester codes such as 2024-S2.

## `maxRows` (type: `integer`):

Stop after this many observations across all requests.

## Actor input object example

```json
{
  "countries": [
    "DE"
  ],
  "consumerTypes": [
    "household"
  ],
  "consumptionBands": [],
  "taxTreatments": [
    "I_TAX"
  ],
  "currencies": [
    "EUR"
  ],
  "semesters": [
    "2024-S2"
  ],
  "maxRows": 50
}
```

# Actor output Schema

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

API URL for this run's dataset items.

# 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 = {
    "countries": [
        "DE"
    ],
    "consumerTypes": [
        "household"
    ],
    "consumptionBands": [],
    "taxTreatments": [
        "I_TAX"
    ],
    "currencies": [
        "EUR"
    ],
    "semesters": [
        "2024-S2"
    ],
    "maxRows": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/eu-electricity-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 = {
    "countries": ["DE"],
    "consumerTypes": ["household"],
    "consumptionBands": [],
    "taxTreatments": ["I_TAX"],
    "currencies": ["EUR"],
    "semesters": ["2024-S2"],
    "maxRows": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/eu-electricity-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 '{
  "countries": [
    "DE"
  ],
  "consumerTypes": [
    "household"
  ],
  "consumptionBands": [],
  "taxTreatments": [
    "I_TAX"
  ],
  "currencies": [
    "EUR"
  ],
  "semesters": [
    "2024-S2"
  ],
  "maxRows": 50
}' |
apify call zinin/eu-electricity-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/eu-electricity-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/74A90oIZByK6HaIMt/builds/zJTHgtx7m8Pxfr54B/openapi.json
