/v1/horizontal-cylinder
Horizontal cylinder volume
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}