Simple library to fetch URLHaus URLs in go
urlhaus.GetRecentURLs()
urlhaus.GetAllURLs()
urlhaus.GetAllOnlineURLs()URLHaus also provides the hashes that were found on the urls. However it's a separate endpoint, so to populate the URLEntries with the hash data, call FillInURLHashDetails() on the URLEntry list.
These bulk CSV download functions (GetRecentURLs, GetAllURLs, GetAllOnlineURLs, FillInURLHashDetails) currently work without authentication.
SubmitURLs requires an abuse.ch Auth-Key (free from https://auth.abuse.ch/). Pass it as the apiKey argument; it is sent as the Auth-Key HTTP header.
urlhaus.SubmitURLs(ctx, urls, authKey, tags, "malware_download")