Skip to main content
Glama
recommendations.md1.24 kB
# Recommendations Object ## Overview The `recommendations` object provides product suggestions based on sales data, product descriptions, and collection relationships. These recommendations improve in accuracy as more order and product data accumulates. **Important:** This object only returns products when rendered through the [Product Recommendations API](https://shopify.dev/api/ajax/reference/product-recommendations) and [Section Rendering API](https://shopify.dev/api/section-rendering). ## Properties ### intent **Type:** string The recommendation intent value. Returns `nil` if `performed?` is `false`. ### performed? **Type:** boolean Indicates whether the section was rendered using both the Product Recommendations API and Section Rendering API. Returns `true` when conditions are met, `false` otherwise. ### products **Type:** array of [product](https://shopify.dev/docs/api/liquid/objects/product) An array containing the suggested products. If `performed?` is `false`, an EmptyDrop is returned instead. ### products_count **Type:** number The total number of suggested products. Returns `0` if `performed?` is `false`. ## Example ```json { "products": [], "products_count": 4, "performed?": true } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server