/v1/stroke
Piston travel & work
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/hydraulic-api/v1/stroke" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydraulic-api/v1/stroke", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydraulic-api/v1/stroke");
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/hydraulic-api/v1/stroke",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"formula": "A1·d1 = A2·d2; the output moves less the more force it gains.",
"input_area_m2": 0.001,
"output_area_m2": 0.05,
"displacement_ratio": 0.02,
"volume_displaced_m3": 0.0001,
"input_displacement_m": 0.1,
"output_displacement_m": 0.002,
"volume_displaced_litres": 0.1
},
"meta": {
"timestamp": "2026-06-04T10:18:40.456Z",
"request_id": "ab66fd50-32e9-492a-8fb1-e16bea63d184"
},
"status": "ok",
"message": "Piston travel & work",
"success": true
}