/v1/ratio
Chain ratio & velocity
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}