/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}