Past Range
/electricity-mix/past-rangeGet the electricity mix for a zone (past-range).
Query Parameters
The start datetime to get the data for.
date-time"2024-05-19T03:00:00Z"The end datetime to get the data for.
date-time"2024-05-19T08:00:00Z"The temporal granularity of the data to get.
"hourly""hourly"Value in
- "5_minutes"
- "15_minutes"
- "hourly"
- "daily"
- "monthly"
- "quarterly"
- "yearly"
An Electricity Maps zone key.
"DK-DK2"Latitude of the location to get the data for.
41.877Longitude of the location to get the data for.
-88.0703If true, the fallback IP-based zone lookup will not be performed.
falseIf true, the response will exclude estimated data points
falseIf false, estimated data points are excluded. Equivalent to disableEstimations=true.
truetrueWhether the breakdown accounts for imports (flow-traced) or only the zone's own generation (normal). An alternative to flowTraced; when both are given, breakdownType wins.
"flow-traced""flow-traced"Value in
- "normal"
- "flow-traced"
If true, the response returns flow-traced (consumption-based) values.
truetrueResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/electricity-mix/past-range?start=2024-05-19T03%3A00%3A00Z&end=2024-05-19T08%3A00%3A00Z"{ "zone": "DK-DK2", "temporalGranularity": "hourly", "unit": "MW", "data": [ { "datetime": "2024-05-19T03:00:00.000Z", "updatedAt": "2025-07-25T12:32:42.039Z", "breakdownType": "flow-traced", "mix": { "nuclear": 0, "geothermal": 0, "biomass": 0, "coal": 0, "wind": 0, "solar": 0, "hydro": 0, "gas": 0, "oil": 0, "unknown": 0, "hydro storage": { "charge": 0, "discharge": 0 }, "battery storage": { "charge": 0, "discharge": 0 }, "flows": { "imports": 0, "exports": 0 } }, "isEstimated": false, "estimationMethod": "string" } ]}