Anchor to section titled 'undefined'

productRecommendations
query

Find recommended products related to a given product_id. To learn more about how recommendations are generated, see Showing product recommendations on product pages.


The recommendation intent that is used to generate product recommendations. You can use intent to generate product recommendations on various pages across the channels, according to different strategies.

The handle of the product.

The id of the product.


Was this section helpful?

Anchor to Product
Product
Access requirements

A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be. For example, a digital download (such as a movie, music or ebook file) also qualifies as a product, as do services (such as equipment rental, work for hire, customization of another product or an extended warranty).


Was this section helpful?

Examples

Hide code
DescriptionCopy
query productRecommendations($productId: ID!) {
  productRecommendations(productId: $productId) {
    id
  }
}
Hide code
Response
JSON
{
  "productRecommendations": [
    {
      "id": "gid://shopify/Product/538825261"
    },
    {
      "id": "gid://shopify/Product/263071856"
    },
    {
      "id": "gid://shopify/Product/65721165"
    }
  ]
}