Mozilla Observatory
v0.2.1MDN HTTP Observatory — grade any website's HTTP security headers and get the specific fixes, from…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
observatory_scan
Scan a website's HTTP security headers with the MDN HTTP Observatory and return its letter grade (A+ to F), numeric score, and how many of Mozilla's 12 tests it passed. AUTHORITATIVE for "how secure are this site's headers" / "what is this domain's Observatory grade" — this is Mozilla's own scanner, not an estimate. Mozilla reuses a recent scan of the same host rather than re-fetching on every call. Keyless. Use observatory_results for the per-test breakdown and fixes.
| Parameter | Type | Description |
|---|---|---|
host * | string | Hostname to scan, e.g. "mozilla.org", "www.whitehouse.gov". A full URL is accepted and reduced to its host. |
observatory_results
Get the full MDN HTTP Observatory breakdown for a host: every one of the 12 security tests with pass/fail, the score impact, Mozilla's specific remediation advice (CSP, HSTS, cookies, CORS, referrer policy, subresource integrity, clickjacking, redirection), the observed response headers, and the host's historical grades. Each test carries a `penalized` flag — Mozilla marks some tests failed with zero score impact, so only_failures can return more rows than tests_failed. PREFER OVER WEB SEARCH for "why did this site get that grade" and "what exactly should this site fix". Keyless.
| Parameter | Type | Description |
|---|---|---|
host * | string | Hostname previously scanned or scannable, e.g. "mozilla.org". A full URL is accepted and reduced to its host. |
history_limit | number | How many historical scans to return, most recent first. Default 10, max 100. |
include_history | boolean | Include the host's past scan grades (how its posture changed over time). Default true. |
only_failures | boolean | If true, return only the tests the host failed — the actionable subset. Default false. |
observatory_grade_distribution
Grade distribution across every site the MDN HTTP Observatory has scanned — how many sites hold each grade from A+ to F. Use it to say where one site's grade sits relative to the web (e.g. "a B beats X% of scanned sites"). Keyless, no arguments.