/v1/flow
Flow rate / velocity / diameter (Q=A·v)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/flowrate-api/v1/flow" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/flowrate-api/v1/flow", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/flowrate-api/v1/flow");
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/flowrate-api/v1/flow",
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": "Q = A · v, with A = π/4 · D². Provide any two of flow, velocity and diameter to get the third.",
"input": {
"flow": null,
"flow_unit": null,
"diameter_mm": 100,
"velocity_mps": 2
},
"flow_rate": {
"cfm": 33.2833,
"gph_us": 14938.58,
"gpm_us": 248.9763,
"m3_per_s": 0.01570796,
"m3_per_hour": 56.54867,
"litres_per_s": 15.70796,
"litres_per_min": 942.478
},
"diameter_mm": 100,
"pipe_area_m2": 0.00785398,
"diameter_inch": 3.937,
"velocity_m_per_s": 2,
"velocity_ft_per_s": 6.56168
},
"meta": {
"timestamp": "2026-06-04T01:59:18.623Z",
"request_id": "7db65496-4108-4d23-bd7a-3a64a3fc6b35"
},
"status": "ok",
"message": "Flow / velocity / diameter",
"success": true
}