Aller au contenu
GET /v1/time-dilation

Gravitational time dilation

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/schwarzschild-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}