Zum Inhalt springen
GET /v1/vnotch

V-notch weir

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/weir-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/weir-api/v1/vnotch" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weir-api/v1/vnotch", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weir-api/v1/vnotch");
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/weir-api/v1/vnotch",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Q = (8/15)·Cd·√(2g)·tan(θ/2)·H^2.5. Triangular notch; Cd≈0.58 for a 90° notch.",
        "type": "v-notch",
        "head_m": 0.2,
        "inputs": {
            "gravity": 9.81,
            "angle_deg": 90,
            "discharge_coefficient": 0.58
        },
        "solved_for": null,
        "discharge_l_s": 24.51045,
        "discharge_m3_s": 0.02451045
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:28.119Z",
        "request_id": "1cbd9863-dc93-42fd-b56d-d2a348908fc6"
    },
    "status": "ok",
    "message": "V-notch weir",
    "success": true
}