Ir al contenido
GET /v1/energy

Energy estimate

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/degreeday-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/degreeday-api/v1/energy" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/degreeday-api/v1/energy", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/degreeday-api/v1/energy");
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/degreeday-api/v1/energy",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

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

{
    "data": {
        "note": "Delivered = UA·DD·24/1000 (kWh). Input = delivered/efficiency. Use efficiency > 1 for a heat-pump COP.",
        "inputs": {
            "efficiency": 0.9,
            "degree_days": 21,
            "heat_loss_coefficient": 200
        },
        "estimated_cost": 11.2,
        "input_energy_kwh": 112,
        "delivered_energy_kwh": 100.8
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:23.836Z",
        "request_id": "a2e0f235-13bb-4765-88e4-34e5b0783f1c"
    },
    "status": "ok",
    "message": "Energy estimate",
    "success": true
}