get
https://{subdomain}.myshoplaza.com/openapi/2025-06/collects/count
Retrieves the total number of collect objects that associate products with a collection.
Requiresread_collectionaccess scope. More access scope
The Get Collect Count API retrieves the total number of collect objects that associate products with a collection. This enables users to determine the count of products within a collection or the number of collections that include a specific product.This API is especially useful for:
1.Calculating the number of products in a collection for inventory analysis.
2.Determining how many collections a specific product is associated with.
3.Streamlining reporting and data analysis for collections and products.
Request Parameters
Public Request Parameters
Query Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| collection_id | string | No | a60fe556-43ad-4e07-9125-507ac1bf71f7 | The UUID of the collection to filter collects. |
| product_id | string | No | b60fe556-12bc-3e07-9125-507ac1bf71c3 | The UUID of the product to filter collects. |
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | 200 | Error code (200 indicates success) |
message | string | Success | Error message |
data | object | {...} | Contains the collects data |
data.count | int32 | 42 | Total number of collects retrieved. |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
