/v1/energy
Energy estimate
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}