Menu
Get bestseller products
Get bestseller products
/Use it in a workflow
- Add a step and choose the Bloomreach Discovery connector.
- Pick the Get bestseller products action (under Bestsellers).
- Fill in the fields below, then reference the result from later steps as
{{getBestsellerProducts.response.data}}.
Request
Query parameters
_br_uid_2stringrequiredA first-party cookie created by the {user.br} tracking pixel library (BrTrk). This cookie creates a unique, anonymous identifier for every browser or device. <br><br> Use the default value provided, which is already encoded.
Default "uid%3D7797686432023%3Av%3D11.5%3Ats%3D1428617911187%3Ahc%3D55"
callbackstringIndicates whether to return data wrapped in the function for cross-origin requests. <br><br> For server-side requests, use the value **br_server**. For native-app requests, use the value **br_app**.
One ofbr_serverbr_app
flstringrequiredThe attributes that you want returned in your API response, such as product IDs and prices. <br><br> All fl parameters for Bestseller requests must include **pid** as one of their values. Any attribute from your product feed may be used as a value for fl. <br><br> Multiple values should be comma separated, such as **fl=pid,price**.
Default "pid,url,description"
fqstringThe fq parameter applies a faceted filter to the returned products, searching for products that fit your parameter values. <br><br> Any facet that you want to filter must be in your feed. Read more about using the fq parameter in the "Simple Filtering" section in the [Faceting and filtering page](ref:faceting-and-filtering). <br><br> You can [configure Attributes](doc:understanding-feed-configuring-attributes) from the Catalog Management Tab. Configure which attributes in your content feed you want to apply as filters to search results.
ref_urlstringrequiredThe URL of the page or HTTP referrer where the request is started.
Default "https://example.com"
request_idstringrequiredAn ID to track site visitor clicks. We recommend that you generate unique, random values of 13 digits to enable click-tracking. <br><br> {user.br} doesn't automatically enforce the 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.
Default 1703497216731
request_typestringrequiredThe type of API request. Value should be **search** for Bestseller requests.
One ofsearchDefault "search"
rowsinteger (int32)requiredThe number of matching items to return per results page in the API response. The maximum value is 200. <br><br> To enhance performance, limit this value to the number of items that you think is reasonable for a single page of search results.
search_typestringrequiredThe type of search. Value should be **bestseller** for Bestseller requests.
One ofbestsellerDefault "bestseller"
startinteger (int32)requiredThe 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. <br><br> The maximum value is 10000.
Default 0
titlestringThe title or name of the product.
urlstringrequiredThe absolute URL of the page where the request is initiated. Do not use a relative URL.
Default "https://www.documentation-site.com"
user_idstringThe 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. In this way, {user.br} recognizes users in a way that's aligned with your system. <br><br> Use an anonymous string. Don't use email or other personally identifiable information. <br><br> If you do not track users this way, then omit this field.
view_idstringA 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. <br><br> {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.
Need more? See the Bloomreach Discovery guide for connection setup and behaviour shared by every action.