Get scan run - scan logs API in Website Scanner
Use this API to get scan logs from a scan run report from a website scan.
get scan run - scan logs
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://api-accessibility.browserstack.com/api/website-scanner/v1/scans/{scan_id}/scan_runs/{scan_run_id}/scan_logs
-
next_page String
Used to fetch subsequent pages from the API when has_next parameter is true. Pass the next_page reference received in the response of last request.
Response Attributes 200 OK
JSON
Response
{
"data": {
"urlCount" : 10,
"scanLogs" : [
{
"time": "2024-12-13T07:43:06.133Z",
"pageUrl": "https://www.sample.com/",
"description": "Scan complete, 1 issues found",
"finalRedirectUrl": "",
"status": "success/redirect/failure"
},
...
]
}
}
-
urlCount Integer
Number of URLs that were scanned.
-
scanLogs Object
Logs of all URLs scanned.
-
time String
Timestamp of the scan log.
-
pageUrl String
URL for which the scan log was created.
-
description String
A short description of the scan log including the status and the number of issues.
-
finalRedirectUrl String
URL to which a redirect was done, if existing.
-
status String
The status of the scan.
-
-
pagination Object
Contains information to facilitate fetching additional records if they exist.
-
has_next Boolean
True if there are more records to fetch. False if the current response is the last page of records.
-
next_page String
A reference to the next page. Pass this as a request parameter in the subsequent request as “next_page” to get the next page of records.
-
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.