Scan a domain
const url = 'https://qsafe.sh/api/v1/scan?domain=example.com&fresh=false&private=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://qsafe.sh/api/v1/scan?domain=example.com&fresh=false&private=false'Runs a TLS handshake against the domain from our scanner and returns the full report.
If a public result under one hour old exists, it is returned instead (cached: true)
unless you pass fresh. Fresh scans count against the rate limits.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
example.comHostname to scan. A URL is accepted; the scheme, port and path are dropped.
Run a new scan even if a recent result exists.
Don’t publish the result. Private scans are never reused, are left out of history, badges, share images and verification, and always run fresh.
Responses
Section titled “Responses”The report.
object
Example
m4k2x9c1a7Example
https://qsafe.sh/r/example.com?scan=m4k2x9c1a7True when a saved result was returned.
Example
example.comExample
1Example
92Green 85-100 (Quantum-ready), yellow 65-84 (Almost ready), orange 40-64 (Not yet), red 0-39 (Not yet, at risk).
Example
Quantum-readyOne-sentence summary.
object
object
Example
X25519MLKEM768object
object
object
What terminates TLS, edge first.
object
object
What we saw in this scan.
Why it matters.
What to do next.
Copy-paste config for the detected stack.
Where the snippet goes.
The stack guide the advice came from.
object
Example
{ "scan_id": "m4k2x9c1a7", "permalink": "https://qsafe.sh/r/example.com?scan=m4k2x9c1a7", "domain": "example.com", "methodology_version": "1", "score": 92, "band": "green", "label": "Quantum-ready", "key_exchange": { "negotiated": "X25519MLKEM768" }, "tls_versions": { "TLS 1.0": false, "TLS 1.1": false, "TLS 1.2": true, "TLS 1.3": true }, "stack": [ { "kind": "cdn" } ], "findings": [ { "id": "KEX_CLASSICAL_ONLY", "severity": "high" } ]}Not a valid public hostname, or it can’t be scanned (e.g. private IP, no HTTPS).
object
Example
about:blankExample
rate_limitedExample
429Example
Too many scans from your network. Try again in a minute.Example
{ "type": "about:blank", "title": "rate_limited", "status": 429, "detail": "Too many scans from your network. Try again in a minute."}A rate limit was hit. See Retry-After.
object
Example
about:blankExample
rate_limitedExample
429Example
Too many scans from your network. Try again in a minute.Example
{ "type": "about:blank", "title": "rate_limited", "status": 429, "detail": "Too many scans from your network. Try again in a minute."}Headers
Section titled “Headers”Seconds to wait.
The scan didn’t finish (timeout or scanner unavailable).
object
Example
about:blankExample
rate_limitedExample
429Example
Too many scans from your network. Try again in a minute.Example
{ "type": "about:blank", "title": "rate_limited", "status": 429, "detail": "Too many scans from your network. Try again in a minute."}