Vai al contenuto
GET /v1/vertical-cylinder

Vertical cylinder volume

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/tankvolume-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Vertical cylinder: V = π·r²·h. Liquid scales linearly with fill height.",
        "inputs": {
            "height": 3,
            "radius": 1,
            "fill_height": 2
        },
        "fill_percent": 66.666667,
        "full_volume_m3": 9.42477796,
        "liquid_volume_m3": 6.28318531,
        "full_volume_liters": 9424.778,
        "liquid_volume_liters": 6283.1853
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:27.615Z",
        "request_id": "03a44868-ea1a-4a17-8787-96adb41b0171"
    },
    "status": "ok",
    "message": "Vertical cylinder volume",
    "success": true
}