Aller au contenu
GET /v1/annual-energy

Annual energy

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/hydropower-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/hydropower-api/v1/annual-energy" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydropower-api/v1/annual-energy", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydropower-api/v1/annual-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/hydropower-api/v1/annual-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": "Annual energy = rated power × 8760 h × capacity factor. The capacity factor (typically 0.3–0.6 for hydro) accounts for water availability and downtime.",
        "inputs": {
            "power_kw": 1667,
            "capacity_factor": 0.5
        },
        "annual_revenue": 730146,
        "full_load_hours": 4380,
        "annual_energy_gwh": 7.30146,
        "annual_energy_kwh": 7301460,
        "annual_energy_mwh": 7301.46,
        "electricity_price": 0.1
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:34.085Z",
        "request_id": "f61a14f7-3fb2-452e-9489-87c6acaf7db6"
    },
    "status": "ok",
    "message": "Annual energy",
    "success": true
}