Electricity
Finnish electricity spot prices and the cheapest times to run a load, the same data that answers the Sähkö questions on milloin.xyz.
Quick start
Every endpoint is under https://milloin.xyz/api. The price now:
Request
curl https://milloin.xyz/api/v1/electricity/prices/currentResponse
{
"startTime": "2026-10-12T08:00:00.000Z",
"endTime": "2026-10-12T08:15:00.000Z",
"price": 4.82,
"category": "CHEAP",
"dayCategory": "NORMAL",
"meta": {
"unit": "c/kWh",
"vatIncluded": true,
"vatPercent": 25.5,
"area": "FI",
"resolution": "15min",
"pricesUntil": "2026-10-12T21:00:00.000Z",
"tomorrowPublished": false,
"nextPricesExpectedAt": "2026-10-12T11:00:00.000Z",
"source": "ENTSO-E",
"fetchedAt": "2026-10-11T11:02:13.000Z"
}
}Running a device in the cheap hours? Start with Home Assistant or the presets. Every field and parameter is in the API reference.
Endpoints
Every electricity path is under /v1/electricity.
| Endpoint | What it answers |
|---|---|
GET /v1/electricity/prices | Prices from a time to a time (from, to, resolution=15min|hour), with the price now. Defaults to midnight today, Finnish time, to the last published price. |
GET /v1/electricity/prices/current | Just the price now. |
GET /v1/electricity/plans | When to run a load: continuous (a washing machine) or pausable (an EV charger), with activeNow and nextChangeAt for switching a device. |
POST /v1/electricity/plans/search | The same, plus a power profile (profileKwh) and the cost of given start times (startTimes). |
GET /v1/electricity/plans/presets | Ready-made loads; /v1/electricity/plans/presets/{name} plans one. |
GET /v1/electricity/health | Whether the prices are fresh and when tomorrow's arrive. |
Units and times
- Prices are day-ahead spot prices for Finland (ENTSO-E Transparency Platform, spot-hinta.fi as fallback) in 15-minute resolution, in c/kWh including 25.5 % VAT.
vat=falseleaves VAT out. - Money is in cents, energy in kWh and power in kW. Costs are the energy only: no transfer, tax or retailer margin.
- Times are UTC in responses and may carry a UTC offset in requests, as in every category.
categoryis fixed thresholds: VERY_CHEAP under 2.5, CHEAP under 5, NORMAL under 10, EXPENSIVE under 20 c/kWh, else VERY_EXPENSIVE.dayCategoryis the price's fifth within its own Finnish day, so every day has cheap hours.
When prices change
Tomorrow's prices are published once a day at about 14:00 Finnish time. Each response's meta tells pricesUntil, tomorrowPublished and nextPricesExpectedAt, so polling every 15 minutes, or once after nextPricesExpectedAt, is plenty: responses are cached up to the next quarter hour, when the price now changes. GET /v1/electricity/health answers late when tomorrow's prices are over an hour late.