Aller au contenu
GET /v1/wavelength

Wavelength from spacing & angle

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/bragg-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/bragg-api/v1/wavelength" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bragg-api/v1/wavelength", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bragg-api/v1/wavelength");
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/bragg-api/v1/wavelength",
    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": "Wavelength λ = 2·d·sinθ/n — used to calibrate or identify the X-ray source from a known reflection.",
        "inputs": {
            "order": 1,
            "theta_deg": 22.655,
            "spacing_nm": 0.2
        },
        "wavelength_nm": 0.15407255,
        "wavelength_angstrom": 1.540725
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:23.900Z",
        "request_id": "61d2dadc-7021-4c5e-9e3a-2f501f36f036"
    },
    "status": "ok",
    "message": "Wavelength",
    "success": true
}