Skip to content
GET /v1/range

Solve range / angle / speed

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/projectile-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "mode": "solve_angle",
        "note": "Two launch angles reach the same range (complementary). The low angle is flatter/faster, the high angle is a lob.",
        "inputs": {
            "range": 50,
            "gravity": 9.81,
            "velocity": 30
        },
        "max_range_m": 91.743119,
        "angle_low_deg": 16.512332,
        "angle_high_deg": 73.487668
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:37.616Z",
        "request_id": "6b6f2746-ab73-43f1-a93c-aaeb7ae3ded8"
    },
    "status": "ok",
    "message": "Solve range/angle/speed",
    "success": true
}