A urlscan.io API library for Go
- Scanning URLs with urlscan
- Getting scan results
- Searching for scan results
To get an API Key, sign up for urlscan and go to the "Settings & API" profile menu
client := urlscan.NewClient("MY-API-KEY")
scan, err := client.Scan("https://example.com", urlscan.ScanOptions{
Tags: []string{"test", "urlscan-go"},
Country: "ca",
})
result, err := client.GetResult("result-uuid-here")
result, _ := client.Search("domain:(example.com OR example.net)", 100)
for _, result := range result.Results {
// Do something here
}
For further documentation, see this package at pkg.go.dev
See CONTRIBUTING.md