This guide contains a detailed explanation of all the Parameters used with the different Recommendations and Pathways APIs.
Common API Parameters
These parameters are available for all Recommendations and Pathways APIs regardless of the type of API.
(What the parameter is)
(Why the parameter is needed)
(How you can obtain its value)
|_br_uid_2||A first-party cookie created by the Bloomreach tracking pixel library (BrTrk).|
|This cookie creates a unique, anonymous identifier for every browser or device.||Mostly the default value provided is used, which is already encoded.|
|account_id||Your site's numerical Bloomreach account ID.|
|This ID is required to uniquely identify your account.||Your Bloomreach representative gives your site's account ID to you before or during your integration kickoff meeting.|
|url||The absolute URL of the page where the request is initiated. Do not use a relative URL.|
|To identify the origin of the request.||Use the absolute URL of the page.|
|ref_url||URL or the page from where your visitor came to your site.|
|Required if you want to use Targeting. Helps to track the journey.||Fetch the URL of the page as you desire.|
|domain_key||The site version's domain ID is for the domain where you want to receive your Bloomreach API requests.|
|This parameter identifies the specific site version when one account ID hosts multiple site versions with unique characteristics, such as language versions.||Provided by your Bloomreach representative while scoping and integration.|
|view_id||A unique identifier for a specific view of your product catalog.|
|If you have multiple versions of your site, each with their own product catalog characteristics like product titles and prices, then add view_id to your call.|
Bloomreach uses your view_id parameter value to display the right product information for your customers based on their individual site views.
|view_id for different views are decided by Bloomreach and the customers when scoping during the integration process.|
|request_id||An ID to track site visitor clicks. Bloomreach doesn't automatically enforce any requirements for this parameter.|
For example, you can enter "test" as your value for each instance of the request_id parameter without triggering an error message. However, using a unique value allows us to help you if you encounter a problem.
|It helps track the APIs.||It is recommended that you generate unique, random values of 13 digits to enable click-tracking.|
|widget_id||It’s a unique identifier assigned to widgets when they are created on the Widget Configurator.|
|This parameter is used to identify a specific widget while consuming the widget APIs.||The ID of the widget, which can be found in the Widget Configurator in the Dashboard.|
|fields||A comma-separated list of fields to be sent in the request.|
Alternatively, you may configure the fields in the Widget Configurator in the Dashboard instead. This parameter is required if not sent via the Dashboard.
|Only the attributes passed in the fields parameter will be returned in the doc section of the response.||Attributes must be enabled and mapped by Bloomreach.|
|rows||The number of matched items to return per results page in the API response.|
|To allow pagination and manageable results.||Determined by the user as per need. To enhance performance, limit this value to the number of items that you think is reasonable for a single page of search results.|
|filters||The filter parameter applies a faceted filter to the returned products, searching for products that fit your parameter values. You can also filter results based on numeric ranges.|
To provide multiple filters, send multiple filter parameters.
|To narrow down and get more specific results.||Any facet that you want to filter must be in your feed.|
Attributes must be enabled and mapped by Bloomreach. Let your Bloomreach representative know which attributes in your content feed you want to apply as filters to search results.
|user_id||The universal customer ID of the user (visitor). 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. In this way, Bloomreach recognizes users in a way that's aligned with your system.||Decided and shared by you. Use an anonymous string. Don't use email or other personally identifiable information.|
API Specific Parameters
These parameters are only available for selected Recommendations and Pathways APIs. The ones which they can be used with is also mentioned in the table.
(What the parameter is)
(Why the parameter is needed)
(How you can obtain its value)
Available for which API(s)
|context_id||context_id takes a single product ID for producing Context-based merchandising results for the widget.|
Note: In case a context_id is not provided, the system will use Item ID(s) to produce Contextual Merchandising results for the widget.
You can find more information on the Contextual Merchandising Feature in its guide.
|Contextual Merchandising uses Context ID as a primary input for generating the recall set of the widget results.|
It is highly recommended to pass a context_id whenever a contextual attribute rule is added for a better widget recall set and performance.
In the event that not enough results are produced based on context_id, the system depends on Item ID(s) as a fallback to fill the recall set of the widget.
|Present in the feed for each item.|
Choose the ID of the item you want to use for influencing contextual recommendations.
|filter_facet||It 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.|
Single filter with multiple values:
Multiple filters on different attributes:
|With the filter parameter, after a user selects a facet value for filtering, the other facet values in that field are not returned by the API and are no longer visible. The filter_facet parameter allows other facet values to be returned after a facet value has been selected.||Attributes must be enabled and mapped by Bloomreach.|
You can then apply the facet filter when needed.
|facet||A boolean for enabling/disabling facets in the response.||Facets are disabled by default. This parameter is used to enable them.||To enable facets, set |
|cat_id||Unique ID of the Category present in the feed and pixel.|
|For identifying, querying and operating on categories if using a category-based API.||Category ID for each Category is defined in the feed and pixel.|
|item_ids||Specifies access to a particular set of items. For product catalog, this would be the PID(s).|
|Used to uniquely identify an item for item-based operations.||Present in the feed for each item.|
|query||Your site visitor's search query. Search queries are composed of one or more terms.|
Example: "white sneakers".
|To use the query for operations that rely on the user's input.||Query string that is entered by the visitor.|
|segment||segment allows you to rank search results based on segment data to serve different experiences to different segments of users.|
See the Relevance by Segment feature for more details on segments.
|Ranking happens only among items within that segment.|
More information on the segment parameter can be found here.
|The Relevance by Segment feature must be enabled on your account by Bloomreach. If you would like to enable this feature, please consult your DXM or Business Services Consultant.|
Example - view_id:ie
|Email Recommendation APIs:|
|start||The number of the first item on a page of results. For example, the first item on the first page is 0, making the start value also 0. The maximum value is 10000.|
|Helps with pagination of results.||You can decide the value as per need.||All Email Recs APIs except Item-based|
|sort||Sorts results based on the field value in ascending, descending, or another combination of orders. You can sort any field.|
Example: sort=sale_price desc sorts in descending order of the sale price.
|To get ordered results by default, rather than ordering them on your end in your site's logic.||Value is a field name, followed by asc/desc for ascending/descending order respectively.||Email Recommendation APIs:|