Aller au contenu
GET /v1/convert

Wavelength <-> frequency

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/wavelength-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/wavelength-api/v1/convert" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wavelength-api/v1/convert", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wavelength-api/v1/convert");
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/wavelength-api/v1/convert",
    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": {
        "band": "radio",
        "note": "λ = (c/n) / f. Frequency is the same in any medium; wavelength scales by 1/n. Default n = 1 (vacuum).",
        "input": {
            "refractive_index": 1
        },
        "period_s": 1.0e-8,
        "band_detail": "VHF band",
        "frequency_hz": 100000000,
        "wavelength_m": 2.99792,
        "frequency_mhz": 100,
        "frequency_thz": 0.0001,
        "wavelength_cm": 299.792,
        "wavelength_nm": 2997920000,
        "photon_energy_j": 6.62607e-26,
        "photon_energy_ev": 4.13567e-7,
        "wavenumber_cm_inv": 0.00333564
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:16.746Z",
        "request_id": "efc2ef89-c561-4164-8a7e-b85271e07fe1"
    },
    "status": "ok",
    "message": "Wavelength / frequency",
    "success": true
}