Zum Inhalt springen
GET /v1/price

A zone's day-ahead price now + day stats

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/electricity-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/electricity-api/v1/price" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electricity-api/v1/price", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electricity-api/v1/price");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/electricity-api/v1/price",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "unit": "EUR / MWh",
        "zone": "DE-LU",
        "points": 96,
        "source": "Energy-Charts (Fraunhofer ISE)",
        "day_avg": 122.51,
        "day_max": 239.68,
        "day_min": 64,
        "zone_name": "Germany / Luxembourg",
        "current_time": "2026-06-10T21:45:00.000Z",
        "current_price": 140.56
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:04.346Z",
        "request_id": "b059dd27-a31a-4d99-895b-4c294cc8e087"
    },
    "status": "ok",
    "message": "Price retrieved successfully",
    "success": true
}