/v1/level
Dipstick depth for a target
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/tank-api/v1/level" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tank-api/v1/level", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tank-api/v1/level");
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/level",
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": "Dipstick depth for the target fill, found by bisection (exact for the linear shapes).",
"depth": 1.404,
"input": {
"unit": "m",
"shape": "horizontalcylinder",
"length": 5,
"radius": 1
},
"target": {
"m3": 11.78097,
"litres": 11780.97,
"us_gallons": 3112.2
},
"depth_m": 1.40397,
"depth_unit": "m",
"percent_full": 75
},
"meta": {
"timestamp": "2026-06-03T17:41:57.470Z",
"request_id": "3eef9a21-bdeb-42e5-b6ba-33525c8f24ab"
},
"status": "ok",
"message": "Dipstick depth for target",
"success": true
}