Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wavelength-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wavelength-api/v1/meta");
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/meta",
    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": "Vacuum by default; pass refractive_index for light in a medium.",
        "service": "wavelength",
        "constants": {
            "ev_in_joules": 1.602176634e-19,
            "speed_of_light_m_s": 299792458,
            "planck_constant_j_s": 6.62607015e-34
        },
        "endpoints": {
            "/v1/band": "Classify the EM-spectrum band (radio sub-band, visible colour, …) of a wavelength or frequency.",
            "/v1/energy": "Photon energy (J, eV, keV) from a wavelength or frequency.",
            "/v1/convert": "Convert between wavelength and frequency (with photon energy, wavenumber and band), optionally in a medium."
        },
        "description": "Electromagnetic wave maths: wavelength/frequency conversion, photon energy, and EM-spectrum band classification.",
        "frequency_units": [
            "hz",
            "khz",
            "mhz",
            "ghz",
            "thz",
            "phz"
        ],
        "wavelength_units": [
            "m",
            "km",
            "cm",
            "mm",
            "um",
            "micron",
            "nm",
            "pm",
            "angstrom",
            "a"
        ]
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:16.911Z",
        "request_id": "dfbd336d-4329-4a67-b707-fe49b3485c84"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}