Complementary Products

Prev Next

The Complementary Products algorithm represents a different approach compared to Collaborative Algorithms, which are typically used to complement product recommendations. It is particularly effective on product pages and cart pages.

Endpoint

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

Query Parameters

ParameterSample ValueDescriptionData TypeRequired
partnerNamemybrandPartner Identifier assigned by Insider One. 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
productIdABC0123Base product id.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 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
excludeVariantstrueExclude variants from the response.BooleanNo
userIda1b2c3d4User identifier which is assigned by Insider One.StringNo
excludeViewDay30After how many days should viewed products be excludedIntegerNo (Can be used only with userId)
excludeViewItem100How many viewed products should be excluded.IntegerNo (Can be used only with userId)
excludePurchaseDay30After how many days should purchased products be excluded.IntegerNo (Can be used only with userId)
excludePurchaseItem100How many purchased products should be excluded.IntegerNo (Can be used only with userId)
hpfalseMakes affinities affect products of the response.BooleanNo

Sample Request

The sample below displays a request to Complementary Products, the algorithm that suggests items frequently bought or viewed together with the anchor product.

GET https://recommendation.api.useinsider.com/v2/complementary?partnerName={PartnerName}&locale={Locale}&currency={Currency}&productId={ProductId}

Sample Response

{
    "success": true,
    "total": 5,
    "types": {
        "cp": 5
    },
    "data": [
        "ABC321Z8",
        "ABC312Z8",
        "ABC123Z8",
        "ABC234Z8",
        "ABC345Z8"
    ]
}

Fallback Algorithms

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

  • Purchased Together
  • Top Sellers of Category
  • Top Sellers