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/projectile-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/projectile-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/projectile-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/projectile-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/projectile-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": {
        "notes": "Idealised point mass, constant gravity, no air drag. Default g = 9.81 m/s².",
        "service": "projectile-api",
        "formulae": {
            "range": "R = v0²·sin(2θ)/g (flat)",
            "position": "x = v0cosθ·t,  y = h0 + v0sinθ·t − ½g·t²",
            "max_height": "H = h0 + vy0²/(2g)",
            "flight_time": "t = [vy0 + √(vy0² + 2g·h0)] / g"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/range": "Solve the launch angle for a target range (two solutions) or the speed for a target range at an angle.",
            "GET /v1/launch": "Flight time, range, max height, impact speed & angle from speed + angle (+ launch height, gravity).",
            "GET /v1/trajectory": "Position and velocity at a given time t or horizontal distance x."
        },
        "description": "Ballistic projectile-motion calculator: launch summary, trajectory state, and range/angle/speed solving under constant gravity (no air resistance)."
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:37.830Z",
        "request_id": "a5a80aa0-c369-4c6b-840b-0c6720b05717"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}