/v1/train
Compound train ratio
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/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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}