Naar de inhoud
GET /v1/single-slit

Single-slit diffraction

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/diffraction-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/diffraction-api/v1/single-slit" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/diffraction-api/v1/single-slit", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/diffraction-api/v1/single-slit");
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/diffraction-api/v1/single-slit",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "order": 1,
        "formula": "a·sinθ = m·λ (minima); central-maximum width = 2·λ·L/a.",
        "minimum": {
            "angle_deg": 0.687566,
            "angle_rad": 0.01200029,
            "sin_theta": 0.012
        },
        "slit_width_m": 5.0e-5,
        "wavelength_nm": 600,
        "screen_distance_m": 2,
        "central_max_width_m": 0.048,
        "central_max_width_mm": 48,
        "central_max_half_width_m": 0.024
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:46.801Z",
        "request_id": "957109a9-acfe-4cf5-9530-8423a7dc160a"
    },
    "status": "ok",
    "message": "Single-slit diffraction",
    "success": true
}