Vai al contenuto
GET /v1/energy

Energy estimate

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/degreeday-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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