Skip to content
GET /v1/radius

Schwarzschild radius

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/schwarzschild-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "Schwarzschild radius r_s = 2GM/c² — the event horizon of a non-rotating black hole. The photon sphere is at 1.5·r_s and the innermost stable circular orbit (ISCO) at 3·r_s. The Sun's r_s is about 2.95 km.",
        "inputs": {
            "mass_kg": 1.98892e+30,
            "solar_masses": 1
        },
        "isco_m": 8862.023209,
        "photon_sphere_m": 4431.011605,
        "schwarzschild_radius_m": 2954.007736491099,
        "schwarzschild_radius_km": 2.954007736
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:33.704Z",
        "request_id": "ec8ae164-0570-40f1-8cb9-dba94e738574"
    },
    "status": "ok",
    "message": "Schwarzschild radius",
    "success": true
}