Initializes a new instance of the UrlscanClient.
The API key required for authentication with the urlscan.io API.
Retrieves the results of a scan by its ID.
The unique identifier of the scan.
A promise that resolves to the result response or void if an error occurs.
Scans a given URL and returns the scan information
The URL to be scanned.
Optional
options: Omit<ScanPayload, "url">Optional parameters for the scan request (excluding the URL).
A promise that resolves to the scan result response or void if an error occurs.
Searches for scans using a specified term.
The search term to look for in previous scans.
Optional
options: SearchOptionsOptional parameters for the search query.
A promise that resolves to the search results or void if an error occurs.
A client for interacting with the urlscan.io API. This class provides methods to scan URLs, retrieve scan results, and search for previously scanned URLs.