Aller au contenu
GET /v1/venturi

Venturi flow

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/bernoulli-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/bernoulli-api/v1/venturi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bernoulli-api/v1/venturi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bernoulli-api/v1/venturi");
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/bernoulli-api/v1/venturi",
    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": "Venturi: Q = Cd·A₂·√(2ΔP/(ρ(1−(A₂/A₁)²))) from continuity and Bernoulli. Cd defaults to 1 (ideal).",
        "inputs": {
            "area1_m2": 0.01,
            "area2_m2": 0.005,
            "density_kg_m3": 1000,
            "density_source": "water",
            "pressure_drop_pa": 1000,
            "discharge_coefficient": 0.98
        },
        "area_ratio": 0.5,
        "mass_flow_kgs": 8.001666,
        "inlet_velocity_ms": 0.800167,
        "throat_velocity_ms": 1.632993,
        "volumetric_flow_lpm": 480.09999,
        "volumetric_flow_m3s": 0.008001666
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:06.406Z",
        "request_id": "3f806ff3-3df7-496c-9746-442ce4d74112"
    },
    "status": "ok",
    "message": "Venturi flow",
    "success": true
}