Vai al contenuto
GET /v1/spoke

Spoke length

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/spokelength-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "L = √(R² + r² + f² − 2·R·r·cos θ) − hole/2, with R = ERD/2, r = flange diameter/2, f = centre-to-flange offset, θ = crosses × 720° ÷ spokes. Round to the nearest 1 mm; build with the rounded length. Drive and non-drive sides usually differ.",
        "inputs": {
            "erd_mm": 602,
            "spokes": 32,
            "crosses": 3,
            "spoke_hole_mm": 2.6,
            "flange_diameter_mm": 45
        },
        "offset_mm": 35,
        "spoke_length_mm": 293.9,
        "crossing_angle_deg": 67.5
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:02.344Z",
        "request_id": "c4ffc9a4-854d-49b3-8a27-2ca14edc79cf"
    },
    "status": "ok",
    "message": "Spoke length",
    "success": true
}