/v1/time-dilation
Gravitational time dilation
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}