Zum Inhalt springen
GET /v1/time-dilation

Gravitational time dilation

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/schwarzschild-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Gravitational time dilation: a clock at radius r ticks at √(1 − r_s/r) of the rate of a far-away clock. Deep in a gravity well time runs slow; at the horizon it appears to stop.",
        "inputs": {
            "mass_kg": 1.98892e+30,
            "distance": 5908
        },
        "inverse_factor": 1.41421541,
        "proper_time_ratio": 0.7071058552,
        "time_dilation_factor": 0.7071058552,
        "schwarzschild_radius_m": 2954.007736
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:33.784Z",
        "request_id": "6c9b0ba3-dc89-41ba-9bb0-3d54617aca6c"
    },
    "status": "ok",
    "message": "Time dilation",
    "success": true
}