Trending Products

Prev Next

The Trending Products algorithm recommends items using a scoring system. It scores items based on weekly view and purchase information to determine this week's trending items compared to those in the previous week. This type of algorithm works best on the main and category pages.

Endpoint

GET https://recommendation.api.useinsider.com/v2/trending

Query Parameters

ParameterSample ValueDescriptionData TypeRequired
partnerNamemybrandPartner Identifier assigned by Insider One. You can use PartnerID as well.StringYes
localeus_USLocale of requested product catalogStringYes
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
size50Required 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 responseBooleanNo
shufflefalseShuffles the products of the responseBooleanNo
getGroupProductsfalseShows variant products under the products of the responseBooleanNo
groupProductsFields
Adds these fields to the variant products’ detailsStringNo
excludeVariantstrueExclude variants from the responseBooleanNo
userIdtestUserUser identifier which is assigned by Insider One.
StringNo
hptrue, false or 0, 1Makes affinities affect products of the response. The default is false.BooleanNo
excludeViewDay30After how many days viewed products should be excluded. The default is -1.IntegerNo (Can only be used with userId)
excludeViewItem10How many viewed products should be excluded. The default is -1.IntegerNo (Can only be used with userId)
excludePurchaseDay30After how many days purchased products should be excluded. The default is -1.IntegerNo (Can only be used with userId)
excludePurchaseItem10How many purchased products should be excluded. The default is -1.IntegerNo (Can only be used with userId)
productIdABC123CBACurrent product IDStringNo

Sample Request

The sample below displays a request to Trending Products, an algorithm that recommends items using a dynamic scoring system.

GET https://recommendation.api.useinsider.com/v2/trending?partnerName={partnerName}&locale={Locale}&currency={currency}&size=2

Sample Response

{
    "success": true,
    "total": 2,
    "types": {
        "tpop": 2
    },
    "data": [
        "ASD-4983",
        "TYU-3451"
    ]
}

Fallback Algorithms

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

  • Trending products of the category without excluding the rightmost item in the categoryList.