/v1/sphere
Spherical tank volume
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/tankvolume-api/v1/sphere" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tankvolume-api/v1/sphere", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tankvolume-api/v1/sphere");
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/sphere",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Spherical tank filled to height h: V = π·h²·(3r−h)/3 (spherical cap). At h=r it is exactly half the sphere.",
"inputs": {
"radius": 1,
"fill_height": 1
},
"fill_percent": 50,
"full_volume_m3": 4.1887902,
"liquid_volume_m3": 2.0943951,
"full_volume_liters": 4188.7902,
"liquid_volume_liters": 2094.3951
},
"meta": {
"timestamp": "2026-06-05T19:50:27.514Z",
"request_id": "5fc6eb22-4756-4a10-8353-62bb9c9e507c"
},
"status": "ok",
"message": "Spherical tank volume",
"success": true
}