/v1/horizontal-cylinder
Horizontal cylinder volume
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/tankvolume-api/v1/horizontal-cylinder" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tankvolume-api/v1/horizontal-cylinder", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tankvolume-api/v1/horizontal-cylinder");
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/tankvolume-api/v1/horizontal-cylinder",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Partially-filled horizontal cylinder: V = L·[r²·acos((r−h)/r) − (r−h)·√(2rh−h²)]. At half full (h=r) the volume is exactly half the cylinder.",
"inputs": {
"length": 2,
"radius": 1,
"fill_height": 1
},
"fill_percent": 50,
"full_volume_m3": 6.28318531,
"liquid_volume_m3": 3.14159265,
"full_volume_liters": 6283.1853,
"liquid_volume_liters": 3141.5927
},
"meta": {
"timestamp": "2026-06-05T19:50:27.405Z",
"request_id": "ae64c09a-4a29-4113-9064-4993eb381ce0"
},
"status": "ok",
"message": "Horizontal cylinder volume",
"success": true
}