Zum Inhalt springen
GET /v1/centers

Centre distance from belt length

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/beltdrive-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Center distance solved by inverting the open-belt length equation (bisection).",
        "unit": "mm",
        "belt_length": {
            "m": 1.47624,
            "in": 58.12,
            "mm": 1476.24,
            "unit": "mm",
            "value": 1476.24
        },
        "diameter_large": {
            "m": 0.2,
            "in": 7.874,
            "mm": 200,
            "unit": "mm",
            "value": 200
        },
        "diameter_small": {
            "m": 0.1,
            "in": 3.937,
            "mm": 100,
            "unit": "mm",
            "value": 100
        },
        "center_distance": {
            "m": 0.5,
            "in": 19.685,
            "mm": 500,
            "unit": "mm",
            "value": 500.001
        }
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:07.707Z",
        "request_id": "291206aa-ea57-4a3b-a4cd-41faf2ce4c8c"
    },
    "status": "ok",
    "message": "Center distance from belt length",
    "success": true
}