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: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.includeFacetRanges is true then an object with keys of the facet attribute code and value is an object with min/max.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 sessionSimilar 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
404 - Block not found
404 - Unable to get products
401 - Unauthorized