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

Find a brand's competitors

Zaraftis researches the web for the brand’s closest competitors in one market. It costs 90 credits (free for unlimited workspaces) and answers 202 with a task. When the task completes, its competitor_list_id names the list. The list is a proposal: save the competitors to track with PATCH /v1/visibility-setups/{setup_id}. A failed task releases the credits.

POST/brands/{brand_id}/competitor-lists
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
brand_idstring<uuid>required
Header parameters
Idempotency-Keystringrequired

A new value, such as a UUID, for each new request. Send the same value to retry a request safely; see https://docs.zaraftis.com/conventions#safe-retries-with-idempotency-key.

min length 1 · max length 64
Request body
requiredapplication/json
countrystringrequired
min length 2 · max length 2
Responses
202

The competitor list task was accepted

successbooleanrequired
dataCompetitorListAcceptedObjectrequired
Show properties
task_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)$
task_urlstringrequired
min length 1
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)$
statusstringrequired
billingBillingObject | nullrequired
Show properties
Any of:
BillingObject
operationstringrequired
Allowed:ai_platform_querysite_auditauto_visibility_setupcommerce_collectioncompetitor_generation
credit_catalog_versionstringrequired
min length 1
quantity_requestedintegerrequired
min 0 · max 9007199254740991
unit_creditsinteger | nullrequired
Show properties
Any of:
integer
integer
null
null
maximum_creditsintegerrequired
min 0 · max 9007199254740991
reserved_creditsintegerrequired
min 0 · max 9007199254740991
billing_statusstringrequired
Allowed:reserveddeductedreleased
credits_deductedinteger
min 0 · max 9007199254740991
credits_releasedinteger
min 0 · max 9007199254740991
wallet_history_idstring | nullrequired
Show properties
Any of:
string
string
null
null
null
null
request_idstringrequired
min length 1
400

bad_request or validation_failed

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
402

wallet_not_activated, insufficient_credits, or payment_action_required

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
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
409

conflict, duplicate_url, or idempotency_conflict

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
429

rate_limited: wait the Retry-After seconds

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 POST 'https://api.zaraftis.com/v1/brands/497f6eca-6276-4993-bfeb-53cbbbba6f08/competitor-lists' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Idempotency-Key: string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "country": "st"
}'
Response
{
  "success": true,
  "data": {
    "task_id": "736fde4d-9029-4915-8189-01353d6982cb",
    "task_url": "string",
    "brand_id": "1bb61461-e5e3-4ebb-8cc6-5b0c37f1b7da",
    "status": "queued",
    "billing": {
      "operation": "ai_platform_query",
      "credit_catalog_version": "string",
      "quantity_requested": 0,
      "unit_credits": 0,
      "maximum_credits": 0,
      "reserved_credits": 0,
      "billing_status": "reserved",
      "credits_deducted": 0,
      "credits_released": 0,
      "wallet_history_id": "string"
    }
  },
  "request_id": "string"
}

Was this page helpful?