Count Products

Count the number of products based on the provided filters.

🔒

Requires read_product access scope. For more access scope

The Product Count API retrieves the total number of products that match specific filter criteria. It allows you to query the product catalog using various parameters, such as creation date, update date, published status, or collection ID, providing a count of products without fetching their full details.This API is especially useful for:

  1. Analytics and Reporting: Obtain a count of products for detailed insights and reporting purposes.

  2. Pagination Optimization: Use the count to calculate total pages or optimize data retrieval processes.

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
idsarray of stringsNoFilter by specific product IDs["prod_123", "prod_456"]
titlestringNoFilter by product title"Wireless Headphones"
collection_idstringNoFilter by collection ID"9e79ca1f-9ff2-409b-976f-98be343d38a3"
created_at_minstringNoFilter products created after date (ISO 8601)"2025-01-01T00:00:00Z"
created_at_maxstringNoFilter products created before date (ISO 8601)"2025-06-01T00:00:00Z"
updated_at_minstringNoFilter products updated after date (ISO 8601)"2025-05-01T00:00:00Z"
updated_at_maxstringNoFilter products updated before date (ISO 8601)"2025-06-01T00:00:00Z"
published_at_minstringNoFilter products published after date (ISO 8601)"2025-05-15T00:00:00Z"
published_at_maxstringNoFilter products published before date (ISO 8601)"2025-06-15T00:00:00Z"
published_statusstringNoFilter by publish status"published"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data.countstring-Total products matching filters

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!