/v1/drain-time
Tank drain time through an orifice
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/torricelli-api/v1/drain-time" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/torricelli-api/v1/drain-time", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/torricelli-api/v1/drain-time");
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/torricelli-api/v1/drain-time",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"formula": "t = (2·A_tank)/(Cd·A_orifice·√(2g)) · (√h0 − √h1).",
"gravity_ms2": 9.80665,
"final_head_m": 0,
"tank_area_m2": 1.002874915,
"initial_head_m": 2,
"orifice_area_m2": 0.001963495,
"drain_time_hours": 0.14614782,
"drain_time_minutes": 8.768869,
"drain_time_seconds": 526.1322,
"discharge_coefficient": 0.62,
"initial_flow_rate_l_s": 7.62451
},
"meta": {
"timestamp": "2026-06-04T10:18:52.932Z",
"request_id": "61c00971-e320-48eb-a769-b31fdcdc2a83"
},
"status": "ok",
"message": "Tank drain time",
"success": true
}