Electricity price API for Germany (SMARD)
The nationwide day-ahead spot electricity price through a free, keyless REST API. The source is SMARD by the Federal Network Agency, delivered as consistent JSON with source, license and timestamp on every response.
What data you get
The endpoint returns the Germany-wide day-ahead spot electricity price (EUR per MWh) as a daily value. Because it is a national price, the value is identical for every city, conveniently retrievable via each city slug. A second endpoint returns the grid load (electricity consumption) of the control zone per city.
- Day-ahead spot electricity price (EUR/MWh)
- Reference time
- Grid load of the control zone (via power-load)
Source: SMARD, Federal Network Agency. License:
DL-DE BY 2.0. Source, license URL and timestamp are included in every API
response in the meta and attribution block.
How to fetch it
A simple GET request, no key and no sign-up:
curl https://infranode.dev/api/v1/cities/berlin/power-price For another city, just put the slug from the cities list into the path.
No key, no sign-up, free.
Covered cities
The day-ahead price is nationwide, so the same value is retrievable for all 84 cities. Grid load (power-load) refers to the respective control zone.
Available for all 84 covered cities. The exact per-city status is on the coverage and status page, the full list of cities on the cities overview.
Endpoint reference
All parameters, fields and response examples are in the API reference for this endpoint. InfraNode is also available as an MCP server for AI assistants.
Frequently asked questions
- Is the electricity price API free and keyless?
- Yes. No key, no sign-up, free, a single GET request is enough. The rate limit is 300 requests per minute per IP.
- Does the electricity price differ per city?
- No. The day-ahead spot price is uniform across Germany. Retrieving it via a city slug is just convenient access to the same national value.
- Is the API suitable for smart home or dynamic tariffs?
- Yes. The daily value can be fetched keyless and integrated into Home Assistant or ioBroker, for example to shift loads into cheaper hours.