/v1/prices
Full hourly day-ahead price curve for a zone
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/electricity-api/v1/prices" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electricity-api/v1/prices", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electricity-api/v1/prices");
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/prices",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"unit": "EUR / MWh",
"zone": "FR",
"count": 96,
"prices": [
{
"time": "2026-06-09T22:00:00.000Z",
"price": 85.28
},
{
"time": "2026-06-09T22:15:00.000Z",
"price": 83.7
},
{
"time": "2026-06-09T22:30:00.000Z",
"price": 76.92
},
{
"time": "2026-06-09T22:45:00.000Z",
"price": 61.39
},
{
"time": "2026-06-09T23:00:00.000Z",
"price": 77.64
},
{
"time": "2026-06-09T23:15:00.000Z",
"price": 76.44
},
{
"time": "2026-06-09T23:30:00.000Z",
"price": 76.2
},
{
"time": "2026-06-09T23:45:00.000Z",
"price": 74.2
},
{
"time": "2026-06-10T00:00:00.000Z",
"price": 70
},
{
"time": "2026-06-10T00:15:00.000Z",
"price": 65.03
},
{
"time": "2026-06-10T00:30:00.000Z",
"price": 56.63
},
{
"time": "2026-06-10T00:45:00.000Z",
"price": 42.7
},
{
"time": "2026-06-10T01:00:00.000Z",
"price": 31.89
},
{
"time": "2026-06-10T01:15:00.000Z",
"price": 40.34
},
{
"time": "2026-06-10T01:30:00.000Z",
"price": 40.99
},
{
"time": "2026-06-10T01:45:00.000Z",
"price": 35.56
},
{
"time": "2026-06-10T02:00:00.000Z",
"price": 36.33
},
{
"time": "2026-06-10T02:15:00.000Z",
"price": 34.44
},
{
"time": "2026-06-10T02:30:00.000Z",
"price": 42.5
},
{
"time": "2026-06-10T02:45:00.000Z",
"price": 32
},
{
"time": "2026-06-10T03:00:00.000Z",
"price": 49.55
},
{
"time": "2026-06-10T03:15:00.000Z",
"price": 58.91
},
{
"time": "2026-06-10T03:30:00.000Z",
"price": 51.86
},
{
"time": "2026-06-10T03:45:00.000Z",
"price": 39.1
},
{
"time": "2026-06-10T04:00:00.000Z",
"price": 36.47
},
{
"time": "2026-06-10T04:15:00.000Z",
"price": 50.08
…