younifyd
Menu

Item-based widget

Item-based widget

GET/item/{widget_id}

Use it in a workflow

  1. Add a step and choose the Bloomreach Discovery connector.
  2. Pick the Item-based widget action (under Recommendations & Pathways).
  3. Fill in the fields below, then reference the result from later steps as {{itemBasedWidget.response.data}}.

Request

Path parameters

widget_idstringrequired

The ID of the widget, which can be found in the [Widget Configurator](https://documentation.bloomreach.com/discovery/docs/widget-configurator) in the Dashboard. The example value shown here, <i>1jwy7eg9</i>, is included for your convenience to send a request with <b>Try It</b>.

Default "1jwy7eg9"

Query parameters

_br_uid_2stringrequired

A first-party cookie created by the {user.br} tracking pixel library (BrTrk). This cookie creates a unique, anonymous identifier for every browser or device. Use the default value provided, which is already encoded.

Default "uid%3D7797686432023%3Av%3D11.5%3Ats%3D1428617911187%3Ahc%3D55"

item_idsstringrequired

Specifies access to a particular set of items. For the product catalog, this would be the PID(s). The example value shown here, <i>61d87251460d4a01f7c82608</i>, is included for your convenience to send a request with <b>Try It</b>.

Default "61d87251460d4a01f7c82608"

request_idstringrequired

An ID to track site visitor clicks. We recommend that you generate unique, random values of 13 digits to enable click-tracking. The `request_id` is also important for debugging.

Default "abh3kjh1kjnd8"

urlstringrequired

The absolute URL of the page where the request is initiated. Don't use a relative URL. The example value shown here, <i>https://www.documentation-site.com</i>, is included for your convenience to send a request with <b>Try It</b>.

Default "https://www.documentation-site.com"

ref_urlstring

The URL of the page or HTTP referrer where the request is started. Required if you want to use [Targeting](https://documentation.bloomreach.com/discovery/docs/targeting).

fieldsstring

A comma-separated list of fields to be sent in the request. Alternatively, you may configure the fields in the [Widget Configurator](https://documentation.bloomreach.com/discovery/docs/widget-configurator) in the Dashboard instead. This parameter is required if not sent via the Dashboard.

filterstring

The filter parameter applies a faceted filter to the returned products, searching for products that fit your parameter values. Any facet that you want to filter must be in your feed. Attributes must be enabled and mapped by {user.br}. Let your {user.br} representative know which attributes in your content feed you want to apply as filters to search results. You can filter results based on numeric ranges. For example, `&filter=(price:["100" TO "*"])`. Note that a negative filter on ranges isn't supported. To provide multiple filters, send multiple filter parameters. For example, `&filter=(price:["*" TO "100"])&filter=(color_groups: ("blue"))`.

content_injectionboolean

This parameter enables the [Personalized media in grid](https://documentation.bloomreach.com/discovery/docs/personalized-media-in-the-grid) feature. <br>If `true`, the API response includes media objects along with product results. The content and positions of the media objects are governed by the [assets and media rules](https://documentation.bloomreach.com/discovery/docs/assets-and-media-rules) configured in the {user.br} dashboard.

rowsinteger (int32)

The number of matching items to return per results page in the API response. The maximum value is 200. The result size is used from the Dashboard if it isn't sent in the API. To enhance performance, limit this value to the number of items that you think is reasonable for a single page of search results.

view_idstring

A unique identifier for a specific view of your product catalog. If you have multiple versions of your site, each with its own product catalog characteristics like product titles and prices, then add `view_id` to your call. {user.br} uses your `view_id` parameter value to display the right product information for your customers based on their individual site views. You can enter any string value to identify the specific site catalog view. This string must be consistent in your pixel, API, and product catalog.

context_pidsstring

`context_pids` takes a single product ID for producing Context-based merchandising results for the widget. Contextual Merchandising uses Context PID as a primary input for generating the recall set of the widget results. If not enough results are produced based on `context_pids`, the system depends on Item ID(s) as a fallback to fill the widget's recall set. <b>Note: </b>In case `context_pids` isn't provided, the system will use Item ID(s) to produce Contextual Merchandising results for the widget. You can find more information on Contextual Merchandising in [the feature guide](https://documentation.bloomreach.com/discovery/docs/contextual-merchandising).

Default "61d87251460d4a01f7c82608"

user_idstring

The universal customer ID of the user. You only need to pass this field if your particular integration tracks customers this way. The parameter captures user IDs from the customer side and reuses the information when powering apps or enhancing cross-device linking. This way, {user.br} recognizes users in a way that's aligned with your system. Use an anonymous string. Don't use email or other personally identifiable information.

Need more? See the Bloomreach Discovery guide for connection setup and behaviour shared by every action.

Was this page helpful?