{"uid":"cap_uWWkTzBd5tDb94ET73zFy","slug":"xrd-bragg-spacing-calculator-f2cf8116","name":"XRD Bragg Spacing Calculator","description":"Calculate first-order Bragg spacings from supplied two-theta peaks and wavelength. Explicit units; no lattice indexing or unique phase identification.","url":"https://www.mahastrategies.com/api/v1/micro/materials-xrd-peak-analysis?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","twoThetaDegrees","wavelengthAngstrom"],"properties":{"dataClass":{"enum":["public","synthetic"],"type":"string"},"twoThetaDegrees":{"type":"array","maxItems":128,"minItems":1},"wavelengthAngstrom":{"type":"number","maximum":1000000000000,"minimum":0}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["materials-xrd-peak-analysis"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["85000"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.085","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.085/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.085","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.085","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IgUxjdrpjp59zTZdwODnz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.085","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates first-order Bragg d-spacings from supplied two-theta peak positions and X-ray wavelength, returning explicit units without lattice indexing or phase identification.","exampleAgentPrompt":"I have XRD peaks at 25.3, 37.8, and 48.0 degrees two-theta measured with Cu Kα radiation at 1.5406 Angstroms — can you calculate the first-order Bragg d-spacings for each of those peaks? The data is public.","exampleUseCases":[{"title":"Ceramic phase d-spacing check","prompt":"I ran an XRD scan on an alumina ceramic sample and got peaks at 20.5, 35.1, 43.4, and 57.5 degrees two-theta using a Cu Kα source at 1.5406 Angstroms. Can you calculate the Bragg d-spacings for each of those peaks? The data is public."},{"title":"Thin film interplanar spacing from synchrotron data","prompt":"I collected synchrotron XRD data at a wavelength of 0.9763 Angstroms and I have peaks at 5.2, 10.4, 15.7, and 21.0 degrees two-theta. Please compute the first-order Bragg spacings for each peak — this is synthetic data."},{"title":"Steel diffraction peak analysis","prompt":"My XRD measurement of a steel sample using Mo Kα radiation at 0.7107 Angstroms shows peaks at 14.2, 20.3, 29.5, and 35.8 degrees two-theta. Can you calculate the d-spacings using Bragg's law for each of those peaks? Data class is public."}],"resultDescription":"Returns a result object containing first-order Bragg d-spacings for each supplied two-theta peak (calculated via Bragg's law with explicit units), along with boundary metadata, an offer ID, version string, input digest for verification, and a receipt digest for payment confirmation. No lattice indexing or crystal phase identification is performed.","failureModes":["Missing required fields (twoThetaDegrees, wavelengthAngstrom, dataClass) return validation errors","Two-theta values of 0 or ≥ 90 degrees may cause mathematical errors in Bragg's law computation","More than 128 peaks supplied exceeds maxItems limit and will be rejected","Wavelength of zero or negative value will fail minimum constraint","Invalid dataClass enum value (not 'public' or 'synthetic') causes schema rejection","Payment failure via x402 protocol prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic first-order Bragg d-spacing calculation from raw two-theta peak positions and a known wavelength, and you do not need lattice indexing, phase matching, or crystal structure identification. Ideal for preprocessing XRD data before more advanced analysis, verifying manual Bragg calculations, or automating routine peak-to-d-spacing conversion in a materials characterization pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:53:31.636Z","isFirstParty":false,"canonicalSlug":"xrd-bragg-spacing-calculator-f2cf8116"}