Aller au contenu
GET /v1/point

Point & tangent at t

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/bezier-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}