Zum Inhalt springen
GET /v1/length

Arc length & bbox

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Arc length from fine polyline sampling (default 2000 steps). Bounding box from the sampled points.",
        "inputs": {
            "steps": 2000,
            "degree": 3
        },
        "arc_length": 2,
        "bounding_box": {
            "max_x": 1,
            "max_y": 0.75,
            "min_x": 0,
            "min_y": 0,
            "width": 1,
            "height": 0.75
        },
        "chord_length": 1
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:03.377Z",
        "request_id": "76d04365-4fdb-4691-b395-105987d0669b"
    },
    "status": "ok",
    "message": "Arc length",
    "success": true
}