---
title: "Retrieve recommendations by collection"
method: GET
path: "/v1/browse/collection_id/{collection_id}"
tags: ["Offsite Discovery results"]
---

# Retrieve recommendations by collection

`GET /v1/browse/collection_id/{collection_id}`

Retrieve AI-optimized products from a specified collection

## Path parameters

- `collection_id` string, required — The unique identifier of the collection containing the product set.

## Query parameters

- `key` string, required — The key of the index to use.
- `campaign_id` string, required — Email campaign identifier for tracking and analytics.
- `filters` union — Any number of filtering criteria used to narrow the result set, such as `color=blue` or `group_id=sandals` or `price=100-200`. Facets, item groups and collection IDs can be used as filters. If `filter_value` has the form `<min>-<max>`, it is interpreted as a range. Filters with the same key are ORed together and filters with different keys are ANDed together by default. Only results that match the filters are returned. Boolean values are serialized with the first letter capitalized (e.g., `True` / `False`) as a convention.
  - object
  - object
- `filter_name` string — **DEPRECATED. Please, use 'filters' instead**. Name of the product attribute to filter by (e.g., brand, category, color). Must be provided together with `filter_value`.
- `filter_value` string — **DEPRECATED. Please, use 'filters' instead**. Value to filter the specified attribute by. Must be provided together with `filter_name`.
- `num_results` integer — The maximum number of collection items to retrieve.
- `sort_by` string — The method to sort results by. The default value `relevance` sorts by Constructor's attractiveness & personalization algorithms and is reserved. Alternative sort criteria can be configured using the [sort options](https://docs.constructor.com/reference/v1-sort-options-create-or-replace-sort-options)
- `sort_order` 'ascending' | 'descending' — The sort order for results: ascending (low to high) or descending (high to low).
- `c` string — The ID of the client and version that the request is coming from, such as `cio-js-2.90`.
- `us` union — User segment is a client context value (such as platform, location, etc.) that is used to evaluate redirect or refined tag rules. You can supply multiple segments by passing multiple `us` arguments.
  - string[]
  - string
- `ui` string — Unique identifier for the user to personalize recommendation results.
- `base_url` string — Base URL used to construct the product detail page redirect URL (e.g., 'https://example.com').

## Response `200`

OK. A list of products from a specified collection.

- ResultSchema[]
  - `data` Data, required — Core product data containing essential fields. Additional customer-specific fields may be present in actual API responses based on configuration, but are not documented here for privacy and simplicity.
    - `id` string, required — The unique identifier for the product (maps to item_id in some contexts).
    - `variation_id` string — The unique identifier for the product variation, if applicable.
    - `url` string, url — URL for the product detail page.
    - `image_url` string, url — URL for the product's primary image.
  - `value` string — The name or title of the product (corresponds to item_name from OpenAPI example).
  - `strategy` RecommendationStrategy
    - `id` string, required — The unique identifier for the recommendation strategy.
  - `labels` ProductLabels — Product labels for sponsored listing and retail media information.
    - `is_retail_media` boolean — Indicates whether the product is a sponsored item.
    - `sl_campaign_id` string — The unique identifier for the sponsored listing campaign.
    - `sl_campaign_owner` string — The owner or advertiser of the sponsored listing campaign.

## Other responses

- `400` — Bad Request - Invalid syntax or missing required parameters.
- `404` — Not Found - The requested collection ID could not be found.
- `500` — Internal Server Error - An unexpected error occurred on the server.

---

[API](https://skmtc.dev/constructor/apis/autocomplete.md) · [All operations](https://skmtc.dev/constructor/apis/autocomplete/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/constructor/autocomplete/revisions/2d33330633b6/schema)
