Substitute Products

Prev Next

The Substitute Recommendation algorithm provides users with suggestions for products that can serve as replacements for items they have interacted with. The goal is to enhance user satisfaction and engagement by presenting products that align with their functional preferences and interests. This algorithm generates recommendations based on factors such as product name similarity, view-to-view statistics, and view-to-purchase statistics.

Endpoint

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

Query Parameters

ParameterSample ValueDescriptionData TypeRequired
partnerNamemybrandPartner Identifier assigned by Insider. You can use PartnerID as well.StringYes
localeus_USLocale of the 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
userIdtestUser
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.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 Substitute Recommendation, an algorithm that suggests alternative products to items a user has interacted with.

GET https://recommendation.api.useinsider.com/v2/substitute?partnerName={PartnerName}&locale={Locale}&currency={Currency}&price=100&size=5

Sample Response

{
    "success": true,
    "total": 5,
    "types": {
        "sp": 5
    },
    "data": [
        "ABC-123654",
        "ABC-123321",
        "ABC-123789",
        "ABC-123987",
        "ABC-123456"
    ]
}

Fallback Algorithms

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

  • Viewed Together
  • Most Viewed of Category