Zum Inhalt springen
GET /v1/horizontal-cylinder

Horizontal cylinder volume

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/tankvolume-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/tankvolume-api/v1/horizontal-cylinder" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tankvolume-api/v1/horizontal-cylinder", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tankvolume-api/v1/horizontal-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/horizontal-cylinder",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Partially-filled horizontal cylinder: V = L·[r²·acos((r−h)/r) − (r−h)·√(2rh−h²)]. At half full (h=r) the volume is exactly half the cylinder.",
        "inputs": {
            "length": 2,
            "radius": 1,
            "fill_height": 1
        },
        "fill_percent": 50,
        "full_volume_m3": 6.28318531,
        "liquid_volume_m3": 3.14159265,
        "full_volume_liters": 6283.1853,
        "liquid_volume_liters": 3141.5927
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:27.405Z",
        "request_id": "ae64c09a-4a29-4113-9064-4993eb381ce0"
    },
    "status": "ok",
    "message": "Horizontal cylinder volume",
    "success": true
}