Aller au contenu
GET /v1/time-of-concentration

Time of concentration

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/runoff-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/runoff-api/v1/time-of-concentration" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/runoff-api/v1/time-of-concentration", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/runoff-api/v1/time-of-concentration");
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/runoff-api/v1/time-of-concentration",
    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": "Kirpich (1940): tc = 0.0195·L^0.77·S^(−0.385) minutes (L in m, S the channel slope). The time of concentration sets the design-storm duration in the Rational Method.",
        "inputs": {
            "slope": 0.02,
            "length_m": 300
        },
        "time_of_concentration_s": 426.26,
        "time_of_concentration_min": 7.1043
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:26.347Z",
        "request_id": "7cc0bee9-b352-4c15-b194-cf3b47319949"
    },
    "status": "ok",
    "message": "Time of concentration",
    "success": true
}