Website Security Grade API
Web security grade for each website you list: Mozilla Observatory letter grade and score, how many header and configuration tests passed or failed, scan time, and optionally HSTS preload list status.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from observatory-api.mdn.mozilla.net
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/website-security-grade/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"hosts":["github.com"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
9 fields.
Basics
- Host
Hostname that was graded.
Example github.com
- Grade
Letter grade from A+ to F.
Example A+
- Score
Numeric score (can exceed 100 with bonus points).
Example 115
- Tests passed
Number of tests passed.
Example 11
- Tests failed
Number of tests failed.
Example 1
- Status code
HTTP status the site answered with during the scan.
Example 200
- Hsts preload status
HSTS preload list status; only when include_hsts_preload is on.
Example preloaded
Dates
- Scanned
When the scan was made (UTC).
Example Dec 6, 2026
Links
- Details link
Link to the full report.
Example developer.mozilla.org/en-US/observatory/analyze?host=github.com
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
host | text | Host | 3 of 3 |
grade | text | Grade | 3 of 3 |
score | number | Score | 3 of 3 |
tests_passed | number | Tests passed | 3 of 3 |
tests_failed | number | Tests failed | 3 of 3 |
status_code | number | Status code | 3 of 3 |
scanned_at | date and time | Scanned | 3 of 3 |
hsts_preload_status | text | Hsts preload status | 3 of 3 |
details_url | link | Details link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Host | Grade | Score | Tests passed | Tests failed | Status code | Hsts preload status | Scanned | Details link |
|---|---|---|---|---|---|---|---|---|---|
| 1 | github.com | A+ | 115 | 11 | 1 | 200 | preloaded | Dec 6, 2026 | developer.mozilla.org/en-US/observatory/analyze?host=github.com |
| 2 | mozilla.org | B+ | 80 | 11 | 1 | 200 | unknown | Dec 6, 2026 | developer.mozilla.org/en-US/observatory/analyze?host=mozilla.org |
| 3 | wikipedia.org | C | 50 | 9 | 3 | 200 | preloaded | Dec 6, 2026 | developer.mozilla.org/en-US/observatory/analyze?host=wikipedia.org |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Grades web security headers and configuration (such as HTTPS redirects, CSP, cookies and HSTS) only; it is not a full security audit or vulnerability scan.
- Mozilla caches scan results per host, so a repeat run soon after a change may return the earlier scan; check scanned_at.
- Hosts must be public website hostnames (no paths, IP addresses or localhost). Hosts that cannot be scanned are skipped.
- At most 200 hosts per run, read one at a time at about one scan every 1.5 seconds, so 200 hosts take around 10 minutes.
- HSTS preload status comes from hstspreload.org (preloaded, pending, unknown) and is empty when you do not ask for it.
- Data comes from the public Mozilla Observatory and hstspreload.org services. Not affiliated with or endorsed by Mozilla.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.