Skip to content
GET /v1/length

Arc length & bbox

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/bezier-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
}