Aller au contenu
GET /v1/channel

Open-channel Froude & critical depth

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/froude-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/froude-api/v1/channel" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/froude-api/v1/channel", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/froude-api/v1/channel");
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/froude-api/v1/channel",
    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": "Open-channel Froude Fr = v/√(g·y) with flow depth y (rectangular). Critical depth y_c = (q²/g)^(1/3) for unit discharge q = v·y; flow is subcritical when y>y_c, supercritical when y<y_c.",
        "inputs": {
            "depth": 0.5,
            "gravity": 9.80665,
            "velocity": 3
        },
        "regime": "supercritical",
        "froude_number": 1.35480227,
        "critical_depth_m": 0.612191,
        "unit_discharge_m2_s": 1.5
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:28.386Z",
        "request_id": "d9b0eafa-a0f9-4153-87c5-7deffd8e0298"
    },
    "status": "ok",
    "message": "Open-channel Froude",
    "success": true
}