Zum Inhalt springen
GET /v1/ratio

Chain ratio & velocity

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/chain-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/chain-api/v1/ratio" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/chain-api/v1/ratio", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/chain-api/v1/ratio");
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/chain-api/v1/ratio",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Speed ratio = driven/driver teeth. Output torque is multiplied by the ratio; output speed is divided by it. Pitch diameter PD = p/sin(π/N).",
        "inputs": {
            "pitch_m": 0.0127,
            "driven_teeth": 42,
            "driver_teeth": 17
        },
        "output_rpm": 404.761905,
        "speed_ratio": 2.470588,
        "chain_velocity_ms": 3.598333,
        "torque_multiplier": 2.470588,
        "driven_pitch_diameter_m": 0.169945,
        "driver_pitch_diameter_m": 0.069116
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:25.925Z",
        "request_id": "a25998b3-5e59-4160-bc4f-56a4a22bbe35"
    },
    "status": "ok",
    "message": "Chain ratio",
    "success": true
}