Skip to content
GET /v1/venturi

Venturi flow

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bernoulli-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "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
}