Skip to content
GET /v1/pair

Meshing gear pair

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/spurgear-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}