Get a report
Fetch report metadata
/v1/reports/{id}Fetch report metadata. Public and unlisted reports are readable without auth; private reports require a bearer token belonging to the owner (a non-owner gets 404, never revealing existence).
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path parameters
idstringrequiredReport id.
Responses
Report metadata.
idstringrequiredbaseUrlstring (uri)requiredhealthScoreanyRounded overall score. `null` for a blocked or unreachable site and for a `partial` report: one whose run was started with `config.enabledRulePatterns` covers only the rules it selected, so its score is not the site's score and is withheld.
partialbooleanPresent, and `true`, only when the report's run was started with `config.enabledRulePatterns`; `healthScore` is then `null`. The key is absent otherwise.
pageCountanyerrorCountanywarningCountanypassedCountanyvisibility"public" | "unlisted" | "private"requiredAvailable options: public, unlisted, private
viewCountanyauditedAtanycreatedAtstring (date-time)requiredurlstring (uri)requiredcurl --request GET \
--url "https://api.squirrelscan.com/v1/reports/ID" \
--header "Authorization: Bearer YOUR_API_KEY"{
"id": "<string>",
"baseUrl": "<url>",
"healthScore": {},
"partial": true,
"pageCount": {},
"errorCount": {},
"warningCount": {},
"passedCount": {},
"visibility": "public",
"viewCount": {},
"auditedAt": {},
"createdAt": "2023-11-07T05:31:56Z",
"url": "<url>"
}