Naar de inhoud
GET /v1/length

Arc length & bbox

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/bezier-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}