Naar de inhoud
GET /v1/projectile

Projectile motion

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/physics-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "vx": 14.1421,
        "vy": 14.1421,
        "gravity": 9.80665,
        "range_m": 40.7886,
        "velocity": 20,
        "angle_deg": 45,
        "max_height_m": 10.1972,
        "flight_time_s": 2.88419,
        "launch_height": 0,
        "time_to_peak_s": 1.4421,
        "impact_speed_m_s": 20
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:07.001Z",
        "request_id": "3fa74b94-71eb-4a4d-9b4a-e8415acdd278"
    },
    "status": "ok",
    "message": "Projectile",
    "success": true
}