---
title: "productRecommendations"
description: "Recommended product query"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/products/queries/product-recommendations'
  md: 'https://developer.shopline.com/docs/storefront-api/products/queries/product-recommendations.md'
---
# productRecommendations

Recommended product query

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Type Signature

`[Product]`

## Arguments

* `id`

  [ID!](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  Product ID

## Returns

* `availableForSale`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Indicates whether at least one variant is available for sale

* `~~brand~~`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The product’s vendor name. [Deprecated]

* `collections`

  [CollectionConnection](https://developer.shopline.com/docs/storefront-api/products/objects/collection-connection.md)

  List of collections a product belongs to.

* `compareAtPriceRange`

  [ProductPriceRange](https://developer.shopline.com/docs/storefront-api/products/objects/product-price-range.md)

  The compare at price of the product across all variants.

* `createdAt`

  [Date](https://developer.shopline.com/docs/storefront-api/common/scalars/date.md)

  The date and time when the product was created.

* `descriptionHtml`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The description of the product, complete with HTML formatting.

* `featuredImage`

  [Image](https://developer.shopline.com/docs/storefront-api/common-objects/objects/image.md)

  The featured image for the product.
  
  :::tip{title="tip"}
  This field is functionally equivalent to `imagesV2(first: 1)`.
  :::

* `handle`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  A human-friendly unique string for the Product automatically generated from its title. 

* `id`

  [ID!](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  A globally-unique ID.

* `images`

  [[Image]](https://developer.shopline.com/docs/storefront-api/common-objects/objects/image.md)

  List of images associated with the product.

* `onlineStoreUrl`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The URL used for viewing the resource on the shop's Online Store. Returns null if the resource is currently not published to the Online Store sales channel.

* `options`

  [[ProductOption]](https://developer.shopline.com/docs/storefront-api/products/objects/product-option.md)

  List of product options.

* `priceRange`

  [ProductPriceRange](https://developer.shopline.com/docs/storefront-api/products/objects/product-price-range.md)

  The price range.

* `~~status~~`

  [ProductStatus](https://developer.shopline.com/docs/storefront-api/products/enums/product-status.md)

  The product’s status. [Deprecated]

* `templatePath`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The product is in the theme template path

* `title`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The product’s title.

* `totalInventory`

  [Int](https://developer.shopline.com/docs/storefront-api/common/scalars/int.md)

  The total quantity of inventory in stock for this Product.

* `totalVariants`

  [Int](https://developer.shopline.com/docs/storefront-api/common/scalars/int.md)

  The total number of product variants

* `updatedAt`

  [Date](https://developer.shopline.com/docs/storefront-api/common/scalars/date.md)

  The date and time when the product was last modified. A product's `updatedAt` value can change for different reasons. For example, if an order is placed for a product that has inventory tracking set up, then the inventory adjustment is counted as an update.

* `variants`

  [[ProductVariant]](https://developer.shopline.com/docs/storefront-api/products/objects/product-variant.md)

  List of the product’s variants.

* `vendor`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The product’s vendor name.

## Code Example

```graphql
 {
	productRecommendations(id ) 
		 {
			# Product fields
		}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

