Score history
GET
/api/v1/history/{domain}
const url = 'https://qsafe.sh/api/v1/history/example.com';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/history/example.comThe last 30 public scans of the domain, newest first. Never scans.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
Example
example.comHostname, e.g. example.com.
Responses
Section titled “Responses”Score history.
Media typeapplication/json
object
domain
required
string
Example
example.comscans
required
Array<object>
object
id
required
Scan id.
string
created_at
required
Unix time in milliseconds.
integer
score
required
integer
band
required
Green 85-100 (Quantum-ready), yellow 65-84 (Almost ready), orange 40-64 (Not yet), red 0-39 (Not yet, at risk).
string
Example
{ "domain": "example.com", "scans": [ { "band": "green" } ]}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."}