/v1/length
Chain length
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/length" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/chain-api/v1/length", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/chain-api/v1/length");
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/length",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Chain length in pitches L = 2C/p + (N1+N2)/2 + ((N2−N1)/2π)²·p/C, rounded up to an even number of links (links must be even). The actual centre distance is slightly less than requested.",
"inputs": {
"pitch_m": 0.0127,
"driven_teeth": 42,
"driver_teeth": 17,
"center_distance_m": 0.5
},
"length_m": 1.397,
"length_links": 110,
"length_pitches": 108.6423
},
"meta": {
"timestamp": "2026-06-05T11:30:25.852Z",
"request_id": "e957aed6-f019-46f7-9b4a-ca7dfc5c206e"
},
"status": "ok",
"message": "Chain length",
"success": true
}