Get Collection List

Retrieves a list of collections based on various filter criteria, such as product_id, title, or update timestamps.

🔒

Requires read_collection access scope. More access scope

The Get Collections API retrieves a list of collections based on various filter criteria, such as product_id, title, or update timestamps. It allows users to paginate results and specify query limits for efficient retrieval.This API is especially useful for:

1.Fetch all collections for specific product association.

2.Filter collections by title or update timestamps.

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoCursor for paginationcursor_123456
page_sizeint32NoA limit on the number of objects to return. Range: 1-100 (default is 10)20
idsarray of stringsNoList of collection IDs to retrieve specific collections["coll_123", "coll_456"]
titlestringNoFilter collections by their title (supports partial matching)"summer"
updated_at_minstringNoMinimum timestamp for filtering collections by their last updated date. Format: YYYY-MM-DDTHH:mm:ssZ2023-01-01T00:00:00Z
updated_at_maxstringNoMaximum timestamp for filtering collections by their last updated date. Format: YYYY-MM-DDTHH:mm:ssZ2023-12-31T23:59:59Z
product_idstringNoUUID of a product to filter collections that include the productprod_789abc

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring200Error code (200 indicates success)
messagestringSuccessError message
dataobject{...}Contains the collects data
data.collectionsarray of objects[ {...}, {...} ]List of collection objects
data.cursorstringcursor_123456Cursor for pagination
data.has_morebooleantrueIndicates if there are more results available

Collection Object Structure

ParameterTypeExampleDescription
idstringcoll_123456Unique identifier of the collection
titlestringSummer CollectionName of the collection
descriptionstringOur best summer productsDescription of the collection
handlestringsummer-collectionURL-friendly identifier
smartbooleanfalseWhether this is a smart collection (dynamically filtered)
imageobject{...}Image details for the collection
seo_titlestringSummer Collection 2023SEO-optimized title
seo_keywordsarray of strings["summer", "2023", "sale"]SEO keywords for the collection
seo_descriptionstringDiscount on summer productsSEO description
sort_orderstringmanualHow products are sorted in this collection
created_atstring2023-06-20T15:30:00ZTimestamp when the collection was created
updated_atstring2023-06-21T09:15:00ZTimestamp when the collection was last updated

Image Object Structure

ParameterTypeExampleDescription
srcstringhttps://example.com/image.jpgURL of the collection image
widthint32800Image width in pixels
heightint32600Image height in pixels
altstringSummer productsAlternative text for the image

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!