Aller au contenu
GET /v1/meta

Spec

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/vector-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/vector-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vector-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vector-api/v1/meta");
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/vector-api/v1/meta",
    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": {
        "name": "Vector API",
        "notes": "Binary ops require both vectors to have the same dimension. The cross product returns a vector for 3D and the scalar z-component for 2D. Angles are returned in both radians and degrees. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/op",
                "params": {
                    "a": "first vector, e.g. 3,4",
                    "b": "second vector (for binary ops)",
                    "t": "interpolation amount for lerp (0..1)",
                    "op": "add, subtract, scale, dot, cross, magnitude, normalize, distance, angle, lerp, negate, project",
                    "scalar": "the factor for scale"
                },
                "returns": "the resulting vector or scalar"
            },
            {
                "path": "/v1/info",
                "params": {
                    "a": "the vector, e.g. 3,4,0"
                },
                "returns": "dimension, magnitude, unit vector and (2D) heading angle"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "2D, 3D and n-dimensional vector maths. The op endpoint adds, subtracts, scales, negates, takes the dot and cross product, the magnitude, the unit (normalized) vector, the distance and the angle between two vectors, linearly interpolates (lerp) and projects one vector onto another. The info endpoint analyses a single vector — its dimension, length, unit vector and, for 2D, its heading angle. Vectors are simple comma-separated components (3,4 or 1,2,3). Pure local maths, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:05.756Z",
        "request_id": "45f91adc-1eb1-4666-85f8-e60b8de25158"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}