Vai al contenuto
GET /v1/pair

Meshing gear pair

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "gear": {
            "teeth": 40,
            "tip_diameter_mm": 84,
            "pitch_diameter_mm": 80
        },
        "note": "Centre distance = module × (z1 + z2) / 2. Gear ratio = driven teeth ÷ driver teeth.",
        "pinion": {
            "teeth": 20,
            "tip_diameter_mm": 44,
            "pitch_diameter_mm": 40
        },
        "module_mm": 2,
        "gear_ratio": 2,
        "ratio_label": "40:20",
        "center_distance_mm": 60,
        "pressure_angle_deg": 20
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:06.715Z",
        "request_id": "0aeb1fac-1a59-499d-9deb-c20d440154f2"
    },
    "status": "ok",
    "message": "Meshing gear pair",
    "success": true
}