/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}