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

Get a commerce collection

Returns one collection’s state with its per-module observation counts. A zero count is real evidence of a module that did not appear (or a platform that served no shopping module), never a failure.

GET/commerce/collections/{collection_id}
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
collection_idstring<uuid>required
Responses
200

One commerce collection

successbooleanrequired
dataCommerceCollectionObjectrequired
Show properties
collection_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)$
statusstringrequired
Allowed:queuedrunningcompletedfailed
task_idstring<uuid> | nullrequired
Show properties
Any of:
string<uuid>
string<uuid>
null
null
task_urlstring | nullrequired
Show properties
Any of:
string
string
null
null
platform_idsstring[]required
countrystringrequired
min length 2 · max length 2
queriesobjectrequired
Show properties
requestedintegerrequired
min 0 · max 9007199254740991
completedintegerrequired
min 0 · max 9007199254740991
failedintegerrequired
min 0 · max 9007199254740991
observation_countsobject[]required
Show properties
Array of object
module_typestringrequired
Allowed:shopping_cardinline_productmerchant_offerentitymap_entrylocal_packknowledge_graphproduct_panelpeople_are_sayingcitation_pillsponsored_commerce
countintegerrequired
min 0 · max 9007199254740991
errorobject | nullrequired
Show properties
Any of:
object
codestringrequired
min length 1
messagestringrequired
min length 1
null
null
findings_evaluationFindingsEvaluation | nullrequired
Show properties
Any of:
FindingsEvaluation
evaluation_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)$
rulesobject[]required
Show properties
Array of object
rulestringrequired
min length 1
rule_versionstringrequired
min length 1
checkedintegerrequired
min 0 · max 9007199254740991
firedintegerrequired
min 0 · max 9007199254740991
created_atstringrequired
null
null
timestampsobjectrequired
Show properties
created_atstringrequired
started_atstring | nullrequired
completed_atstring | nullrequired
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/commerce/collections/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
    "brand_id": "1bb61461-e5e3-4ebb-8cc6-5b0c37f1b7da",
    "status": "queued",
    "task_id": "736fde4d-9029-4915-8189-01353d6982cb",
    "task_url": "string",
    "platform_ids": [
      "string"
    ],
    "country": "st",
    "queries": {
      "requested": 0,
      "completed": 0,
      "failed": 0
    },
    "observation_counts": [
      {
        "module_type": "shopping_card",
        "count": 0
      }
    ],
    "error": {
      "code": "string",
      "message": "string"
    },
    "findings_evaluation": {
      "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324",
      "rules": [
        {
          "rule": "string",
          "rule_version": "string",
          "checked": 0,
          "fired": 0
        }
      ],
      "created_at": "string"
    },
    "timestamps": {
      "created_at": "string",
      "started_at": "string",
      "completed_at": "string"
    }
  },
  "request_id": "string"
}

Was this page helpful?