/v1/vertical-cylinder
Vertical cylinder volume
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/tankvolume-api/v1/vertical-cylinder" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tankvolume-api/v1/vertical-cylinder", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tankvolume-api/v1/vertical-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/vertical-cylinder",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Vertical cylinder: V = π·r²·h. Liquid scales linearly with fill height.",
"inputs": {
"height": 3,
"radius": 1,
"fill_height": 2
},
"fill_percent": 66.666667,
"full_volume_m3": 9.42477796,
"liquid_volume_m3": 6.28318531,
"full_volume_liters": 9424.778,
"liquid_volume_liters": 6283.1853
},
"meta": {
"timestamp": "2026-06-05T19:50:27.615Z",
"request_id": "03a44868-ea1a-4a17-8787-96adb41b0171"
},
"status": "ok",
"message": "Vertical cylinder volume",
"success": true
}