MDN HTTP Observatory API
by developer.mozilla.org
Security related services
Added on October 31st, 2026
Not available since November 2026
Visit developer.mozilla.org →
Temporarily not available. We have left it out of the directory for now and check it again every week. Other free security APIs
What it does
The MDN HTTP Observatory, run by Mozilla, checks how well a website uses security headers and settings such as Content-Security-Policy, HSTS, cookies, redirects and subresource integrity. Send a POST request with a host name and get back a score, a grade and a link to the full report. Responses are JSON. Free, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST
- Provider
- developer.mozilla.org
More information: https://developer.mozilla.org/en-US/observatory/docs/api
Used in: Check a website's security, HTTPS and speed with free APIs
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://observatory-api.mdn.mozilla.net/api/v2/scan?host=example.com'
JavaScript
const response = await fetch("https://observatory-api.mdn.mozilla.net/api/v2/scan?host=example.com", {
method: 'POST',
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
"https://observatory-api.mdn.mozilla.net/api/v2/scan?host=example.com",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.