Liigu põhisisu juurde
Vooluhind

Vooluhinna API

Vooluhinna andmed on avatud ka masinloetavalt: tasuta JSON API ilma võtme ja registreerimiseta. Saadaval on Nord Poolis selgunud EE hinnapiirkonna päev-ette tunnihinnad ning meie mudeli tõenäosuslik hinnaprognoos (p10/p50/p90) avaliku akna ulatuses.

API on mõeldud integratsioonideks — kodu­automaatika, laadimise ajastamine, dashboardid. Vastused on CORS-iga avatud, nii et ka brauserirakendus saab otse pärida.

Kiirstart

curl https://vooluhind.ee/api/v1/forecast

Näidisvastus (lühendatud):

{
  "zone": "EE",
  "currency": "EUR",
  "now": 1786371234,
  "madeAt": 1786347000,
  "lastRefresh": 1786368000,
  "freeUntil": 1786554000,
  "gated": true,
  "backtest": { "mae": 18.4, "baselineMae": 27.9, "skill": 0.34, "horizonH": 24 },
  "docs": "https://vooluhind.ee/en/api",
  "dayAhead": [
    { "ts": 1786374000, "startsAt": "2026-08-10T15:00:00.000Z", "eurMwh": 91.4, "eurKwh": 0.1115 }
  ],
  "forecast": [
    { "ts": 1786377600, "startsAt": "2026-08-10T16:00:00.000Z",
      "p10": 62.1, "p50": 95.3, "p90": 148.7,
      "p10Kwh": 0.0758, "p50Kwh": 0.1163, "p90Kwh": 0.1814 }
  ]
}

Põhimõisted

Ühikud
eurMwh ja p10/p50/p90 on EUR/MWh ilma käibemaksuta (turu ühik). eurKwh ja p*Kwh on EUR/kWh koos 22% käibemaksuga (tarbija ühik). Võrgutasu ja aktsiis ei sisaldu kunagi.
Ajatemplid
ts on unix-sekundid UTC tunni alguses; startsAt on sama hetk ISO 8601 kujul. Tunnid on UTC järgi — Eesti kohalik aeg on UTC+2/+3.
Avalik aken (freeUntil)
Prognoosi serveeritakse kuni freeUntil-ini: selgunud börsitunnid + 48 h mudeli prognoosi, maksimaalselt 72 h ette. Mudel ise ulatub kaugemale — kui gated on true, on pikem prognoos olemas ja saadaval kokkuleppel: info@vooluhind.ee.
Vahemälu ja piirangud
Vastuseid puhverdatakse serva­vahemälus ~60 s; tihedam pärimine ei anna värskemat infot. Andmed liiguvad kord ööpäevas (~14:00 Eesti aja järgi, kui Nord Pool avaldab järgmise päeva hinnad) ja iga tund prognoosi osas. Hoia kliendid tublisti alla 10 päringu/s.
Viitamine
Andmete taasavaldamisel viita allikale: „Vooluhind (vooluhind.ee)“. Andmed on informatiivsed ja mitteametlikud.

Lõpp-punktid

Viitedokumentatsioon on genereeritud OpenAPI spetsifikatsioonist ja on inglise keeles.

GET/api/v1/forecast

Upcoming prices: settled day-ahead + model forecast

The integration endpoint. Returns settled Nord Pool EE day-ahead prices from the current hour forward, and the model's p10/p50/p90 forecast for strictly-future hours up to `freeUntil`. Where both cover an hour, the settled price is authoritative. Takes no query parameters — any query string is rejected with 400.

Vastuse väljad ForecastResponse

VäliTüüpKirjeldus
zone"EE"Nord Pool bidding zone the data covers.
currency"EUR"
nowintegerWhen this response was computed, unix seconds UTC.
madeAtinteger | nullWhen the served forecast run was produced, unix seconds UTC. Null when no forecast exists yet.
lastRefreshinteger | nullWhen the data pipeline last ingested, unix seconds UTC.
freeUntilintegerLast forecast hour served publicly, unix seconds UTC: the newest settled day-ahead hour + 48 h of model lead, capped at 72 h from now. The model's further hours are withheld — available on request.
gatedbooleanTrue when the model holds forecast hours past freeUntil (a longer forecast exists).
backtestBacktest | nullAccuracy of the served model from a walk-forward backtest. Null while unavailable.
docsstringURL of the human documentation for this API.
dayAheadDayAheadHour[]Settled Nord Pool day-ahead prices from the current hour forward, ascending by ts. Authoritative where present.
forecastForecastHour[]Model forecast for strictly-future hours up to freeUntil, ascending by ts. Overlaps the settled tail of dayAhead; prefer the settled price where both exist.

GET/api/series

Dashboard series: price history + continuous forecast

The payload behind the vooluhind.ee dashboard, exposed as the machine-readable dataset distribution. Includes up to 14 days of price history and the continuous past→future forecast series (for past hours: what the model predicted at the time). Shaped for the site's own chart — for integrations prefer /api/v1/forecast, whose shape is versioned.

Parameetrid

  • days (query, optional) History window in days, 2–14 (values outside are clamped; default 14). Must match ^\d{1,2}$ — anything else is rejected with 400.

Vastuse väljad SeriesResponse

VäliTüüpKirjeldus
nowintegerWhen this response was computed, unix seconds UTC.
lastRefreshinteger | nullLast pipeline ingest, unix seconds UTC.
madeAtinteger | nullWhen the served forecast run was produced, unix seconds UTC.
actualsSeriesActual[]Hourly settled prices over the requested history window, plus settled future hours.
forecastSeriesForecastPoint[]Continuous past→future forecast series: for each past hour, the freshest forecast made before it; for future hours, the latest run, up to freeUntil.
backtestBacktest | nullAccuracy of the served model from a walk-forward backtest. Null while unavailable.
freeUntilintegerLast forecast hour served publicly, unix seconds UTC.
gatedbooleanTrue when a longer forecast exists past freeUntil.

Andmetüübid

Väljade tabelid on genereeritud samast OpenAPI spetsifikatsioonist, mida serveerib /api/openapi.json.

DayAheadHour

One settled market hour.

VäliTüüpKirjeldus
tsintegerHour start, unix seconds UTC.
startsAtstringHour start, ISO 8601 UTC (same instant as ts).
eurMwhnumberSettled day-ahead price, EUR/MWh, excl. VAT.
eurKwhnumberSame price, EUR/kWh incl. 22% VAT, rounded to 4 dp.

ForecastHour

One forecast hour. p50 is the model's conditional median; p10/p90 bound an 80% uncertainty interval that widens with horizon.

VäliTüüpKirjeldus
tsintegerHour start, unix seconds UTC.
startsAtstringHour start, ISO 8601 UTC (same instant as ts).
p10number10th percentile, EUR/MWh, excl. VAT.
p50numberMedian forecast, EUR/MWh, excl. VAT.
p90number90th percentile, EUR/MWh, excl. VAT.
p10Kwhnumberp10 as EUR/kWh incl. 22% VAT, rounded to 4 dp.
p50Kwhnumberp50 as EUR/kWh incl. 22% VAT, rounded to 4 dp.
p90Kwhnumberp90 as EUR/kWh incl. 22% VAT, rounded to 4 dp.

Backtest

Walk-forward backtest of the served model.

VäliTüüpKirjeldus
maenumberMean absolute error of the model, EUR/MWh.
baselineMaenumberMAE of the seasonal-naive baseline (price one week earlier), EUR/MWh.
skillnumber1 − mae/baselineMae — the fraction of baseline error the model removes.
horizonHintegerForecast horizon the numbers were measured at, hours ahead.

SeriesActual

One settled market hour in the dashboard series.

VäliTüüpKirjeldus
tsintegerHour start, unix seconds UTC.
eurMwhnumberSettled price, EUR/MWh, excl. VAT.
eurKwhnumberSame price, EUR/kWh incl. 22% VAT, rounded to 4 dp.

SeriesForecastPoint

One hour of the dashboard forecast series (no ISO twin — use ts).

VäliTüüpKirjeldus
tsintegerHour start, unix seconds UTC.
p10number10th percentile, EUR/MWh, excl. VAT.
p50numberMedian forecast, EUR/MWh, excl. VAT.
p90number90th percentile, EUR/MWh, excl. VAT.
p10Kwhnumberp10 as EUR/kWh incl. 22% VAT.
p50Kwhnumberp50 as EUR/kWh incl. 22% VAT.
p90Kwhnumberp90 as EUR/kWh incl. 22% VAT.

OpenAPI spetsifikatsioon

Kogu API on kirjeldatud OpenAPI 3.1 spetsifikatsioonina — impordi see Postmani, Insomniasse või genereeri klient oma keelde:

https://vooluhind.ee/api/openapi.json (OpenAPI 3.1, v1.0.0)