Submit a URL to be scanned.
POST/api/v1/scan
- Takes: URL
- Active: contacts the target
Returns a scan UUID. Poll the result endpoint with it, waiting at least 10 seconds before the first poll.
Request body (JSON) · 6ShowHide
url
The URL to scan
visibility
public, unlisted or private
country
Country to scan from, ISO 3166-1 alpha-2; chosen automatically if omitted
tags
User-defined tags
referer
Overrides the HTTP referer
customagent
Overrides the HTTP User-Agent
Response fields · 4ShowHide
uuid
UUID of the scan result (the scanId)
country
Country the scan was run from
visibility
Visibility determined for the scan
url
URL scanned, as determined by the service
curl -X POST 'https://urlscan.io/api/v1/scan' \
-H 'api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com","visibility":"unlisted","country":"US","tags":["example"]}'{
"uuid": "00000000-0000-0000-0000-000000000000",
"country": "US",
"visibility": "unlisted",
"url": "https://example.com/"
}