Documentation ¶
Index ¶
Constants ¶
View Source
const BaseUrl = "https://urlscan.io/api/v1"
View Source
const Version = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) GetResult ¶
func (c Client) GetResult(uuid string) (*structs.ResultData, error)
Get the urlscan result for the specified scan UUID
func (Client) Scan ¶
func (c Client) Scan(url string, options ScanOptions) (*structs.ScanResponse, error)
Scan the Specified URL with the set options
type RequestData ¶
type RequestData struct {
// contains filtered or unexported fields
}
type ScanOptions ¶
type ScanOptions struct { // The visibility level of the scan. Either "public", "unlisted", or "private" Visibility string // User-defined tags used to annotate the scan (e.g. "phishing", "malicious"). Maximum 10 tags. Tags []string // Override User-Agent for this scan CustomAgent string // Override HTTP referer header for this scan CustomReferer string // The country to scan the URL from, see [the API] for a list of possible values // // [the API]: https://urlscan.io/api/v1/availableCountries Country string }
Optional values for the Scan API
Click to show internal directories.
Click to hide internal directories.