Submit a URL for scanning.
POST/accounts/{account_id}/urlscanner/v2/scan
- Takes: URL
- Active: contacts the target
Queues a scan and returns its uuid. Poll the result endpoint every 10 to 30 seconds. Public scans appear in recent scans and search; unlisted ones are reachable only by scan ID.
Path parameters
account_idYour Cloudflare account ID
Request body (JSON) · 6ShowHide
url
URL to scan
screenshotsResolutions[]
desktop, mobile or tablet
customagent
Custom User-Agent
referer
Referer to send
customHeaders
Any HTTP headers, including Authorization
visibility
Public (default) or Unlisted
Response fields · 1ShowHide
uuid
ID of the scan
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/YOUR_ACCOUNT_ID/urlscanner/v2/scan' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com/","visibility":"Unlisted"}'{
"uuid": "00000000-0000-4000-8000-000000000000"
}