Guide
Smart Recommendations
Customers Also Viewed
2 min
if you haven't gone through the prerequisites and the v2 structure, please have a look at overview docid\ czeodl0skcuv 18ipuplr klevu can power a recommendation banner showcasing any products which other customers also viewed, in addition to viewing the current product the most common placements for this banner type are product page others also viewed show a recommendation banner with products other customers viewed from the store tab examples url https eucs19v2 ksearchnet com cs v2 search name customers also viewed product recommendations method post request pathparameters queryparameters headerparameters bodydataparameters kind required name typeofrequest type string description for this recommendation type please specify recs also viewed kind required name recentobjects type string description the klevu id of the product or products you will use for context klevu will find other products which were viewed in addition to the ones specified in this field formdataparameters results languages id 3xlvmt855lgkjoht0npxg code n meta n qtime 12 n responsecode 200 n n queryresults n n id recsalsoviewed n meta n qtime 8 n noofresults 12 n totalresultsfound 7 n typeofsearch wildcard and n offset 0 n debugginginformation n notificationcode 1 n searchedterm n apikey klevu 158755634955912036 n ispersonalised false n n records n n discount n hidegroupprices n itemgroupid 5192749842563 n freeshipping n storebasecurrency eur n price 50 00 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1665231658 medium jpg?v 1611183787 n currency eur n instock yes n id 34322423840899 n imagehover n sku 42882422 xl n brand klevu personalisation demo n startprice n image https cdn shopify com s files 1 0386 6653 5043 products product image 1665231658 medium jpg?v 1611183787 n deliveryinfo n hideaddtocart n saleprice 50 0 n swatchesinfo n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products womens white printed hooded oversize knitted sweatshirt n name women s printed hooded oversize knitted sweatshirt n shortdesc ;;;; brand name fash on room material cotton origin cn origin n category all;;women sweatshirts n typeofrecord klevu product n n n color white hoodie thin n discount n hidegroupprices n itemgroupid 5192753152131 n freeshipping n storebasecurrency eur n price 51 42 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1664797424 medium jpg?v 1611184206 vid 34322460016771 34322460573827 34322461032579 34322461491331 34322461982851 34322462474371 34322463031427 n currency eur n instock yes n id 34322461032579 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1664797422 medium jpg?v 1611184206 vid 34322466177155 34322466603139 34322466930819 34322467192963 34322467586179 34322467946627 34322468339843 n sku 30504298 white hoodie thin asian xxxl n brand klevu personalisation demo n startprice 48 48 n image https cdn shopify com s files 1 0386 6653 5043 products product image 1664797424 medium jpg?v 1611184206 vid 34322460016771 34322460573827 34322461032579 34322461491331 34322461982851 34322462474371 34322463031427 n deliveryinfo n hideaddtocart n saleprice 51 42 n swatchesinfo variantcolor1 black hoodie thin ;;;; variantcolor3 blue hoodie thick ;;;; variantcolor2 white hoodie thick ;;;; variantcolor5 white hoodie thin ;;;; variantcolor4 black hoodie thick ;;;; variantcolor6 yellow hoodie thin ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797423 medium jpg?v 1611184258 vid 16847225487491 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797419 medium jpg?v 1611184206 vid 16847185313923 ;;;; variantid6 34322463555715 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797420 medium jpg?v 1611184206 vid 16847185510531 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797424 medium jpg?v 1611184206 vid 16847190851715 ;;;; variantid4 34322456838275 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797418 medium jpg?v 1611184250 vid 16847223521411 ;;;; variantid5 34322460016771 ;;;; variantid2 34322452512899 ;;;; variantid3 34322453889155 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1664797425 medium jpg?v 1611184240 vid 16847221883011 ;;;; variantid1 34322448646275 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 2 n groupprices n url https klevu personalisation demo myshopify com products singleroad mens hoodies men women 2021 spring sweatshirt male japanese streetwear oversized yellow anime hoodie men sweatshirts n size asian xxxl n name singleroad men s hoodies men women 2021 sweatshirt male japanese streetwear oversized anime hoodie men sweatshirts n shortdesc gender gender men; closure closure none; ;;;; brand name single road origin cn origin sleeve length cm full gender n category all;;women sweatshirts n typeofrecord klevu product n n n color black n discount n hidegroupprices n itemgroupid 5192753021059 n freeshipping n storebasecurrency eur n inventory item id 35904686096515 n price 31 98 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1512920649 medium jpg?v 1611183859 vid 34322452840579 34322453397635 34322454085763 34322454642819 34322455134339 34322455691395 34322456248451 34322456739971 n currency eur n instock yes n id 34322456739971 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1512920649 medium jpg?v 1611183859 vid 34322452840579 34322453397635 34322454085763 34322454642819 34322455134339 34322455691395 34322456248451 34322456739971 n sku 39748242 black xxxl n brand klevu personalisation demo n startprice n image https cdn shopify com s files 1 0386 6653 5043 products product image 1512920649 medium jpg?v 1611183859 vid 34322452840579 34322453397635 34322454085763 34322454642819 34322455134339 34322455691395 34322456248451 34322456739971 n deliveryinfo n hideaddtocart n saleprice 31 98 n swatchesinfo variantcolor1 gray ;;;; variantcolor3 yellow ;;;; variantcolor2 black ;;;; variantcolor5 red ;;;; variantcolor4 white ;;;; variantcolor6 pink ;;;; variantswatchimage2 https cdn shopify com s files 1 0386 6653 5043 t 2 assets black jpg?v 1587554091 ;;;; variantswatchimage5 https cdn shopify com s files 1 0386 6653 5043 t 2 assets red png?v 1587554100 ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920651 medium jpg?v 1611183859 vid 16847175090307 ;;;; variantswatchimage6 https cdn shopify com s files 1 0386 6653 5043 t 2 assets pink png?v 1587554099 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920654 medium jpg?v 1611184242 vid 16847222177923 ;;;; variantid6 34322469781635 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920649 medium jpg?v 1611183859 vid 16847172206723 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920652 medium jpg?v 1611183953 vid 16847193014403 ;;;; variantid4 34322461720707 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920653 medium jpg?v 1611183915 vid 16847184756867 ;;;; variantid5 34322466046083 ;;;; variantid2 34322452840579 ;;;; variantid3 34322457329795 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1512920650 medium jpg?v 1611184215 vid 16847218770051 ;;;; variantid1 34322447663235 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products anime hunter x hunter hoodies yellow black hoodies killua long sleeves hoodies sweatshirts women streetwear hooded for men cs370 n size xxxl n name anime hunter x hunter hoodies hoodies killua long sleeves hoodies sweatshirts women streetwear hooded for men cs370 n shortdesc closure closure none; ;;;; brand name kosmo masa sleeve length cm full style casual pattern type print n category all;;women sweatshirts n typeofrecord klevu product n n n color dark grey n discount n hidegroupprices n itemgroupid 5192754593923 n freeshipping n storebasecurrency eur n price 32 08 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1447340732 medium jpg?v 1611183864 vid 34322540724355 34322541707395 34322542559363 34322543313027 34322545606787 34322546688131 n currency eur n instock yes n id 34322546688131 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1447340730 medium jpg?v 1611183859 vid 34322527256707 34322528370819 34322529583235 34322530795651 34322534236291 34322535317635 n sku 37965190 dark grey xxl n brand klevu personalisation demo n startprice 16 88 n image https cdn shopify com s files 1 0386 6653 5043 products product image 1447340732 medium jpg?v 1611183864 vid 34322540724355 34322541707395 34322542559363 34322543313027 34322545606787 34322546688131 n deliveryinfo n hideaddtocart n saleprice 32 08 n swatchesinfo variantcolor1 purple ;;;; variantcolor3 yellow ;;;; variantcolor2 red ;;;; variantcolor5 yellow ;;;; variantcolor4 red ;;;; variantcolor6 navy blue ;;;; variantswatchimage2 https cdn shopify com s files 1 0386 6653 5043 t 2 assets red png?v 1587554100 ;;;; variantswatchimage4 https cdn shopify com s files 1 0386 6653 5043 t 2 assets red png?v 1587554100 ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340739 medium jpg?v 1611183981 vid 16847198421123 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340738 medium jpg?v 1611183981 vid 16847198486659 ;;;; variantid6 34322512281731 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340737 medium jpg?v 1611183964 vid 16847195308163 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340738 medium jpg?v 1611183981 vid 16847198486659 ;;;; variantid4 34322504679555 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340737 medium jpg?v 1611183964 vid 16847195308163 ;;;; variantid5 34322507202691 ;;;; variantid2 34322497699971 ;;;; variantid3 34322502418563 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1447340736 medium jpg?v 1611184271 vid 16847228141699 ;;;; variantid1 34322494455939 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products 2020 new brand paris fashion vetements air transport dhl hoodies men sweatshirts men and women sweatshirt tops letter yellow 073 n size xxl n name new brand paris fashion air transport dhl hoodies men sweatshirts men and women sweatshirt n shortdesc gender gender men; closure closure none; ;;;; brand name lizhendanzhe sleeve length cm full gender men style ca n category all;;women sweatshirts n typeofrecord klevu product n n n gender women n color white n discount n hidegroupprices n itemgroupid 5192754331779 n freeshipping n storebasecurrency eur n price 95 00 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 34322489016451 34322489901187 34322490818691 34322491310211 n currency eur n instock yes n id 34322490818691 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 34322489016451 34322489901187 34322490818691 34322491310211 n sku 42882418 white xl n brand klevu personalisation demo n startprice n image https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 34322489016451 34322489901187 34322490818691 34322491310211 n deliveryinfo n hideaddtocart n saleprice 95 0 n swatchesinfo variantcolor1 black ;;;; variantcolor3 black ;;;; variantcolor2 white ;;;; variantswatchimage1 https cdn shopify com s files 1 0386 6653 5043 t 2 assets black jpg?v 1587554091 ;;;; variantcolor5 black ;;;; variantcolor4 white ;;;; variantswatchimage3 https cdn shopify com s files 1 0386 6653 5043 t 2 assets black jpg?v 1587554091 ;;;; variantcolor6 white ;;;; variantswatchimage5 https cdn shopify com s files 1 0386 6653 5043 t 2 assets black jpg?v 1587554091 ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 16847175745667 ;;;; variantid6 34322490818691 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231577 medium jpg?v 1611184237 vid 16847218016387 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 16847175745667 ;;;; variantid4 34322489901187 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231577 medium jpg?v 1611184237 vid 16847218016387 ;;;; variantid5 34322490228867 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231578 medium jpg?v 1611184237 vid 16847175745667 ;;;; variantid2 34322489016451 ;;;; variantid3 34322489409667 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1665231577 medium jpg?v 1611184237 vid 16847218016387 ;;;; variantid1 34322488262787 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products private butterfly backpack printed casual cut white unisex sweatshirt two color option n name private butterfly backpack printed casual cut unisex sweatshirt n shortdesc gender gender women ; ;;;; origin tr origin item type hoodies material cotton gender women n category all;;women sweatshirts n typeofrecord klevu product n n n color red 4 n discount n hidegroupprices n itemgroupid 5192753545347 n freeshipping n storebasecurrency eur n price 32 00 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1646110683 medium jpg?v 1611184254 vid 34322460901507 34322461393027 34322461884547 34322462343299 34322462933123 34322470862979 34322471321731 34322471714947 34322472140931 34322472566915 n currency eur n instock yes n id 34322471321731 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1646110671 medium jpg?v 1611184197 vid 34322484166787 34322484494467 34322484625539 34322484756611 34322484920451 34322485051523 34322485182595 34322485313667 34322485411971 34322485543043 n sku 42346497 red 4 xl n brand klevu personalisation demo n startprice 25 6 n image https cdn shopify com s files 1 0386 6653 5043 products product image 1646110683 medium jpg?v 1611184254 vid 34322460901507 34322461393027 34322461884547 34322462343299 34322462933123 34322470862979 34322471321731 34322471714947 34322472140931 34322472566915 n deliveryinfo n hideaddtocart n saleprice 32 0 n swatchesinfo variantcolor1 red 5 ;;;; variantcolor3 red 5 ;;;; variantcolor2 red 4 ;;;; variantcolor5 red 2 ;;;; variantcolor4 red 3 ;;;; variantcolor6 red 4 ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110683 medium jpg?v 1611184254 vid 16847224569987 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110679 medium jpg?v 1611184197 vid 16847184625795 ;;;; variantid6 34322470862979 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110683 medium jpg?v 1611184254 vid 16847224569987 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110678 medium jpg?v 1611184234 vid 16847220736131 ;;;; variantid4 34322466865283 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110682 medium jpg?v 1611184253 vid 16847224373379 ;;;; variantid5 34322470436995 ;;;; variantid2 34322460901507 ;;;; variantid3 34322463424643 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1646110679 medium jpg?v 1611184197 vid 16847184625795 ;;;; variantid1 34322459394179 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products maidangdi oversized hoodie loose cotton solid color sweatshirt comfortable leisure furniture outdoor pullover chinese red hoodie n size xl n name oversized hoodie loose cotton solid sweatshirt outdoor pullover chinese hoodie n shortdesc closure closure none; ;;;; brand name maidangdi origin cn origin sleeve length cm full style casual n category all;;women sweatshirts n typeofrecord klevu product n n n color black 11 n discount n hidegroupprices n itemgroupid 5192758067331 n freeshipping n storebasecurrency eur n price 28 48 n toprice n imageurl https cdn shopify com s files 1 0386 6653 5043 products product image 1624152420 medium jpg?v 1611184222 vid 34322639552643 34322639585411 34322639618179 34322639650947 34322639945859 34322639978627 n currency eur n instock yes n id 34322639618179 n imagehover https cdn shopify com s files 1 0386 6653 5043 products product image 1624152414 medium jpg?v 1611184222 n sku 39828275 black 11 l n brand klevu personalisation demo n startprice 25 98 n image https cdn shopify com s files 1 0386 6653 5043 products product image 1624152420 medium jpg?v 1611184222 vid 34322639552643 34322639585411 34322639618179 34322639650947 34322639945859 34322639978627 n deliveryinfo n hideaddtocart n saleprice 28 48 n swatchesinfo variantcolor1 black 13 ;;;; variantcolor3 black 13 ;;;; variantcolor2 gary ;;;; variantcolor5 gary ;;;; variantcolor4 red ;;;; variantcolor6 red ;;;; variantswatchimage4 https cdn shopify com s files 1 0386 6653 5043 t 2 assets red png?v 1587554100 ;;;; variantimage6 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152402 medium jpg?v 1611184222 vid 16847187804291 ;;;; variantswatchimage6 https cdn shopify com s files 1 0386 6653 5043 t 2 assets red png?v 1587554100 ;;;; variantimage3 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152422 medium jpg?v 1611184222 vid 16847197700227 ;;;; variantid6 34322637193347 ;;;; variantimage2 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152403 medium jpg?v 1611184222 vid 16847191638147 ;;;; variantimage5 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152403 medium jpg?v 1611184222 vid 16847191638147 ;;;; variantid4 34322636505219 ;;;; variantimage4 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152402 medium jpg?v 1611184222 vid 16847187804291 ;;;; variantid5 34322636963971 ;;;; variantid2 34322635456643 ;;;; variantid3 34322636046467 ;;;; variantimage1 https cdn shopify com s files 1 0386 6653 5043 products product image 1624152422 medium jpg?v 1611184222 vid 16847197700227 ;;;; variantid1 34322635227267 ;;;; n weight n klevu category klevu product;products;;all;;women sweatshirts ku kucategory ku n totalvariants 0 n groupprices n url https klevu personalisation demo myshopify com products kawaii hunter x hunter hoodies men women short sleeve sweatshirt killua zoldyck anime manga black hoodies bluzy tops clothes n size l n name short sleeve sweatshirt n shortdesc closure closure none; ;;;; brand name dshztooma origin cn origin sleeve length cm full style casual n category all;;women sweatshirts n typeofrecord klevu product n n n filters n n n language 200 customlabel selectedlanguageid 3xlvmt855lgkjoht0npxg examples languages id jsu7dlyyj euh63ysp682 code n recordqueries n n id recsalsoviewed n typeofrequest recs also viewed n settings n context n recentobjects n n typeofrecord klevu product n records n n id 34322682183811 n n n n n n typeofrecords n klevu product n n n n n context n apikeys n klevu 158755634955912036 n n n language json customlabel request body json id 8yg33te4jzfowp5yebmjh code ?php n n curl curl init ; n ncurl setopt array curl array n curlopt url https eucs19v2 ksearchnet com cs v2 search n curlopt returntransfer true n curlopt encoding n curlopt maxredirs 10 n curlopt timeout 0 n curlopt followlocation true n curlopt http version curl http version 1 1 n curlopt customrequest post n curlopt postfields n recordqueries n n id recsalsoviewed n typeofrequest recs also viewed n settings n context n recentobjects n n typeofrecord klevu product n records n n id 34322682183811 n n n n n n typeofrecords n klevu product n n n n n context n apikeys n klevu 158755634955912036 n n n n curlopt httpheader array n content type application json n n ; n n response curl exec curl ; n ncurl close curl ; necho response; n language php customlabel id wcdgtssqaxfiwklk2v174 code var data json stringify recordqueries id recsalsoviewed typeofrequest recs also viewed settings context recentobjects typeofrecord klevu product records id 34322682183811 typeofrecords klevu product context apikeys klevu 158755634955912036 ; n nvar xhr new xmlhttprequest ; nxhr withcredentials false; n nxhr addeventlistener readystatechange function n if this readystate 4 n console log this responsetext ; n n ; n nxhr open post https eucs19v2 ksearchnet com cs v2 search ; nxhr setrequestheader content type application json ; n nxhr send data ; language javascript customlabel id npw0nije j5r9i5w4bgn0 code okhttpclient client new okhttpclient newbuilder n build ; nmediatype mediatype mediatype parse application json ; nrequestbody body requestbody create mediatype n recordqueries n n id recsalsoviewed n typeofrequest recs also viewed n settings n context n recentobjects n n typeofrecord klevu product n records n n id 34322682183811 n n n n n n typeofrecords n klevu product n n n n n context n apikeys n klevu 158755634955912036 n n n ; nrequest request new request builder n url https eucs19v2 ksearchnet com cs v2 search n method post body n addheader content type application json n build ; nresponse response client newcall request execute ; language java customlabel id 0ih7niekhhfml7cry51j code var request require request ; nvar options n method post n url https eucs19v2 ksearchnet com cs v2 search n headers n content type application json n n body json stringify recordqueries id recsalsoviewed typeofrequest recs also viewed settings context recentobjects typeofrecord klevu product records id 34322682183811 typeofrecords klevu product context apikeys klevu 158755634955912036 n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n language nodejs customlabel selectedlanguageid wcdgtssqaxfiwklk2v174 description the end point is used for retrieving customers also viewed product recommendations currentnewparameter label body parameter value bodydataparameters try it here!