API endpoints related to the platform or the user account.
Operations
Scanning
These APIs allow URLs to be scanned and the results of the scans to be retrieved.
Operations
Search
The Search API allows users to search for historically website scans, hostnames, domains, TLS certificates and incidents.
Operations
Live Scanning
urlscan Pro - Live Scanning allows users to scan websites from different geographical locations and using different device settings.
See additional info about this proprietary feature on urlscan Pro.
Operations
Saved Searches
urlscan Pro - Saved Searches are rules that are executed inline against new incoming scans and hostnames.
Operations
Subscriptions
urlscan Pro - Subscriptions allow notifications for Saved Searches.
Operations
Hostnames
urlscan Pro - Historical information on hostnames and domains
Operations
Hostname History
Request
Get the historical observations for a specific hostname in the "Hostnames" data source.
Security
apikeyAuth
Path
hostnamestringrequired
The hostname to query
Example: urlscan.io
Query
limitinteger
Return at most this many results. Minimum 10 Maximum 10000 Default 1000
Default 1000
pageStatestring
Returns additional results starting from this page state from the previous API call.
https://urlscan.io/api/v1/hostname/{hostname}
curl
JavaScript
Node.js
Python
Java
C#
PHP
Go
Ruby
R
Payload
curl -i -X GET \ 'https://urlscan.io/api/v1/hostname/urlscan.io?limit=1000&pageState=string' \ -H 'api-key: YOUR_API_KEY_HERE'
Responses
Successful response
Bodyapplication/json
pageStatestring
If the pageState field is set then there are additional results available. Repeat the API call with the pageState value to get the next batch of results.