List logo matches
client.BrandProtection.V2.LogoMatches.Get(ctx, params) (*V2LogoMatchGetResponse, error)
GET/accounts/{account_id}/cloudforce-one/v2/brand-protection/logo/matches
Get paginated list of logo matches for a specific brand protection logo query
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
List logo matches
package main
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/brand_protection"
"github.com/cloudflare/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
logoMatch, err := client.BrandProtection.V2.LogoMatches.Get(context.TODO(), brand_protection.V2LogoMatchGetParams{
AccountID: cloudflare.F("x"),
QueryID: cloudflare.F("x"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", logoMatch.Matches)
}
{
"matches": [
{
"id": 0,
"matched_at": "matched_at",
"query_id": 0,
"similarity_score": 0,
"url_scan_id": "url_scan_id",
"content_type": "content_type",
"domain": "domain",
"image_data": "image_data"
}
],
"total": 0
}Returns Examples
{
"matches": [
{
"id": 0,
"matched_at": "matched_at",
"query_id": 0,
"similarity_score": 0,
"url_scan_id": "url_scan_id",
"content_type": "content_type",
"domain": "domain",
"image_data": "image_data"
}
],
"total": 0
}