JSON API
Get the same results as this site in your scripts, dashboards and CI. The API needs no key, every response is JSON, and a page on any origin can call it.
Endpoints
POST/api/v1/scan
Checks a domain. When the domain has a result from the last 10 minutes, you get that result, and cached is true.
- domain
- body. The domain, such as example.com. A URL also works.
- port
- body. 443 or 8443. The default is 443.
curl -X POST https://arewepostquantum.com/api/v1/scan \
-H 'content-type: application/json' \
-d '{"domain": "example.com"}'{
"result": {
"domain": "example.com",
"port": 443,
"verdict": "yes",
"keyExchange": "X25519MLKEM768",
"score": 87,
"grade": "B",
"checks": [{ "id": "key_exchange", "label": "Post-quantum key exchange", "status": "pass", "value": "X25519MLKEM768", ... }],
"checkedAt": "2026-12-04T04:32:05.516Z",
...
},
"cached": false
}GET/api/v1/scan/{domain}
Gets the newest result of a domain from the last 30 days, without a new check. A domain with no recent result gets status 404.
- port
- query. 443 or 8443. The default is 443.
curl https://arewepostquantum.com/api/v1/scan/example.com
{
"result": { "domain": "example.com", "verdict": "yes", "score": 87, "grade": "B", ... }
}GET/api/v1/leaderboard
Gets the leaderboard: each listed site with its newest answer and score, in rank order, with the number of sites for each answer.
- query
- query. Only sites whose name or domain contains this text.
- verdict
- query. yes, partly or no.
- offset
- query. The first entry to return. The default is 0.
- limit
- query. From 1 to 100. The default is 24.
curl 'https://arewepostquantum.com/api/v1/leaderboard?verdict=no&limit=10'
{
"total": 364,
"offset": 0,
"counts": { "all": 1520, "yes": 1154, "partly": 2, "no": 364 },
"entries": [{ "rank": 1, "domain": "example.com", "name": "Example", "verdict": "no", "keyExchange": "x25519", "score": 45, "grade": "F", "checkedAt": "..." }],
"stats": { "scans": 2543, "readyPercent": 76 }
}Result fields
verdict
yes when browsers get a post-quantum key exchange, partly when the server supports one but does not choose it, no when it has none, and unknown when the check could not test the site.
keyExchange
The key exchange group that the server chose, such as X25519MLKEM768.
score, grade
The readiness score from 0 to 100 and its grade from A to F. The scoring page says how each point is earned.
checks
Each check with its id, label, status (pass, warn, fail or info), detail and value.
breakdown
The points of each check, and whether the test was partial.
method
direct_probe when the scanner connected to the site, or cloudflare_radar when Cloudflare Radar tested it.
checkedAt
When the check ran, in ISO 8601.
How the score works lists every check and its points.
Check a domain in CI
This step fails when browsers do not get a post-quantum key exchange from your domain.
curl -s -X POST https://arewepostquantum.com/api/v1/scan \
-H 'content-type: application/json' \
-d '{"domain": "example.com"}' \
| jq -e '.result.verdict == "yes"'Limits
Each visitor can run 30 checks each day, and a check after that gets status 429. Reading a stored result or the leaderboard does not count. An error response has an error field that says what to change.
From a coding agent
The MCP server gives the same checks to Claude Code, Cursor, Codex and other agents. Add the MCP server.