Browser Test
API Reference
Browser Test
Launches a real headless Chromium browser via Playwright and autonomously tests the page: JS errors, broken links, form accessibility, and Core Web Vitals.
POST
/api/browser-testsynchronousJS errors, broken links, form issues, screenshots
Request body
{
"url": "https://example.com"
}Response
{
"testId": "clxyz...",
"pagesVisited": 3,
"jsErrors": [...],
"brokenLinks": [...],
"formIssues": [...],
"suggestions": [...],
"aiSummary": "..."
}Example
curl -X POST https://www.scanverra.com/api/browser-test \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'No aggregate score
Unlike Audit or Security Scan, this endpoint doesn't return a single 0-100 number. Instead you get categorized issue arrays (jsErrors, brokenLinks, formIssues, image/alt issues), each tagged severity: "error" | "warning". To gate a pipeline on this, check the count of severity === "error" entries — see CI/CD Integration.
