/v1/volume
Swept volume per stroke
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/hydrauliccylinder-api/v1/volume" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydrauliccylinder-api/v1/volume", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydrauliccylinder-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/hydrauliccylinder-api/v1/volume",
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": "The oil drawn to extend = full bore area × stroke; to retract = annulus area × stroke. The difference is the volume the rod takes up, and the bore-to-annulus area ratio is the cylinder's differential (regeneration) ratio — feeding the rod-side oil back to the bore in a regen circuit speeds the extend stroke at the cost of force. Size the pump and tank for the larger (extend) volume.",
"inputs": {
"rod_mm": 56,
"bore_mm": 100,
"stroke_mm": 500
},
"area_ratio": 1.457,
"extend_volume_l": 3.927,
"retract_volume_l": 2.695,
"rod_displacement_l": 1.232
},
"meta": {
"timestamp": "2026-06-06T23:53:53.330Z",
"request_id": "520a3578-306a-4210-9e14-2209e26b75ef"
},
"status": "ok",
"message": "Swept volume",
"success": true
}