The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Collection
products
access scope.A collection is a grouping of products that merchants can create to make their stores easier to browse. For example, a merchant might create a collection for a specific type of product that they sell, such as Footwear. Merchants can create collections by selecting products individually or by defining rules that automatically determine whether products are included.
Shopify stores start with a single collection, called Frontpage. This is a collection of products that are shown on the front page of the online store.
There are two different types of collection:
- Custom collections, which contain products that are manually added to a collection by a merchant. For more information, see the CustomCollection resource.
- Smart collections, which contain products that are automatically added based on selection conditions that a merchant chooses. For more information, see the SmartCollection resource.
The Collect resource is used to connect a product to a custom collection.
Endpoints
- get/admin/api/latest/collections/{collection_
id}. json Retrieves a single collection - get/admin/api/latest/collections/{collection_
id}/products. json Retrieve a list of products belonging to a collection
The Collection resource
Properties
A description of the collection, complete with HTML markup. Many templates display this on their collection pages.
A unique, human-readable string for the collection automatically generated from its title. This is used in themes by the Liquid templating language to refer to the collection. (limit: 255 characters)
Image associated with the collection. Valid values are:
Show image properties
- attachment: An image attached to a collection returned as Base64-encoded binary data.
- src: The source URL that specifies the location of the image.
- alt: The alternative text that describes the collection image.
- created_at: The time and date (ISO 8601 format) when the image was added to the collection.
- width: The width of the image in pixels.
- height: The height of the image in pixels.
The ID for the collection.
The time and date (ISO 8601 format) when the collection was made visible. Returns null
for a hidden collection.
Whether the collection is published to the Point of Sale channel. Valid values:
Show published_scope properties
web
: The collection is published to the Online Store channel but not published to the Point of Sale channel.global
: The collection is published to both the Online Store channel and the Point of Sale channel.
The order in which products in the collection appear. Valid values:
Show sort_order properties
- alpha-asc: Alphabetically, in ascending order (A - Z).
- alpha-desc: Alphabetically, in descending order (Z - A).
- best-selling: By best-selling products.
- created: By date created, in ascending order (oldest - newest).
- created-desc: By date created, in descending order (newest - oldest).
- manual: In the order set manually by the shop owner.
- price-asc: By price, in ascending order (lowest - highest).
- price-desc: By price, in descending order (highest - lowest).
The suffix of the liquid template being used. For example, if the value is custom
, then the collection is using the collection.custom.liquid
template. If the value is null
, then the collection is using the default collection.liquid
.
The name of the collection. (limit: 255 characters)
The date and time (ISO 8601 format) when the collection was last modified.
The Collection resource
Anchor to GET request, Retrieves a single collectiongetRetrieves a single collection
Retrieves a single collection
Show only certain fields, specified by a comma-separated list of field names.
Retrieve a specific collection by its ID
Retrieve a specific collection by its ID
/admin/api/2025-07/collections/841564295. json
Response
Anchor to GET request, Retrieve a list of products belonging to a collectiongetRetrieve a list of products belonging to a collection
Retrieve a list of products belonging to a collection. Note: This endpoint implements pagination by using links that are provided in the response header. To learn more, refer to Make paginated requests to the REST Admin API.. The products returned are sorted by the collection's sort order.
The number of products to retrieve.
Retrieve a list of products belonging to a collection
Retrieve a list of products belonging to a collection