Zum Inhalt springen
GET /v1/meta

Spec

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

Beispiel-Response

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

{
    "data": {
        "notes": "Lengths in metres, discharge in m³/s. Default Cd: rectangular 0.62, V-notch 0.58, broad-crested 0.85. Each endpoint solves head from discharge when 'head' is omitted.",
        "service": "weir-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/vnotch": "Triangular V-notch weir: Q = (8/15)·Cd·√(2g)·tan(θ/2)·H^2.5.",
            "GET /v1/rectangular": "Rectangular sharp-crested weir: Q = (2/3)·Cd·b·√(2g)·H^1.5.",
            "GET /v1/broadcrested": "Broad-crested weir: Q = Cd·(2/3)^1.5·√g·b·H^1.5."
        },
        "description": "Weir flow calculator for open-channel discharge measurement: rectangular, triangular V-notch and broad-crested weirs, solving discharge from head or head from discharge."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:28.197Z",
        "request_id": "6a878296-28d1-4757-b3fc-eb0169e0ca6b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}