
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
github.com/whois-api-llc/domain-reputation-go
Advanced tools
The client library for Domain Reputation API in Go language.
The minimum go version is 1.17.
The library is distributed as a Go module
go get github.com/whois-api-llc/domain-reputation-go
Full API documentation available here
You can find all examples in example directory.
To start making requests you need the API Key. You can find it on your profile page on whoisxmlapi.com. Using the API Key you can create Client.
Most users will be fine with NewBasicClient function.
client := domainreputation.NewBasicClient(apiKey)
If you want to set custom http.Client to use proxy then you can use NewClient function.
transport := &http.Transport{Proxy: http.ProxyURL(proxyUrl)}
client := domainreputation.NewClient(apiKey, domainreputation.ClientParams{
HTTPClient: &http.Client{
Transport: transport,
Timeout: 20 * time.Second,
},
})
Domain Reputation API lets you calculate a domain's reputation scores based on hundreds of parameters.
// Make request to get the Domain Reputation API response as a model instance.
domainReputationResp, _, err := client.Get(ctx, "whoisxmlapi.com")
if err != nil {
log.Fatal(err)
}
log.Println(domainReputationResp.Mode, domainReputationResp.ReputationScore)
// Make request to get raw data in XML.
resp, err := client.GetRaw(context.Background(), "whoisxmlapi.com",
domainreputation.OptionOutputFormat("XML"))
if err != nil {
log.Fatal(err)
}
log.Println(string(resp.Body))
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies