Vai al contenuto
GET /v1/projectile

Projectile motion

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/physics-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}