Day-ahead electricity prices API for Europe: hourly prices and the cheapest hours
If you want tomorrow’s electricity price in Germany, France, the Netherlands or Spain inside a script, a Home Assistant automation or a spreadsheet, you quickly find out that there is no single friendly API. The European day-ahead market is published as a patchwork of transparency platforms, national portals and charts built for people, not for programs. This page explains what data exists, what you can get for free, and how the EU Electricity Prices API turns it into clean JSON.
Where the numbers come from
The day-ahead market fixes the price of each hour (since the switch to 15-minute products, each quarter hour) for the next day. The prices are public. Our robot reads them from the open energy data of the Bundesnetzagentur (SMARD.de) through api.energy-charts.info, which is published under the CC BY 4.0 licence, and every row keeps that source in a source field. Over 40 bidding zones are covered, including FR, DE-LU, NL, BE, ES, IT zones and the Nordic areas.
What you get
- Prices per zone: one row per hour, or per 15 minutes where the market works that way, in EUR per MWh.
- A free day summary per zone: average, minimum and maximum with their times, the cheapest and most expensive 3-hour and 4-hour windows, the number of negative-price hours and the spread between the highest and lowest price.
- Alerts: negative prices and price spikes, so a monitoring run can trigger a Slack message or a webhook.
- History and the generation mix with the renewable share, for analysis.
Free alternatives, honestly
The ENTSO-E Transparency Platform offers a free API, but it needs a registration and a token, returns XML and has its own rate limits. The energy-charts and SMARD websites let you download CSV files by hand, and a few community libraries wrap them. If you only need one zone once in a while, these are free and perfectly fine. The robot is useful when you want many zones in one call, the cheapest window already computed, a schedule that runs without your server, and an output you can send straight to Home Assistant, Make, n8n or an AI agent.
A real example
From the sample kept for this robot, the summary for France on 3 October 2026 (hourly resolution, source SMARD / energy-charts):
{
"type": "daySummary",
"zone": "FR",
"date": "2026-10-03",
"averageEurMwh": 172.52,
"minEurMwh": 63.94,
"minTimeCet": "2026-10-03T13:30",
"maxEurMwh": 243.06,
"maxTimeCet": "2026-10-03T18:45",
"negativeHours": 0,
"cheapest3hWindow": { "startCet": "2026-10-03T12:15", "averageEurMwh": 81.95 },
"spreadEurMwh": 179.12
}
That day, the cheapest 3-hour block started at 12:15 and averaged 81.95 EUR/MWh, against 229.93 EUR/MWh for the most expensive one at 18:15. Prices change every day, so this is only valid for that date. See the full sample output.
Get tomorrow’s prices in three steps
- Choose your zones and resolution in the Apify Console, for example
FRandDE-LU, withhouror15min. - Run it once, or schedule it every day after the day-ahead results are published in the early afternoon.
- Read the dataset as JSON, CSV or Excel, or call it by API from your code.
{
"zones": ["FR", "DE-LU"],
"resolution": "hour"
}
To use it as an API, send this input with your Apify token to the run-sync endpoint and read the rows back in the same call. AI agents can use it through https://mcp.apify.com?tools=euroscrape/eu-electricity-prices; see our MCP guide. A similar scheduled-data robot is described in the Google Flights API guide.
Pricing
Pay per result, no subscription: 0.003 USD per run start and 0.0002 USD per price row, so a full day for one zone (24 hourly rows) costs about 0.005 USD plus the start fee. The day summaries, with the cheapest windows and negative hours, are free. Read from the robot’s pricing file on 10 November 2026.
FAQ
Is there a free API for day-ahead electricity prices in Europe? ENTSO-E has one with registration and XML output; energy-charts and SMARD publish open data. The robot wraps open data into JSON with the cheapest hours computed.
What is a negative electricity price? On sunny or windy days supply can exceed demand and the day-ahead price drops below zero. The summary counts those hours for you.
Can I get 15-minute prices? Yes, where the market uses 15-minute products; the marketResolution field tells you which one a row has.
Can I use it with Home Assistant? Yes, through a webhook or the Apify API; schedule a run and read the cheapest window.
When are tomorrow’s prices available? The day-ahead auction results are published around early afternoon, central European time; schedule your run after that.
Open the EU Electricity Prices API on Apify
Run these numbers yourself. Every EuroScrape Actor runs on Apify, pay per result; a free Apify account ($5 of monthly credit) covers your first tests. Open the Store page →
EuroScrape Data Letter
Five numbers a week from official registers and public prices, each one reproducible with an Actor. Free, one e-mail on Thursdays.
Archive and unsubscribe: buttondown.com/Euroscrape.