/v1/ratio
Gear ratio from starts and teeth
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/wormgear-api/v1/ratio" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wormgear-api/v1/ratio", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wormgear-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/wormgear-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": "A worm drive's ratio = wheel teeth ÷ worm starts (threads), and the worm turns the wheel one tooth per worm turn for a single start — so a single-start worm on a 40-tooth wheel is a big 40:1 reduction in one compact stage. More starts cut the ratio but raise the lead angle and efficiency. Drive is almost always worm-in, wheel-out: the high ratio and often self-locking action are the whole point.",
"inputs": {
"gear_teeth": 40,
"worm_starts": 1
},
"gear_ratio": 40,
"ratio_label": "40:1"
},
"meta": {
"timestamp": "2026-06-07T08:18:08.193Z",
"request_id": "4a36ea86-d93b-4c83-a036-44620cbd14ac"
},
"status": "ok",
"message": "Gear ratio",
"success": true
}