HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


The Optimizely Recommendations API returns a list of product recommendations in the message.

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

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

(Script tags will be stripped)


In the request, you can configure the output details of the recommended product by the `recContent` request parameter.

## Response examples

The following example shows three product recommendations returned for one widget with full product details, which is the default behavior when `recContent` is omitted or has value _full_:



This is the returned result when `recContent` property is set to `refCodeOnly`: