/v1/angle
Bragg angle from spacing
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/bragg-api/v1/angle" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bragg-api/v1/angle", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bragg-api/v1/angle");
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/angle",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Bragg's law n·λ = 2·d·sinθ. θ is the glancing angle from the planes; XRD patterns are plotted against 2θ. Default wavelength is Cu Kα = 0.15406 nm.",
"inputs": {
"order": 1,
"spacing_nm": 0.2,
"wavelength_nm": 0.15406
},
"max_order": 2,
"theta_deg": 22.653053,
"two_theta_deg": 45.306106
},
"meta": {
"timestamp": "2026-06-05T19:50:23.738Z",
"request_id": "4c0f0c3e-e224-4083-97e6-35875f0ef856"
},
"status": "ok",
"message": "Bragg angle",
"success": true
}