/v1/speed
Speed of light in a medium
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/snell-api/v1/speed" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/snell-api/v1/speed", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/snell-api/v1/speed");
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/snell-api/v1/speed",
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": "Wavelength shortens by 1/n inside the medium; the frequency is unchanged.",
"medium": "explicit",
"refractive_index": 1.333,
"speed_fraction_of_c": 0.750188,
"speed_in_medium_m_s": 224900568.64,
"vacuum_wavelength_nm": 600,
"wavelength_in_medium_nm": 450.112528
},
"meta": {
"timestamp": "2026-06-04T10:18:57.377Z",
"request_id": "673faf42-1390-45f0-8e3e-812c227d141b"
},
"status": "ok",
"message": "Speed of light in a medium",
"success": true
}