/v1/ratio
Chain ratio & velocity
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}