Ir al contenido
GET /v1/prices

Full hourly day-ahead price curve for a zone

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/electricity-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
       
…