Bragg angle from spacing
API · /bragg-api
Bragg Diffraction API
X-ray crystallography maths as an API, computed locally and deterministically. The angle endpoint applies Bragg’s law, n·λ = 2·d·sinθ, to give the diffraction angle θ and the experimentally plotted 2θ from a crystal’s inter-planar spacing and the X-ray wavelength, defaulting to the common Cu Kα source at 0.15406 nm and reporting the highest observable order ⌊2d/λ⌋ — a 0.2 nm plane spacing diffracts Cu Kα to θ ≈ 22.65°, a 2θ peak near 45.3°. The spacing endpoint inverts the law, d = n·λ/(2·sinθ), reading the lattice spacing straight off a measured XRD peak — the everyday job of indexing a diffraction pattern, so a 2θ of 31.77° for table salt gives the 0.2814 nm (200) spacing. The wavelength endpoint solves λ = 2·d·sinθ/n to identify or calibrate the source. Lengths are entered in nanometres or ångström and angles in degrees, and any diffraction order n is supported. Everything is computed locally and deterministically, so it is instant and private. Ideal for materials-science, crystallography, mineralogy, XRD, semiconductor and solid-state-physics app developers, lattice-spacing and pattern-indexing tools, and laboratory software. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is reflection-geometry Bragg diffraction with the 2d factor; for optical double-slit and grating diffraction use a wave-optics diffraction API.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 85 ms
- Server probes · 24h
- Subscribers
- 3,493
- active
- Total calls
- 24
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 3,500 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 3,500 calls/month
- 2 req/sec
- Bragg angle + d-spacing + wavelength
- No credit card
Starter
€6.20 /month
- 33,000 calls / month
- 6 requests / second
- Hard cap (429 above quota, no overage)
- 33,000 calls/month
- 6 req/sec
- Multi-order, nm/ångström, Cu Kα default
- Email support
Pro
€18.80 /month
- 168,000 calls / month
- 15 requests / second
- Hard cap (429 above quota, no overage)
- 168,000 calls/month
- 15 req/sec
- XRD-indexing & materials pipelines
- Priority support
Mega
€59.00 /month
- 1,020,000 calls / month
- 40 requests / second
- Hard cap (429 above quota, no overage)
- 1,020,000 calls/month
- 40 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Crystallography API
Crystal structures as an API — powered by the Crystallography Open Database (COD), the open, public-domain collection of over 500,000 crystal structures of organic, inorganic, metal-organic compounds and minerals. Search the database by chemical formula (any standard casing — TiO2, Al2O3, H2O — is normalised automatically) or by free text over mineral names, titles and comments, then look up any structure to get its full crystallographic data: chemical and cell formula, space group (Hermann-Mauguin and Hall), the complete unit cell (a, b, c, alpha, beta, gamma and volume), the source publication (title, authors, journal, year, DOI) and a link to the CIF file. From quartz, calcite and diamond to anatase, corundum and diopside, it is ideal for materials science, solid-state chemistry, mineralogy, crystallography teaching and research tooling. This is a crystal-structure & materials database — distinct from molecule-property (chemistry / PubChem) and protein-structure (PDB) databases. Open data from the Crystallography Open Database (CC0 / public domain).
api.oanor.com/cod-api
PDB API
The RCSB Protein Data Bank as an API — 3D macromolecular structures of proteins, nucleic acids and complexes, powered by the official RCSB PDB data and search services. Fetch a structure entry by its 4-character PDB id for its title, experimental method (X-ray, cryo-EM, NMR), resolution, keywords, deposit and release dates, authors, primary citation and entity & assembly counts; run full-text search across the whole archive returning matching PDB ids and the total hit count; read a polymer entity for its protein or nucleic-acid name, one-letter sequence, length, source organism, chains and linked UniProt ids; read a biological assembly for its oligomeric state, symmetry and chain & atom counts; list the ligands bound in a structure with their component ids and names; and look up any chemical component (ligand) by code for its formula, weight, SMILES and InChIKey. Ideal for structural-biology and drug-discovery tools, molecular viewers, bioinformatics pipelines, education apps and research dashboards.
api.oanor.com/pdb-api
Elastic Moduli API
Isotropic elastic-constant mechanics as an API, computed locally and deterministically. The convert endpoint takes any two of the five linear-elastic constants — Young’s modulus E, shear modulus G, bulk modulus K, Poisson’s ratio ν and the first Lamé parameter λ — and returns all five, using the standard isotropic relations (G = E/(2(1+ν)), K = E/(3(1−2ν)), λ = Eν/((1+ν)(1−2ν)) and their inversions for the pairs E+ν, G+ν, K+ν, E+G, E+K, K+G, G+λ, K+λ and λ+ν); steel given E = 200 GPa and ν = 0.3 comes back as G ≈ 76.92 GPa, K ≈ 166.67 GPa and λ ≈ 115.38 GPa. The wave-speeds endpoint computes the longitudinal (P) and shear (S) elastic wave speeds from two moduli and the density, vp = √((K + 4G/3)/ρ) and vs = √(G/ρ), together with the vp/vs ratio used in seismology and ultrasonic testing — steel comes out at about 5860 m/s for P-waves and 3130 m/s for S-waves. Moduli convert in whatever consistent unit you supply (the wave-speed endpoint expects strict SI: pascals and kg/m³ for metres per second). Everything is computed locally and deterministically, so it is instant and private. Ideal for materials-science, mechanical-engineering, geophysics, seismology, ultrasonic-NDT and FEA app developers, material-property and rock-physics tools, and simulation software. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 2 endpoints. This interconverts elastic constants; for Young’s modulus from a stress/strain tensile test use a Young’s-modulus API.
api.oanor.com/elasticmoduli-api
Suspension Tuning API
Vehicle-suspension maths as an API, computed locally and deterministically — the spring and frequency numbers a racer, tuner or chassis engineer sets a car up with. The wheel-rate endpoint converts a spring rate to the rate the wheel actually feels: wheel rate = spring rate × motion ratio², where the motion ratio is the spring's travel per unit of wheel travel — a 200 lb/in spring at a 0.7 motion ratio gives a 98 lb/in wheel rate, because the spring's leverage softens it. The frequency endpoint gives the ride (natural) frequency at a corner, f = (1/2π)·√(wheel rate × g ÷ corner sprung weight), the number that really sets the ride: luxury cars run about 0.5–1.2 Hz, sporty street 1.2–1.7, race cars 2 Hz and up. The spring-rate endpoint inverts it — the spring rate needed to hit a target frequency for a corner weight and motion ratio — so you can pick the frequency for the car's job and get the spring straight out. Everything is computed locally and deterministically, so it is instant and private. Ideal for motorsport and tuning apps, chassis-setup and corner-balancing tools, suspension-design calculators, and engineering study aids. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 compute endpoints. Estimates — real ride also depends on damping and tyres.
api.oanor.com/suspension-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Bragg Diffraction API?
What's the rate limit for Bragg Diffraction API?
How much does Bragg Diffraction API cost?
Can I cancel my subscription anytime?
Is Bragg Diffraction API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/bragg-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/bragg-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/bragg-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/bragg-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.