Saved results for many domains
POST
/api/v1/bulk
const url = 'https://qsafe.sh/api/v1/bulk';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"domains":["example.com","cloudflare.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://qsafe.sh/api/v1/bulk \ --header 'Content-Type: application/json' \ --data '{ "domains": [ "example.com", "cloudflare.com" ] }'Looks up saved results for up to 50 domains in one call. It never scans: for each
domain with status: not_scanned, call the scan URL it gives you (rate limits apply
per scan). This is how the /bulk page works.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
domains
required
An array of domains, or one string separated by spaces, commas or new lines.
One of:
Array<string>
string
Example
{ "domains": [ "example.com", "cloudflare.com" ]}Responses
Section titled “Responses”One entry per input, duplicates removed.
Media typeapplication/json
object
count
required
integer
results
required
Array
One of:
Saved
object
domain
string
status
score
integer
band
Green 85-100 (Quantum-ready), yellow 65-84 (Almost ready), orange 40-64 (Not yet), red 0-39 (Not yet, at risk).
string
label
string
kex
string | null
scanned_at
string format: date-time
scan_id
string
permalink
string format: uri
Not scanned
object
domain
string
status
scan
Call this to scan it.
string format: uri
Invalid
object
input
string
status
error
string
Example
{ "results": [ { "status": "saved", "band": "green" } ]}The request body isn’t valid.
Media typeapplication/problem+json
object
type
required
string
Example
about:blanktitle
required
string
Example
rate_limitedstatus
required
integer
Example
429detail
required
string
Example
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."}Not a valid public hostname, or it can’t be scanned (e.g. private IP, no HTTPS).
Media typeapplication/problem+json
object
type
required
string
Example
about:blanktitle
required
string
Example
rate_limitedstatus
required
integer
Example
429detail
required
string
Example
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."}