/v1/radius
Schwarzschild radius
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}