Aller au contenu
GET /v1/energy

Energy estimate

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/degreeday-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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