/v1/single-slit
Single-slit diffraction
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}