Vai al contenuto
GET /v1/centers

Centre distance from belt length

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}