/v1/train
Compound train ratio
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/gearratio-api/v1/train" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gearratio-api/v1/train", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gearratio-api/v1/train");
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/gearratio-api/v1/train",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Overall ratio = product of stage (driven/driver) ratios. Idler gears change direction only, not the ratio.",
"type": "reduction",
"stages": [
{
"ratio": 3,
"stage": 1,
"driven": 60,
"driver": 20
},
{
"ratio": 3,
"stage": 2,
"driven": 45,
"driver": 15
}
],
"stage_count": 2,
"output_torque": 45,
"overall_ratio": 9,
"output_speed_rpm": 200
},
"meta": {
"timestamp": "2026-06-04T18:38:22.665Z",
"request_id": "6093e877-6f63-4386-bb24-d2089ed66acf"
},
"status": "ok",
"message": "Compound train",
"success": true
}