POST/api/analyze
Start a scan of a website. If a scan of the domain is already running, the response points to that report.
Parameters
- urlstring
- Required. Website URL including the protocol, such as https://example.com. Reports are per registrable domain: a subdomain or path is scanned as https://example.com (www is kept).
- rescanboolean
- Optional. Start a new scan even when a recent report exists.
Request
curl -X POST https://guard.report/api/analyze \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Response
{
"domain": "example.com",
"reportId": "123e4567-e89b-12d3-a456-426614174000",
"message": "Analysis started"
}