Skip to content
GET /v1/leadscrew

Steps per mm for a lead-screw 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/leadscrew" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/steppermotor-api/v1/leadscrew", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/steppermotor-api/v1/leadscrew");
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/leadscrew",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

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

{
    "data": {
        "note": "Steps per mm = (motor steps per rev × microstepping) ÷ the screw lead (travel per turn). A 1.8° motor (200 steps) at 16 microsteps on an 8 mm-lead screw gives 400 steps/mm and 2.5 µm of resolution. Microstepping smooths motion and raises the count but does not add real accuracy — torque per microstep drops, so the true positioning still rests on the motor, screw and mechanics. Beware confusing lead with pitch on a multi-start screw.",
        "inputs": {
            "lead_mm": 8,
            "microstepping": 16,
            "motor_steps_per_rev": 200
        },
        "steps_per_mm": 400,
        "resolution_um": 2.5,
        "full_steps_per_mm": 25
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.499Z",
        "request_id": "ed8868f8-1d95-4be7-a229-1c6bf8c505d5"
    },
    "status": "ok",
    "message": "Leadscrew steps/mm",
    "success": true
}