---
title: Product Recommendations response
slug: product-recommendations/docs/recommendations-response-1
docTags: 
createdAt: 2026-07-30T20:41:31.037Z
---

If Optimizely Product Recommendations were configured by Optimizely for a page being tracked, a list of product recommendations is returned in the message.

The contents are returned in the `smartRecs` element at the root of the JSON response. The element contains product recommendations generated by the Optimizely recommendations engine. These product recommendations are grouped by widget.

The value of `smartRecs` is a list of recommendation widget elements. These elements have the following properties.

|           | Name     |      |            |           | Description and usage                                                                                                                                                           |
| --------- | -------- | ---- | ---------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| smartRecs |          |      |            |           |                                                                                                                                                                                 |
|           | widget   |      |            |           | \[String]<br />Name of the widget.<br />Use for information only; it may vary during A/B testing. To determine where to place a widget on the page, use the position attribute. |
|           | alias    |      |            |           | \[String]<br />Alias of the widget.<br />Use for information only.                                                                                                              |
|           | position |      |            |           | \[String]<br />Name of the page position for this widget.<br />Use to determine the page position in which to show this widget.                                                 |
|           |          | recs |            |           | A list of recommendations.                                                                                                                                                      |
|           |          |      | img        |           | \[String]<br />URL of the product image.                                                                                                                                        |
|           |          |      | title      |           | \[String]<br />Product title.                                                                                                                                                   |
|           |          |      | url        |           | \[String]<br />URL to the item's product page.                                                                                                                                  |
|           |          |      | refCode    |           | \[String]<br />Product reference code.                                                                                                                                          |
|           |          |      | prices     |           | A map in which the key is the currency name (such as USD, GBP, and so on) and the value is a map with unitPrice and salePrice properties.                                       |
|           |          |      |            | unitPrice | \[Number]<br />The price per unit of the item.                                                                                                                                  |
|           |          |      |            | salePrice | \[Number]<br />The sale price of the item.                                                                                                                                      |
|           |          |      | id         |           | \[64-bit Number]<br />Optimizely recommendation ID.                                                                                                                             |
|           |          |      | attributes |           | A list of attributes and their values.<br />Attributes required in the request. See [Recommendations configuration](docId\:fV_6JvWOu44Y28_P5svVU).                              |

To configure output details for the recommended product in the request, use the `recContent` request parameter.
