/v1/stroke
Piston travel & work
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}