- 26 Apr 2024
- 1 Minute to read
Mixed Strategy
- Updated on 26 Apr 2024
- 1 Minute to read
Overview
This algorithm creates a customized and mixed recommendation strategy using different recommendation types. It is a way of using different algorithms for each slot of the Recommendation Widget. The mixed strategy allows you to use multiple algorithms in a single recommendation widget on your website. It works best on main and category pages.
Endpoint
Query Parameters
Parameter | Sample Value | Description | Data Type | Required |
---|---|---|---|---|
partnerName | mybrand | Partner Identifier which is assigned by Insider. You can use PartnerID as well. | String | Yes |
locale | us_US | Locale of requested product catalog. | String | Yes |
platform | web | Requested platform. Web comes by default. | Enum | No |
currency | USD | Requested currency of the products. If no value is set, the default currency in your settings is used. | String | Yes |
size | 50 | Required number of items in response. Valid values are 0 to 100. | Integer | No |
categoryList | [“Clothes”, “Skirts”] | Category filter of the products | Array (of string) | No |
filter | Smart Recommender filtering. There can be more than one filter parameter. | String | No | |
details | true | Adds details to the products of the response. | Boolean | No |
shuffle | false | Shuffles the products of the response. | Boolean | No |
getGroupProducts | false | Shows variant products under the products of the response. | Boolean | No |
groupProductsFields | Adds these fields to the variant products’ details. | String | No | |
excludeVariants | true | Exclude variants from response. | Boolean | No |
strategy | [“ub”, “vtv”, “mvop”] | List of strategies. | String | Yes |
Strategy
Strategy is used to specify the desired recommendation types and sizes. Strategies are given within an array. Each strategy is an object that contains the keys recommendationType and size. recommendationType indicates the type of recommendation required, while size specifies the quantity needed.
[
{
"recommendationType": "ub",
"size": 2
},
{
"recommendationType": "btb",
"size": 2
},
...
]
List of Strategies
Algorithm | Abbreviation |
---|---|
Chef | chef |
Complementary Products | cp |
Highest Discounted | hdop |
Highest Discounted of Category | hdoc |
Location Based Top Sellers | mpol |
Manual Merchandising | mm |
Most Popular | mvop |
Most Popular of Category | mvoc |
Most Valuable Products | mvpop |
Most Valuable Products of Category | mvpoc |
New Arrivals | naop |
New Arrivals of the Category | naoc |
Viewed Together | vtv |
Purchased Together | btb |
Purchased with Last Purchased | lpt |
Substitute Products | sp |
Top Sellers | mpop |
Top Sellers of Category | mpoc |
Trending Products | tpop |
Trending Products of Category | tpoc |
User Based | ub |
Viewed Together | vtv |
Sample Example
Sample Request
GET https://recommendation.api.useinsider.com/v2/mixed?locale={Locale}¤cy={Currency}&partnerName={PartnerName}&strategy=[{%22recommendationType%22%3A%22hdop%22%2C%22size%22%3A2}]
Sample Response
{
"success": true,
"total": 2,
"types": {
"hdop": 2
},
"data": [
"XYZ-987789",
"ABC-123321"
]
}
Fallback Algorithms
Fallback algorithms are determined by your strategy selections.