Zum Inhalt springen
GET /v1/spoke

Spoke length

Live testen

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

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

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

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}