URL Intel | Golang SDK
The URL Intel service allows you to retrieve intelligence about known URLs, giving you insight into the reputation of a URL.
Reputation check
func (e *urlIntel) Reputation(ctx context.Context, input *UrlReputationRequest) (*pangea.PangeaResponse[UrlReputationResult], error)Retrieve a reputation score for a URL, from a provider, including an optional detailed report.
input := &url_intel.UrlReputationRequest{
Url: "http://113.235.101.11:54384",
Raw: true,
Verbose: true,
Provider: "crowdstrike",
}
checkOutput, err := urlintel.Reputation(ctx, input)
Reputation check V2
func (e *urlIntel) ReputationBulk(ctx context.Context, input *UrlReputationBulkRequest) (*pangea.PangeaResponse[UrlReputationBulkResult], error)Retrieve reputation scores for URLs, from a provider, including an optional detailed report.
urls := [...]string{"http://113.235.101.11:54384"}
input := &url_intel.UrlReputationBulkRequest{
Urls: urls,
Raw: true,
Verbose: true,
Provider: "crowdstrike",
}
checkOutput, err := urlintel.ReputationBulk(ctx, input)
Type Client
type Client interfacetype Client interface {
Reputation(ctx context.Context, req *UrlReputationRequest) (*pangea.PangeaResponse[UrlReputationResult], error)
ReputationBulk(ctx context.Context, req *UrlReputationBulkRequest) (*pangea.PangeaResponse[UrlReputationBulkResult], error)
// Base service methods
pangea.BaseServicer
}
Type ReputationData
type ReputationData structtype ReputationData struct {
Category []string `json:"category"`
Score int `json:"score"`
Verdict string `json:"verdict"`
}
Type UrlReputationBulkRequest
type UrlReputationBulkRequest structtype UrlReputationBulkRequest struct {
// Base request has ConfigID for multi-config projects
pangea.BaseRequest
// The URL to be looked up
Urls []string `json:"urls"`
// Echo the API parameters in the response.
Verbose *bool `json:"verbose,omitempty"`
// Include raw data from this provider.
Raw *bool `json:"raw,omitempty"`
// Use reputation data from this provider.
Provider string `json:"provider,omitempty"`
}
Type UrlReputationBulkResult
type UrlReputationBulkResult structtype UrlReputationBulkResult struct {
// High-level normalized results sent
// by the Pangea service
Data map[string]ReputationData `json:"data"`
// The parameters, which were passed in
// the request, echoed back
Parameters map[string]any `json:"parameters,omitempty"`
// The raw data from the provider.
// Each provider's data will have its own format
RawData map[string]any `json:"raw_data,omitempty"`
}
Type UrlReputationRequest
type UrlReputationRequest structtype UrlReputationRequest struct {
// Base request has ConfigID for multi-config projects
pangea.BaseRequest
Url string `json:"url"`
Verbose *bool `json:"verbose,omitempty"`
Raw *bool `json:"raw,omitempty"`
Provider string `json:"provider,omitempty"`
}
Type UrlReputationResult
type UrlReputationResult structtype UrlReputationResult struct {
Data ReputationData `json:"data"`
Parameters interface{} `json:"parameters,omitempty"`
RawData interface{} `json:"raw_data,omitempty"`
}
Type urlIntel
type urlIntel structtype urlIntel struct {
pangea.BaseService
}