Viewed Together

Prev Next

The Viewed Together algorithm recommends items by finding similar products that users visit. It generates recommendations based on the products visited in the same sessions and the same locale during the past 30 days. After generating recommendations, the Viewed Together algorithm orders the results based on their visit frequency (popularity). Thus, users can reach complementary or substitute products for the product that they are currently viewing. This increases discovery rates and the chance to grab users’ attention when they don’t have a target product. This type of algorithm works best on product pages.

Endpoint

GET https://recommendation.api.useinsider.com/v2/viewed-together

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
productIdABC0123Base product IDStringYes
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
userIda1b2c3d4User identifier that is assigned by InsiderStringNo
excludeViewDay30After how many days should viewed products be excludedIntegerNo (Can be used only with userId)
excludeViewItem100How many viewed products should be excludedIntegerNo (Can be used only with userId)
excludePurchaseDay30After how many days should purchased products be excludedIntegerNo (Can be used only with userId)
excludePurchaseItem100How many purchased products should be excludedIntegerNo (Can be used only with userId)
hpfalseMakes affinities affect products of the responseBooleanNo

Sample Request

The sample below displays a request to Viewed Together, a recommendation algorithm that suggests items commonly viewed alongside the same product by other users.

GET https://recommendation.api.useinsider.com/v2/viewed-together?locale={Locale}&productId={ProductID}&currency={Currenct}&partnerName={PartnerName}

Sample Response

{
    "success": true,
    "total": 10,
    "types": {
        "mvop": 10
    },
    "data": [
        "QAZ-7890",
        "XYZ-1234",
        "QAZ-7899",
        "XYZ-1233",
        "QAZ-7898",
        "XYZ-1243",
        "QAZ-7891",
        "XYZ-1223",
        "QAZ-7892",
        "XYZ-1342"
    ]
}

Fallback Algorithms

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

  • Most viewed of the category
  • Most viewed of the category without excluding the right-most item in the categoryList
  • Most viewed of the Partner