# EU Electricity Prices Scraper: Day-Ahead Hourly (`hydrocore/eu-electricity-prices`) Actor

Day-ahead power prices for Germany, France, Netherlands, Austria and 11 more EU zones: daily average, min/max, cheapest and priciest hours, negative prices and tomorrow's prices.

- **URL**: https://apify.com/hydrocore/eu-electricity-prices.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 zone-days

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: Day-Ahead Spot Prices & Cheapest Hours for 15 European Zones

Get **European day-ahead electricity prices** for **Germany / Luxembourg, France, the Netherlands, Austria, Belgium, Switzerland, Czechia, Denmark (DK1, DK2), Hungary, Italy North, Norway South (NO2), Poland, Sweden South (SE4) and Slovenia**, one clean row per zone and day: **daily average in EUR/MWh and ct/kWh**, min and max with times, spread, the **cheapest and most expensive N-hour window** in local time, peak and off-peak average, **negative-price counts** and **24 hourly averages**. Today, **tomorrow** (published around 13:00 CET), the last 7 days or any custom range. Data from energy-charts.info (Fraunhofer ISE) under **CC BY 4.0** (Bundesnetzagentur | SMARD.de). No API keys.

### ✅ What you get

- Daily average price in EUR/MWh and wholesale ct/kWh
- Min and max price with UTC times, spread
- Cheapest and most expensive consecutive window (1-12 hours)
- Peak (08-20) and off-peak average
- Negative-price slots and hours
- 24 hourly averages, slot count, resolution, completeness
- License and source URL in every row

### 🏆 Why this Actor

- **Answers, not raw slots:** the cheapest and priciest window of your length is already computed, in local time and as a UTC timestamp for schedulers.
- **Built for 15-minute prices:** the market moved to 15-minute products; rows still give 24 hourly averages so old spreadsheets keep working.
- **Clock-change safe:** days follow Central European time, with 23 or 25 hourly values on clock-change days.
- **Clear licensing:** only zones the source publishes under CC BY 4.0 are returned, with the attribution in every row.
- **Fair billing:** one charge per zone-day; status rows, filtered days and already-delivered days (monitor) are free.

### 💡 Use cases

- Dynamic tariff users (German §41a EnWG tariffs, Tibber-style plans): plan EV charging, heat pumps and appliances for the cheapest hours
- Home automation and energy management: feed tomorrow's cheapest window into Home Assistant, Node-RED or n8n
- Battery and solar owners: see spreads and negative-price hours to time charging and export
- Energy analysts and journalists: compare zones and track negative prices day by day
- AI agents: answer "when is power cheapest in Germany tomorrow?" with a sourced row

### 🚀 How to use

1. Pick **bidding zones** (default example: DE-LU, FR, NL, AT).
2. Pick **days** (default today and tomorrow) and an optional window length, filter, sort or monitor mode.
3. Run, then open **Overview**, **Daily shape** or **Source & license**, or export / call the API.

### ⚙️ Input

| Field | What it does |
|---|---|
| `zones` | Bidding zones (default example DE-LU, FR, NL, AT). 15 CC BY 4.0 zones are offered. |
| `days` | todayAndTomorrow (default), today, tomorrow, last7Days or custom (Central European time). |
| `dateFrom / dateTo` | Custom range, YYYY-MM-DD, up to 93 days. |
| `windowHours` | Length of the cheapest / priciest window, 1-12 hours, default 3. |
| `onlyNegative` | Keep only days with a negative price (default false). |
| `sortBy` | dateZone (default), cheapestAverage, mostNegative, biggestSpread. |
| `maxResults` | Most zone-days to save, default 100. |
| `onlyNewDays / monitorKey` | Monitor mode: save each zone-day once per monitor name (incomplete days are re-sent when complete). |

Example input:

```json
{
  "zones": [
    "DE-LU"
  ],
  "days": "tomorrow",
  "windowHours": 4,
  "onlyNewDays": true,
  "monitorKey": "ev-charging"
}
```

### ⬆️ Output

One row per bidding zone and delivery day. Days not published yet, rate-limited requests and unsupported zones get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 31 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `zone` | string | "DE-LU" | Bidding zone code. |
| `date` | string | "2026-11-15" | Delivery day in Central European time (YYYY-MM-DD). |
| `averagePriceEurMwh` | number | 139.7 | Average day-ahead price over all slots of the day. |
| `averagePriceCtKwh` | number | 13.97 | Same average in euro cents per kWh (wholesale, before taxes, grid fees and supplier margin). |
| `minPriceEurMwh` | number | 97.85 | Lowest slot price of the day. |
| `maxPriceEurMwh` | number | 179.75 | Highest slot price of the day. |
| `cheapestWindowLocal` | string | "09:45-12:45" | Cheapest consecutive window of the chosen length in local time (CET/CEST), e.g. 02:00-05:00. |
| `cheapestWindowAvgEurMwh` | number | 101.13 | Average price inside the cheapest window. |
| `priciestWindowLocal` | string | "15:00-18:00" | Most expensive consecutive window of the same length in local time. |
| `negativePriceSlotCount` | integer | 0 | Slots with a price below zero. |
| `summaryText` | string | "Germany / Luxembourg (DE-LU) day-ahead power on 2026-11-15:… | Plain-English summary of the day; on status rows, the reason. |

All 31 fields (in order): `recordType`, `zone`, `country`, `date`, `averagePriceEurMwh`, `averagePriceCtKwh`, `minPriceEurMwh`, `minPriceAt`, `maxPriceEurMwh`, `maxPriceAt`, `spreadEurMwh`, `cheapestWindowLocal`, `cheapestWindowAvgEurMwh`, `cheapestWindowStartAt`, `priciestWindowLocal`, `priciestWindowAvgEurMwh`, `peakAvgEurMwh`, `offPeakAvgEurMwh`, `negativePriceSlotCount`, `negativeHourCount`, `hourlyPricesEurMwh`, `slotCount`, `resolutionMinutes`, `isComplete`, `timeZone`, `license`, `sourceUrl`, `deliveryChange`, `summaryText`, `inputValue`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "zone-day",
  "zone": "DE-LU",
  "country": "Germany / Luxembourg",
  "date": "2026-11-15",
  "averagePriceEurMwh": 139.7,
  "averagePriceCtKwh": 13.97,
  "minPriceEurMwh": 97.85,
  "minPriceAt": "2026-11-15T11:00:00.000Z",
  "maxPriceEurMwh": 179.75,
  "maxPriceAt": "2026-11-15T16:00:00.000Z",
  "spreadEurMwh": 81.9,
  "cheapestWindowLocal": "09:45-12:45",
  "cheapestWindowAvgEurMwh": 101.13,
  "cheapestWindowStartAt": "2026-11-15T08:45:00.000Z",
  "priciestWindowLocal": "15:00-18:00",
  "priciestWindowAvgEurMwh": 175.09,
  "peakAvgEurMwh": 137.57,
  "offPeakAvgEurMwh": 141.82,
  "negativePriceSlotCount": 0,
  "negativeHourCount": 0,
  "hourlyPricesEurMwh": [
    166.73,
    161.85,
    149.7,
    133.36,
    131.9,
    131.91,
    128.4,
    133.51,
    121.93,
    103.81,
    103.73,
    100.21,
    99.79,
    113.86,
    151.01,
    172.92,
    174.24,
    178.12,
    166.67,
    164.59,
    154.9,
    146.65,
    143.96,
    118.98
  ],
  "slotCount": 96,
  "resolutionMinutes": 15,
  "isComplete": true,
  "timeZone": "Europe/Berlin",
  "license": "CC BY 4.0 from Bundesnetzagentur | SMARD.de",
  "sourceUrl": "https://api.energy-charts.info/price?bzn=DE-LU&start=2026-11-15&end=2026-11-15",
  "deliveryChange": null,
  "summaryText": "Germany / Luxembourg (DE-LU) day-ahead power on 2026-11-15: average 139.7 EUR/MWh (13.97 ct/kWh), from 97.85 to 179.75. Cheapest 3h window 09:45-12:45 local time (101.13 EUR/MWh); most expensive 15:00-18:00 (175.09).",
  "inputValue": "DE-LU",
  "scrapedAt": "2026-11-14T21:22:10.430Z"
}
```

Views: **Overview**, **Daily shape**, **Source & license**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts zone inputs, unknown and duplicate zones, requests, days not published yet, source errors, filtered days, already-delivered days (monitor), over the cap and saved, plus the date range, window length and sort.

### 💰 Pricing

Competitive pricing, pay per result: **$0.0018 per zone-day** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (4 zones, today and tomorrow = 8 zone-days) costs about $0.015; a daily schedule for one zone costs about $0.07 a month. Status rows, filtered and already-delivered days are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Zone-day | One bidding zone and delivery day saved (average, min/max, cheapest and priciest window, negative prices, hourly averages). Status, filtered and already-delivered days are free. | $0.0018 | $0.0016 | $0.0015 | $0.0014 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

From the energy-charts.info API run by Fraunhofer ISE. For the zones offered here the price series is published under CC BY 4.0 with the attribution Bundesnetzagentur | SMARD.de, which is copied into every row. Keep the attribution when you publish the numbers.

**Why are Spain, Italy South or the UK missing?**

The source marks those price series as private and internal use only, so the Actor does not return them. Only the 15 zones published under CC BY 4.0 are offered.

**When are tomorrow's prices available?**

The day-ahead auction closes at 12:00 CET and prices usually appear around 13:00 CET. Before that, tomorrow returns a free status row; schedule the Actor for 14:00 CET or later.

**Are these the prices I pay at home?**

No. These are wholesale day-ahead prices. Retail prices add taxes, grid fees and a supplier margin, but on dynamic tariffs the cheapest wholesale hours are also your cheapest hours.

**What time zone is used?**

Days, windows and hourly averages follow Central European time (Europe/Berlin), the market time of all 15 zones. minPriceAt, maxPriceAt and cheapestWindowStartAt are UTC timestamps.

**Why 96 slots per day?**

European day-ahead markets trade 15-minute products, so a normal day has 96 prices (92 or 100 on clock-change days). hourlyPricesEurMwh averages them into hours.

**How is the cheapest window found?**

The Actor slides a window of your length over all slots of the day and returns the one with the lowest average (and the highest for the priciest window). Windows stay within the delivery day.

**Can I get historical prices?**

Yes. Use Custom dates for up to 93 days per run. Each zone-day is one charge.

**How does monitor mode work?**

With Only new days on, the Actor remembers which complete zone-days it delivered under your monitor name and saves only new ones, so a daily schedule gets tomorrow's prices exactly once.

**Is it good for AI agents and automations?**

Yes. Each row has a summaryText sentence and a cheapestWindowStartAt timestamp, so an agent, Home Assistant or n8n flow can schedule loads directly from the result.

### Ready-made examples

- [Cheapest power days last week: DE, FR, NL](https://apify.com/hydrocore/eu-electricity-prices/examples/cheapest-electricity-days-germany-france-netherlands-last-week)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-14): first release.

# Actor input Schema

## `zones` (type: `array`):

European day-ahead bidding zones to read. Only zones whose prices the source publishes under CC BY 4.0 are offered.

## `days` (type: `string`):

Delivery days in Central European time. Tomorrow's prices are usually published around 13:00 CET; before that, tomorrow returns a free status row.

## `dateFrom` (type: `string`):

First delivery day for Custom dates (YYYY-MM-DD).

## `dateTo` (type: `string`):

Last delivery day for Custom dates (YYYY-MM-DD, up to 93 days after Date from). Empty = same as Date from.

## `windowHours` (type: `integer`):

Length of the cheapest and most expensive consecutive window to find each day, e.g. 3 for an EV charge or a heat-pump boost.

## `onlyNegative` (type: `boolean`):

Keep only zone-days with at least one negative price. Filtered days are free.

## `sortBy` (type: `string`):

Order of rows. Sorting happens before Max results.

## `maxResults` (type: `integer`):

Most zone-days to save.

## `onlyNewDays` (type: `boolean`):

Save only zone-days not delivered before under the same monitor name, so a daily schedule gets each day's prices once (incomplete days are re-sent when completed).

## `monitorKey` (type: `string`):

Name for remembered days (letters, digits, dashes). Different names keep separate histories.

## Actor input object example

```json
{
  "zones": [
    "DE-LU",
    "FR",
    "NL",
    "AT"
  ],
  "days": "todayAndTomorrow",
  "windowHours": 3,
  "onlyNegative": false,
  "sortBy": "dateZone",
  "maxResults": 100,
  "onlyNewDays": false
}
```

# Actor output Schema

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

Daily price, cheapest and priciest window per zone.

## `shape` (type: `string`):

Peak, off-peak, spread and hourly averages.

## `source` (type: `string`):

Completeness, resolution and attribution.

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

Every field for each row.

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

Run summary: zone inputs, unknown and duplicate zones, requests, days not published yet, source errors, filtered out, already delivered (monitor), over the cap, saved and status rows, plus the date range.

# 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 = {
    "zones": [
        "DE-LU",
        "FR",
        "NL",
        "AT"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/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 = { "zones": [
        "DE-LU",
        "FR",
        "NL",
        "AT",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/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 '{
  "zones": [
    "DE-LU",
    "FR",
    "NL",
    "AT"
  ]
}' |
apify call hydrocore/eu-electricity-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/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/exeSu0AG8Z5Z37HSs/builds/2ZhELHcaL8KoK5V4S/openapi.json
