Get Prices
Get ENTSO-E day-ahead electricity prices.
Query parameters accept ISO 8601 or relative shorthand:
- ISO 8601:
2025-01-15T12:30:00 - Relative:
now,now-30d,now-1H,now-15m, etc.
Timezone: All datetimes resolve against server UTC. Response includes
resolved_datetime_from/resolved_datetime_to in meta showing
what the server understood; they are UTC-naive.
Default range: datetime_from="now-30d" (30 days back), datetime_to="now".
Params: datetime_from: Start of time range (or relative offset). Defaults to now-30d. datetime_to: End of time range (or relative offset). Defaults to now. zone: Filter by bidding zone(s). Omit for all zones. resolution: 1H, 1D, 1W, native, or auto. Default: auto (server picks based on range width; native forces raw data regardless of range).
Returns envelope with meta block (provenance, resolved datetimes) and data array of price rows.
curl --request GET \
--url https://api.example.com/api/v1/prices \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/v1/prices"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/v1/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/prices")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"provenance": "measured",
"upstream_sources": [
"<string>"
],
"resolved_datetime_from": "2023-11-07T05:31:56Z",
"resolved_datetime_to": "2023-11-07T05:31:56Z",
"resolution": "<string>"
},
"data": [
{
"datetime": "2023-11-07T05:31:56Z",
"bidding_zone": "<string>",
"price_mwh": 123,
"interpolated": true,
"year": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
auto, native, 1H, 1D, 1W curl --request GET \
--url https://api.example.com/api/v1/prices \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/v1/prices"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/v1/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/prices")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"provenance": "measured",
"upstream_sources": [
"<string>"
],
"resolved_datetime_from": "2023-11-07T05:31:56Z",
"resolved_datetime_to": "2023-11-07T05:31:56Z",
"resolution": "<string>"
},
"data": [
{
"datetime": "2023-11-07T05:31:56Z",
"bidding_zone": "<string>",
"price_mwh": 123,
"interpolated": true,
"year": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}