Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Quotas are per action (search, result…) and per minute, hour and day, with fixed windows resetting on the minute, hour and midnight UTC; only HTTP 200s count. X-Rate-Limit-* headers report the window closest to running out; over it is a 429.
- Submitting a scan is left out on purpose: a scan publishes the URL’s page to urlscan.io (public by default). So are visibility changes, saved searches, subscriptions, incidents and live scans.
- Queries use Elasticsearch query-string syntax with case-sensitive field names (page.domain:example.com); escape reserved characters and narrow with a date filter such as date:>now-7d.
Endpoints
Search existing scans
- Paging: pass the last result’s sort as search_after and stop when fewer than size results come back; has_more is only meaningful past 10,000 and total is capped at 10,000.
- Finds public scans by anyone plus your own unlisted and private ones. Free and unauthenticated searches may be limited to recent history (search_date_limit_days in the answer).
Get a scan result
Get a hostname’s history
Look up an observable in malicious scans
- urlscan Pro only.
Find structurally similar scans
- urlscan Pro only.