Highest Discounted Products

Prev Next

The Highest Discounted Products algorithm recommends products based on their discount ratios, prioritizing those with higher discounts. It calculates the discount ratio for each product using the original and discounted prices. Recommended products will be sorted from the highest discount to the lowest for the given size. For each currency type, the discount ratio is calculated separately. This type of algorithm works best on main and category pages.

Endpoint

GET https://recommendation.api.useinsider.com/v2/highest-discounted

Query Parameters

ParameterSample ValueDescriptionData TypeRequired
partnerNamemybrandPartner Identifier assigned by Insider. You can use PartnerID as well.StringYes
localeus_USLocale of requested product catalog.
StringYes
platformwebRequested platform. Web comes by default.EnumNo
currencyUSDRequested currency of the products. If no value is set, the default currency in your settings is used.StringYes
userIda1b2c3d4User identifier which is assigned by Insider.StringNo
hpfalse, true, or 1, 0Makes affinities affect products of the response. The default is false.
BooleanNo (Can only be used with userId)
size
50Required number of items in response. Valid values are 0 to 100.
IntegerNo
categoryList
[“Clothes”, “Skirts”]
Category filter of the productsArray (of string)
No
filter
Smart Recommender filtering. There can be more than one filter parameter.
StringNo
detailstrueAdds details to the products of the response.BooleanNo
shufflefalseShuffles the products of the response.BooleanNo
getGroupProductsfalseShows variant products under the products of the response.
BooleanNo
groupProductsFields

Adds these fields to the variant products’ details.
StringNo
excludeVariants
trueExclude variants from the response.
BooleanNo
excludeViewDay
30After how many days viewed products should be excluded. The default is -1.
IntegerNo (Can only be used with userId)
excludeViewItem
10How many viewed products should be excluded. The default is -1.
IntegerNo (Can only be used with userId)
excludePurchaseDay
30After how many days purchased products should be excluded. The default is -1.
IntegerNo (Can only be used with userId)
excludePurchaseItem
10How many purchased products should be excluded. The default is -1.
IntegerNo (Can only be used with userId)
productIdABC123CBACurrent product IDStringNo
If you want to get top sellers products from the category or categories you want, you should specify either categoryList or category and subCategory.

Sample Request

The sample below displays a request for the Highest Discounted Products; the algorithm recommends products based on their discount ratios, prioritizing those with higher discounts.

GET https://recommendation.api.useinsider.com/v2/highest-discounted?partnerName={Partner Name}&locale={Locale}&size=5&currency={Currency}

Sample Response

{
    "success": true,
    "total": 5,
    "types": {
        "hdop": 5
    },
    "data": [
        "AB76543",
        "AB54321",
        "YZ76543",
        "AB49876",
        "AB01234"
    ]
}

Fallback Algorithms

If the products from the Highest Discounted Products are not enough to fill the response data, some fallback algorithms below fill it:

  • Highest discounted products of the category without excluding the right-most item in the categoryList