/v1/sphere
Spherical tank volume
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}