Skip to content
Zaraftis
Esc
↑↓navigate↵open⌘Jpreview

Get a scan's competitor suggestions

Returns brands that at least two answers of the scan recommend for the same job as the brand, and that the scan did not track. Names the brand tracks now and rejected names are left out. To track a name, add it to the setup’s competitors with PATCH /v1/visibility-setups/{setup_id}; a name with a null url needs its website first. To stop a name from being suggested, reject it with PATCH /v1/brands/{brand_id}/competitor-suggestions.

GET/scans/{scan_id}/competitor-suggestions
Authorization
AuthorizationBearer token · headerrequired

API key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.

or
AuthorizationOAuth2 access token · headerrequired

OAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.

Path parameters
scan_idstring<uuid>required
Responses
200

The scan's competitor suggestions

successbooleanrequired
dataCompetitorSuggestionsObjectrequired

Up to 20 names, most answers first. answers is the number of answers of this scan that recommend the name. url is null when no answer gave a website. Empty for a scan that is not finished or that ran before suggestions existed.

Show properties
scan_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
brand_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
suggestionsobject[]required
Show properties
Array of object
namestringrequired
min length 1
urlstring | nullrequired
Show properties
Any of:
string
string
null
null
answersintegerrequired
min 2 · max 9007199254740991
request_idstringrequired
min length 1
404

not_found: unknown id, or an id this key cannot see

successbooleanrequired
errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsobject
field_errorsobject[]
Show properties
Array of object
fieldstringrequired
codestringrequired
Allowed:requiredformattoo_smalltoo_largeunrecognized_keyinvalid
messagestringrequired
request_idRequestIdrequired
Request
curl -X GET 'https://api.zaraftis.com/v1/scans/497f6eca-6276-4993-bfeb-53cbbbba6f08/competitor-suggestions' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "scan_id": "9a59f0f5-5572-476d-a7fc-c960ef43a5af",
    "brand_id": "1bb61461-e5e3-4ebb-8cc6-5b0c37f1b7da",
    "suggestions": [
      {
        "name": "string",
        "url": "string",
        "answers": 2
      }
    ]
  },
  "request_id": "string"
}

Was this page helpful?