Retrieve product recommendations for a specific block based on its configured strategy and rules.
<YOUR_LAYERS_TOKEN>."8234567890123")"456789012345") or collection handle (e.g., "summer-collection"). The system automatically resolves both numeric IDs and string handles.context.productsInCart instead)anchor_id instead. For collection anchors, anchor_id now accepts both collection IDs and handles.id, title, handle, body_html, vendor, product_type, tags, images, available, created_at, updated_at, published_at, price_range, options, original_options, metafields, named_tags, calculated, category, featured_media, is_gift_card, has_variants_that_require_components, combined_listing_parent_product_id, combined_listing_role, first_or_matched_variant, and variants. See the Product Schema for detailed descriptions."vendor", "options.Size") and wildcard patterns (e.g., "options.*", "metafields.product.*").Wildcard patterns expand to all matching attribute codes. For example, "options.*" expands to all option facets like "options.Size" and "options.Color". Wildcards must match at least one attribute code to be valid.Examples:totalResults and the requested page size. When a maximum products safeguard is configured, this reflects the capped total. When variant breakouts are enabled, the calculation is based on tile count.limit parameter from the request).retrieveFacetCount is true then an object with keys and values of the specified attributes. When variant breakouts are enabled, facet counts reflect tile counts rather than product counts. Empty values and literal "null" strings are automatically excluded from facet results.includeFacetRanges is true then an object with keys of the facet attribute code and value is an object with min/max.true when the block’s interaction strategy data is still being computed. In this state, the primary block returns empty results and the fallback chain is used instead. Once the strategy data is ready, this field is no longer included in the response.Product Anchor
anchor_id (product ID) or context.productsInCart with product information.Common strategies:Collection Anchor
anchor_id which can be either a collection ID or collection handle. The collection is resolved dynamically from the API request.Common strategies:Cart Anchor
context.productsInCart to find related products.Common strategies:None Anchor
Interaction Strategies
frequently_bought_together: Products purchased together in the same ordercustomers_also_viewed: Products viewed together in the same sessioncustomers_also_added_to_cart: Products added to cart together in the same session_training flag set to true. In this state, the fallback chain is used automatically. Once the data is ready, the block returns recommendations normally.Collection Interaction Strategies
browsed_then_bought: Products frequently purchased by shoppers who browsed the collectionbrowsed_then_viewed: Products frequently viewed by shoppers who browsed the collectioncollection_trending: Products currently trending within the collection based on recent activitySimilar Products
similar_products: Products with similar embeddings based on images and textManual Strategy
anchor_id parameter in the API requestApply Filter
Hide Block
Change Strategy
Override Safeguards
totalResults accounts for deduplication across all sources.404 - Block not found
404 - Unable to get products
401 - Unauthorized