Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/weir-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}