Aller au contenu
GET /v1/sizing

Flow/head sizing

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/sizing" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydropower-api/v1/sizing", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydropower-api/v1/sizing");
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/sizing",
    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": "Required flow Q = P / (ρ·g·H·η) to generate the target electrical power at the given head.",
        "inputs": {
            "head_m": 20,
            "efficiency": 0.85,
            "target_power_kw": 1667
        },
        "required_flow_rate_m3s": 9.999217
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:34.276Z",
        "request_id": "ce99182c-7c4c-40c0-83e9-4de28207676a"
    },
    "status": "ok",
    "message": "Flow/head sizing",
    "success": true
}