Ir al contenido
GET /v1/train

Compound train ratio

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/gearratio-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}