---
title: "Retrieves a list of products of a collection."
method: GET
path: "/admin/products/collections.json"
tags: ["Product"]
---

# Retrieves a list of products of a collection.

`GET /admin/products/collections.json`

## Request body

- HandlersProductRequest
  - `collection_id` integer — Filter results by product collection ID.
  - `created_at_max` string — Show products created before date. (format: 2014-04-25T16:15:47-04:00)
  - `created_at_min` string — Show products created after date. (format: 2014-04-25T16:15:47-04:00)
  - `limit` integer — Return up to this many results per page. (default: 50, maximum: 250).
  - `page` integer — Using for pagination. (default: 1).
  - `published_at_min` string — Show products published after date. (format: 2014-04-25T16:15:47-04:00)
  - `published_status` string — Return products by their published status. (default: any), published: Show only published products. unpublished: Show only unpublished products. any: Show all products.
  - `since_id` integer — Restrict results to after the specified ID.
  - `sort_order` string — Order which is used to arranging items. (valid orders: alpha-asc, alpha-desc, created-asc, created-desc, price-asc, price-desc)
  - `title` string — Filter product by title
  - `updated_at_max` string — Show products last updated before date. (format: 2014-04-25T16:15:47-04:00)
  - `updated_at_min` string — Show products last updated after date. (format: 2014-04-25T16:15:47-04:00)

## Response `200`

OK

- ProductsByCollectionSwaggerResponse
  - `products` GitlabProduct[]
    - `body_html` string — A description of the product. Supports HTML formatting.
    - `can_preview` boolean — This product can be previewed by personalize tool or not
    - `created_at` integer — Created at time
    - `custom_options` string — The schema to generate custom option form fields
    - `handle` string — A unique human-friendly string for the product. Automatically generated from the product's `title`. Used by the Liquid templating language to refer to objects.
    - `id` integer — A unique numeric identifier for the product. Each id is unique across the ShopBase system. No two products will have the same id, even if they're from different shops.
    - `metafields_global_description_tag` string — A description of the product used for SEO purposes. Generally added to the <meta name='description'> tag.
    - `metafields_global_title_tag` string — The name of the product used for SEO purposes. Generally added to the <meta name='title'> tag.
    - `product_availability` integer — 1. Available in all channels 2. Hide from the sitemap.txt 3. Hide from online store listing pages (homepage, collection pages, search page,...) 0. Hide from all channels
    - `product_type` string — A categorization for the product used for filtering and searching products.
    - `published` boolean — Published or not
    - `published_at` integer — The date and time (ISO 8601 format) when the product was published. Can be set to null to unpublish the product from the Online Store channel.
    - `tags` string — A string of comma-separated tags that are used for filtering and search. A product can have up to 250 tags. Each tag can have up to 255 characters.
    - `title` string — The name of the product.
    - `updated_at` integer — Updated at time
    - `vendor` string — The name of the product's vendor.
  - `total` integer

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
