Zum Inhalt springen
GET /v1/point

Point & tangent at t

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

Beispiel-Response

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

{
    "data": {
        "x": 0.5,
        "y": 0.75,
        "note": "Point via de Casteljau; tangent is the first derivative B'(t). Degree 2 = quadratic, 3 = cubic.",
        "inputs": {
            "t": 0.5,
            "degree": 3,
            "control_points": 4
        },
        "tangent": {
            "dx": 1.5,
            "dy": 0,
            "speed": 1.5,
            "angle_deg": 0
        }
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:03.488Z",
        "request_id": "5463a626-82e1-4c46-8a25-f1a597a725dc"
    },
    "status": "ok",
    "message": "Curve point",
    "success": true
}