Get Collection Count

Retrieve the total number of collections that match specific criteria.

🔒

Requires read_collection access scope. More access scope

The Get Collection Count API allows you to retrieve the total number of collections that match specific criteria. This endpoint supports filtering by collection IDs and update timestamps, enabling fine-grained control over the count retrieval.This API is especially useful for:

  1. Quickly determine the number of collections available in your store.
  2. Filter collections by update time or specific IDs to get a precise count.

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredExampleDescription
updated_at_minstringNoupdated_at_min=2024-01-01T00:00:00ZISO 8601 timestamp. Only include collections updated after this time.
updated_at_maxstringNoupdated_at_max=2024-12-31T23:59:59ZISO 8601 timestamp. Only include collections updated before this time.

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring200Error code (200 indicates success)
messagestringSuccessError message
dataobject{...}Contains the collects data
data.countint3215Total number of collections matching the filters.

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!