Vai al contenuto
GET /v1/speed

Speed of light in a medium

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/snell-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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