Skip to content
GET /v1/belt

Steps per mm for a belt axis

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/steppermotor-api

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

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "For a belt drive the travel per motor revolution = pulley teeth × belt pitch (GT2 belt = 2 mm), so steps per mm = (motor steps × microstepping) ÷ that. A 1.8° motor at 16 microsteps on a 20-tooth GT2 pulley gives 80 steps/mm — the classic 3D-printer X/Y value. A bigger pulley moves faster but coarsens resolution; that is the speed-versus-precision trade every belt axis makes.",
        "inputs": {
            "pulley_teeth": 20,
            "belt_pitch_mm": 2,
            "microstepping": 16,
            "motor_steps_per_rev": 200
        },
        "steps_per_mm": 80,
        "resolution_um": 12.5,
        "travel_per_rev_mm": 40
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.398Z",
        "request_id": "ef841f3b-68c9-4d5e-a765-68914610f140"
    },
    "status": "ok",
    "message": "Belt steps/mm",
    "success": true
}