/v1/volume
Total tank capacity
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/tank-api/v1/volume" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tank-api/v1/volume", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tank-api/v1/volume");
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/tank-api/v1/volume",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Total tank capacity. Use /v1/fill for the volume at a given depth.",
"input": {
"unit": "m",
"shape": "horizontalcylinder",
"length": 5,
"radius": 1
},
"capacity": {
"m3": 15.70796,
"litres": 15707.96,
"us_gallons": 4149.6
},
"max_depth_m": 2
},
"meta": {
"timestamp": "2026-06-03T17:41:57.573Z",
"request_id": "311544b8-4b7d-42e7-8af1-058b3c43bacd"
},
"status": "ok",
"message": "Tank capacity",
"success": true
}