/v1/sphere
Spherical tank volume
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}