Guide
Smart Recommendations
Trending Products
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 the most popular products in the store the most common placements for this banner type are homepage trending products show a recommendation banner with the most popular products across the entire store homepage trending products for you present the most popular products in the store, tailored to the customer's recent history category page trending in {category} show a banner with the most popular products in the current category if you already have klevu powered category product listings, add this banner with personalisation enabled so the customer sees something, different just for them { "tab" "examples", "url" "https //eucs19v2 ksearchnet com/cs/v2/search", "name" "trending product recommendations", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "required", "name" "typeofrequest", "type" "string", "description" "for this recommendation type, please specify recs trending " }, { "kind" "optional", "name" "enablepersonalisation", "type" "boolean", "description" "whether or not you would like to personalise the recommendation results " }, { "kind" "optional", "name" "recentobjects", "type" "object", "description" "the ids of any products the customer recently clicked on, to be used in conjunction with enablepersonalisation " }, { "kind" "optional", "name" "categorypath", "type" "string", "description" "this is only required when you want to give category specific context to a recommendation query specify the name of the category to retrieve results from, in the same case and format as it is indexed with klevu \n\nfor nested categories, use the ; character to separate the hierarchy for example, for 'mens > shoes > trainers and sneakers' you would specify mens;shoes;trainers and sneakers " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "cfqj2ash0ygawkglqwfjm", "code" "{\n \\"meta\\" {\n \\"qtime\\" 65,\n \\"responsecode\\" 200\n },\n \\"queryresults\\" \[\n {\n \\"id\\" \\"recstrending\\",\n \\"meta\\" {\n \\"qtime\\" 18,\n \\"noofresults\\" 12,\n \\"totalresultsfound\\" 34,\n \\"typeofsearch\\" \\"wildcard and\\",\n \\"offset\\" 0,\n \\"debugginginformation\\" {},\n \\"notificationcode\\" 1,\n \\"searchedterm\\" \\" \\",\n \\"apikey\\" \\"klevu 158755634955912036\\",\n \\"ispersonalised\\" true,\n \\"idsusedforpersonalisation\\" \[\n \\"34322416828547\\",\n \\"34322607374467\\",\n \\"34322404245635\\",\n \\"34322662686851\\",\n \\"34322403950723\\",\n \\"34322464309379\\"\n ]\n },\n \\"records\\" \[\n {\n \\"color\\" \\"yellow\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192757248131\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"26 44\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457424 medium jpg?v=1611184383\&vid=34322606719107,34322607374467,34322607734915,34322608160899,34322608423043\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322607374467\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457422 medium jpg?v=1611184221\&vid=34322617532547,34322621825155,34322622087299,34322622414979,34322622742659\\",\n \\"sku\\" \\"41313874 yellow xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"24 98\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457424 medium jpg?v=1611184383\&vid=34322606719107,34322607374467,34322607734915,34322608160899,34322608423043\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"26 44\\",\n \\"swatchesinfo\\" \\"variantcolor1\ yellow ;;;; variantcolor3\ yellow ;;;; variantcolor2\ green ;;;; variantcolor5\ green ;;;; variantcolor4\ rice white ;;;; variantcolor6\ dark grey ;;;; variantimage6\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457410 medium jpg?v=1611184359\&vid=16847232663683 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457424 medium jpg?v=1611184383\&vid=16847236530307 ;;;; variantid6 34322611634307 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457411 medium jpg?v=1611184221\&vid=16847196782723 ;;;; variantimage5\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457411 medium jpg?v=1611184221\&vid=16847196782723 ;;;; variantid4 34322608717955 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457408 medium jpg?v=1611184221\&vid=16847201501315 ;;;; variantid5 34322610126979 ;;;; variantid2 34322607014019 ;;;; variantid3 34322607374467 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1601457424 medium jpg?v=1611184383\&vid=16847236530307 ;;;; variantid1 34322606719107 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 59,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/turtleneck men sweater christmas cotton male sweater winter pullover turtle neck mens jumper white mens knitwear pull homme\\",\n \\"size\\" \\"xl\\",\n \\"name\\" \\"turtle neck men sweater christmas cotton male sweater pullover turtle neck men's jumper men's knitwear pull\\",\n \\"shortdesc\\" \\"gender\ gender\ men; size\ size ,m,l,xl,2xl]]>; decoration\ decoration\ none; closure\ closure\ none; ;;;; brand name uyuk origin cn(origin) pattern type \\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"black\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192756985987\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"inventory item id\\" \\"35904833192067\\",\n \\"price\\" \\"48 00\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717245 medium jpg?v=1611183920\&vid=34322603376771,34322603475075,34322603540611,34322603638915,34322603737219,34322603868291,34322604032131,34322604195971\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322603540611\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717245 medium jpg?v=1611183920\&vid=34322603376771,34322603475075,34322603540611,34322603638915,34322603737219,34322603868291,34322604032131,34322604195971\\",\n \\"sku\\" \\"22837413 black l\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"41 56\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717245 medium jpg?v=1611183920\&vid=34322603376771,34322603475075,34322603540611,34322603638915,34322603737219,34322603868291,34322604032131,34322604195971\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"48 0\\",\n \\"swatchesinfo\\" \\"variantcolor1\ black ;;;; variantcolor3\ wine red ;;;; variantcolor2\ blue ;;;; variantswatchimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/t/2/assets/black jpg?v=1587554091 ;;;; variantcolor4\ white ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717247 medium jpg?v=1611184375\&vid=16847235055747 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717246 medium jpg?v=1611183943\&vid=16847190589571 ;;;; variantid4 34322609307779 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717248 medium jpg?v=1611184362\&vid=16847232827523 ;;;; variantid2 34322604425347 ;;;; variantid3 34322606555267 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1410717245 medium jpg?v=1611183920\&vid=16847179350147 ;;;; variantid1 34322603376771 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens coats & jackets;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 31,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/5xl men turtleneck sweater thick knitted pullover winter sweater male high turtle neck plus size mens coats black white red 4xl\\",\n \\"size\\" \\"l\\",\n \\"name\\" \\"men turtle neck sweater thick knitted pullover sweater male high turtle neck plus size men's coats\\",\n \\"shortdesc\\" \\"gender\ gender\ men; season\ season 2018,autumn,winter,new,arrivals; closure\ closure\ none; decoration\ decoration\ ruched; ;;;; style casual material wool materi\\",\n \\"category\\" \\"all;;mens coats & jackets;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"blue\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192756560003\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"inventory item id\\" \\"35904810221699\\",\n \\"price\\" \\"43 90\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655070 medium jpg?v=1611184269\&vid=34322588991619,34322589319299,34322589548675,34322589778051,34322590367875,34322592497795,34322593022083,34322593284227\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322589548675\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655069 medium jpg?v=1611184229\&vid=34322590040195,34322590662787,34322590924931,34322596954243,34322597314691,34322597609603,34322597970051,34322598199427\\",\n \\"sku\\" \\"30361222 blue m\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655070 medium jpg?v=1611184269\&vid=34322588991619,34322589319299,34322589548675,34322589778051,34322590367875,34322592497795,34322593022083,34322593284227\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"43 9\\",\n \\"swatchesinfo\\" \\"variantcolor1\ blue ;;;; variantcolor3\ blue ;;;; variantcolor2\ black ;;;; variantcolor5\ wine red ;;;; variantcolor4\ black ;;;; variantswatchimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/t/2/assets/black jpg?v=1587554091 ;;;; variantcolor6\ blue ;;;; variantswatchimage4\ 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 1315655070 medium jpg?v=1611184269\&vid=16847227682947 ;;;; variantid6 34322592497795 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655070 medium jpg?v=1611184269\&vid=16847227682947 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655069 medium jpg?v=1611184229\&vid=16847174893699 ;;;; variantid4 34322590662787 ;;;; variantimage5\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655071 medium jpg?v=1611184229\&vid=16847188721795 ;;;; variantid5 34322591219843 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655069 medium jpg?v=1611184229\&vid=16847174893699 ;;;; variantid2 34322590040195 ;;;; variantid3 34322590367875 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1315655070 medium jpg?v=1611184269\&vid=16847227682947 ;;;; variantid1 34322588991619 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 31,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/5xl plus size sweater men turtleneck thick warm mens sweaters wool pullover high turtle neck casual male sweter pull homme black\\",\n \\"size\\" \\"m\\",\n \\"name\\" \\"plus size sweater men turtle neck thick warm men's sweaters wool pullover high turtle neck casual male sweater pull black\\",\n \\"shortdesc\\" \\"season\ season 2018,autumn,winter,new,arrivals; decoration\ decoration\ ruched; closure\ closure\ none; ;;;; origin cn(origin) model number mens turtleneck sweater\\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"black\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192756822147\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"33 20\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279982 medium jpg?v=1611183902\&vid=34322598494339,34322598658179,34322598756483,34322598854787,34322598985859\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322598854787\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279985 medium jpg?v=1611183902\&vid=34322599116931,34322599215235,34322599280771,34322599411843,34322599542915\\",\n \\"sku\\" \\"31688107 black l\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279982 medium jpg?v=1611183902\&vid=34322598494339,34322598658179,34322598756483,34322598854787,34322598985859\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"33 2\\",\n \\"swatchesinfo\\" \\"variantcolor1\ white ;;;; variantcolor3\ gray ;;;; variantcolor2\ black ;;;; variantswatchimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/t/2/assets/black jpg?v=1587554091 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279985 medium jpg?v=1611183902\&vid=16847176073347 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279982 medium jpg?v=1611183902\&vid=16847177711747 ;;;; variantid2 34322598494339 ;;;; variantid3 34322599116931 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1187279991 medium jpg?v=1611183929\&vid=16847187837059 ;;;; variantid1 34322597707907 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 14,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/striped turtleneck mens sweaters wool pullover sweater male oversized turtle neck men sweter pull jumper korean style white\\",\n \\"size\\" \\"l\\",\n \\"name\\" \\"striped turtle neck men's sweaters wool pullover sweater male oversized turtle neck men sweater pull jumper korean style\\",\n \\"shortdesc\\" \\"gender\ gender\ men,men; decoration\ decoration\ none; closure\ closure\ none; ;;;; origin cn(origin) model number mens sweaters wool pullover pattern type \\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"yellow\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192759083139\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"inventory item id\\" \\"35904886505603\\",\n \\"price\\" \\"49 98\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368407 medium jpg?v=1611183999\&vid=34322659049603,34322659934339,34322661802115,34322662686851\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322662686851\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368401 medium jpg?v=1611183924\&vid=34322651578499,34322652463235,34322657149059,34322658033795\\",\n \\"sku\\" \\"41022628 yellow asian xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"49 98\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368407 medium jpg?v=1611183999\&vid=34322659049603,34322659934339,34322661802115,34322662686851\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"49 98\\",\n \\"swatchesinfo\\" \\"variantcolor1\ blue ;;;; variantcolor3\ blue ;;;; variantcolor2\ navy blue ;;;; variantcolor5\ navy blue ;;;; variantcolor4\ black ;;;; variantcolor6\ gray ;;;; variantswatchimage4\ 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 1646368403 medium jpg?v=1611183946\&vid=16847191179395 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368402 medium jpg?v=1611184384\&vid=16847237251203 ;;;; variantid6 34322655150211 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368408 medium jpg?v=1611183992\&vid=16847200583811 ;;;; variantimage5\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368408 medium jpg?v=1611183992\&vid=16847200583811 ;;;; variantid4 34322651578499 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368401 medium jpg?v=1611183924\&vid=16847186821251 ;;;; variantid5 34322653315203 ;;;; variantid2 34322648531075 ;;;; variantid3 34322650103939 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1646368402 medium jpg?v=1611184384\&vid=16847237251203 ;;;; variantid1 34322646859907 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 35,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/man pullovers hoodies jesus is king kanye west vintage autumn winter blue hip hop fleece hoodies urban streetwear hoody women\\",\n \\"size\\" \\"asian xl\\",\n \\"name\\" \\"man pullovers hoodies\\",\n \\"shortdesc\\" \\"gender\ gender\ men; closure\ closure\ none; ;;;; brand name hangjia origin cn(origin) sleeve length(cm) full gender \\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"dark green2\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192753610883\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"23 58\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462192 medium jpg?v=1611184202\&vid=34322483380355,34322483478659,34322483609731,34322483740803,34322483871875,34322483970179\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322483740803\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462192 medium jpg?v=1611184202\&vid=34322483380355,34322483478659,34322483609731,34322483740803,34322483871875,34322483970179\\",\n \\"sku\\" \\"42716014 dark green2 xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462192 medium jpg?v=1611184202\&vid=34322483380355,34322483478659,34322483609731,34322483740803,34322483871875,34322483970179\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"23 58\\",\n \\"swatchesinfo\\" \\"variantcolor1\ khaki1 ;;;; variantcolor3\ orange1 ;;;; variantcolor2\ yellow1 ;;;; variantcolor5\ purple1 ;;;; variantcolor4\ dark green1 ;;;; variantcolor6\ pink1 ;;;; variantimage6\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462183 medium jpg?v=1611184259\&vid=16847225880707 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462180 medium jpg?v=1611184260\&vid=16847226011779 ;;;; variantid6 34322470600835 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462179 medium jpg?v=1611184258\&vid=16847225421955 ;;;; variantimage5\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462182 medium jpg?v=1611184202\&vid=16847175647363 ;;;; variantid4 34322466013315 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462181 medium jpg?v=1611184256\&vid=16847225028739 ;;;; variantid5 34322468438147 ;;;; variantid2 34322460278915 ;;;; variantid3 34322463260803 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1659462178 medium jpg?v=1611184202\&vid=16847183184003 ;;;; variantid1 34322456903811 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;women sweatshirts;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 99,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/couple lovers sweatshirts pullover men women fashion smiley face printed purple green justin bieber hoodie\\",\n \\"size\\" \\"xl\\",\n \\"name\\" \\"couple lovers sweatshirts pullover men women fashion smiley face printed justin bieber hoodie\\",\n \\"shortdesc\\" \\"gender\ gender\ men; closure\ closure\ none; ;;;; brand name meuglement origin cn(origin) sleeve length(cm) full gender \\",\n \\"category\\" \\"all;;women sweatshirts;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"3d 7\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192755380355\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"26 96\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801484 medium jpg?v=1611184336\&vid=34322535940227,34322539380867,34322540527747,34322541838467,34322542952579,34322544001155,34322545180803,34322546065539,34322546983043\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322539380867\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801482 medium jpg?v=1611183908\&vid=34322582929539,34322583257219,34322583584899,34322583912579,34322584273027,34322584666243,34322585026691,34322585452675\\",\n \\"sku\\" \\"37091373 3d 7 xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"26 36\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801484 medium jpg?v=1611184336\&vid=34322535940227,34322539380867,34322540527747,34322541838467,34322542952579,34322544001155,34322545180803,34322546065539,34322546983043\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"26 96\\",\n \\"swatchesinfo\\" \\"variantcolor1 3d ;;;; variantcolor3 3d 12 ;;;; variantcolor2 3d 11 ;;;; variantcolor5 3d 6 ;;;; variantcolor4 3d 7 ;;;; variantcolor6 3d 7 ;;;; variantimage6\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801484 medium jpg?v=1611184336\&vid=16847231680643 ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801489 medium jpg?v=1611183980\&vid=16847198191747 ;;;; variantid6 34322539380867 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801488 medium jpg?v=1611184375\&vid=16847234957443 ;;;; variantimage5\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801483 medium jpg?v=1611184373\&vid=16847233941635 ;;;; variantid4 34322535940227 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801484 medium jpg?v=1611184336\&vid=16847231680643 ;;;; variantid5 34322537087107 ;;;; variantid2 34322517295235 ;;;; variantid3 34322525290627 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1548801478 medium jpg?v=1611184383\&vid=16847236628611 ;;;; variantid1 34322506481795 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;women sweatshirts;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 99,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/3d printed hoodies one piece hoodie men sweatshirt women harajuku pullovers casual hot sale anime black 3d hoodies clothes\\",\n \\"size\\" \\"xl\\",\n \\"name\\" \\"3d printed hoodies one piece hoodie men sweatshirt women harajuku pullovers casual hot sale anime 3d hoodies clothes\\",\n \\"shortdesc\\" \\"gender\ gender\ men,men; closure\ closure\ none; ;;;; brand name rholycrown origin cn(origin) sleeve length(cm) full gender \\",\n \\"category\\" \\"all;;women sweatshirts;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"dark grey\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192756756611\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"27 86\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1234576748 medium jpg?v=1611183946\&vid=34322598068355,34322598297731,34322598396035,34322598527107,34322598625411\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322598068355\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1234576748 medium jpg?v=1611183946\&vid=34322598068355,34322598297731,34322598396035,34322598527107,34322598625411\\",\n \\"sku\\" \\"21550359 dark grey s\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"25 86\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1234576748 medium jpg?v=1611183946\&vid=34322598068355,34322598297731,34322598396035,34322598527107,34322598625411\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"27 86\\",\n \\"swatchesinfo\\" \\"variantcolor1\ black ;;;; variantcolor2\ dark grey ;;;; variantswatchimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/t/2/assets/black jpg?v=1587554091 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1234576748 medium jpg?v=1611183946\&vid=16847191343235 ;;;; variantid2 34322598068355 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1234576747 medium jpg?v=1611183967\&vid=16847195701379 ;;;; variantid1 34322596528259 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 9,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/2019 autumn mens sweater pullover male long sleeve horn button knitted turtleneck sweaters slim fit black gray pullovers s 2xl\\",\n \\"size\\" \\"s\\",\n \\"name\\" \\"men's sweater pullover male long sleeve horn button knitted turtle neck sweaters slim fit pullovers\\",\n \\"shortdesc\\" \\"gender\ gender\ men; decoration\ decoration\ button; closure\ closure\ none; ;;;; brand name veaker model number men's sweater pullover pattern type sol\\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"army green\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192757280899\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"84 98\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1665268494 medium jpg?v=1611184350\&vid=34322606162051,34322606424195,34322606653571,34322606948483\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322606162051\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1665268493 medium jpg?v=1611184220\&vid=34322607243395,34322607571075,34322607931523,34322608193667\\",\n \\"sku\\" \\"42883420 army green xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1665268494 medium jpg?v=1611184350\&vid=34322606162051,34322606424195,34322606653571,34322606948483\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"84 98\\",\n \\"swatchesinfo\\" \\"variantcolor1\ army green ;;;; variantcolor2\ black ;;;; variantswatchimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/t/2/assets/black jpg?v=1587554091 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1665268493 medium jpg?v=1611184220\&vid=16847188656259 ;;;; variantid2 34322607571075 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1665268494 medium jpg?v=1611184350\&vid=16847232237699 ;;;; variantid1 34322606162051 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 7,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/2020 new mens vintage warm soft mohair turtleneck sweater green grey long sleeve sweater with elbow patch\\",\n \\"size\\" \\"xl\\",\n \\"name\\" \\"new men's vintage warm soft mohair turtle neck sweater long sleeve sweater with elbow patch\\",\n \\"shortdesc\\" \\"gender\ gender\ men]]>; decoration\ decoration\ patch designs; closure\ closure\ none; ;;;; model number s1901294 pattern type solid collar turtleneck\\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"green\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192756723843\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"40 78\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897966 medium jpg?v=1611184350\&vid=34322594889859,34322595414147,34322595741827,34322596003971,34322596266115,34322596495491\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322596266115\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897965 medium jpg?v=1611184339\&vid=34322595184771,34322596692099,34322596921475,34322597216387,34322597576835,34322597904515\\",\n \\"sku\\" \\"32126090 green xl\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"38 38\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897966 medium jpg?v=1611184350\&vid=34322594889859,34322595414147,34322595741827,34322596003971,34322596266115,34322596495491\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"40 78\\",\n \\"swatchesinfo\\" \\"variantcolor1\ green ;;;; variantcolor3\ green ;;;; variantcolor2\ navy blue ;;;; variantcolor4\ navy blue ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897966 medium jpg?v=1611184350\&vid=16847232204931 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897965 medium jpg?v=1611184339\&vid=16847231778947 ;;;; variantid4 34322596692099 ;;;; variantimage4\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897965 medium jpg?v=1611184339\&vid=16847231778947 ;;;; variantid2 34322595184771 ;;;; variantid3 34322595414147 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1429897966 medium jpg?v=1611184350\&vid=16847232204931 ;;;; variantid1 34322594889859 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 11,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/2019 new mens long hooded cardigan sweater male autumn black green cardigan coat casual solid color sweaters outerwear s 3xl\\",\n \\"size\\" \\"xl\\",\n \\"name\\" \\"new men's long hooded cardigan sweater male cardigan coat casual solid sweaters outerwear\\",\n \\"shortdesc\\" \\"decoration\ decoration\ none; closure\ closure\ none; ;;;; brand name veaker model number long hooded cardigan sweater pattern type solid\\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"green\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192759935107\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"71 30\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1508496603 medium jpg?v=1611184254\&vid=34322685100163,34322685427843,34322685853827,34322686279811\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322685427843\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1508496603 medium jpg?v=1611184254\&vid=34322685100163,34322685427843,34322685853827,34322686279811\\",\n \\"sku\\" \\"34699888 green s\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1508496603 medium jpg?v=1611184254\&vid=34322685100163,34322685427843,34322685853827,34322686279811\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"71 3\\",\n \\"swatchesinfo\\" \\"variantcolor1\ green ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 1508496603 medium jpg?v=1611184254\&vid=16847185936515 ;;;; variantid1 34322685100163 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens coats & jackets;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 3,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/madden male hooded pullover long sleeve deck parker jacket drawstring neckline workwear jacket green cuffs ribbon closure jacket\\",\n \\"size\\" \\"s\\",\n \\"name\\" \\"madden male hooded pullover long sleeve deck parker jacket\\",\n \\"shortdesc\\" \\"gender\ gender\ men; size\ size 100%,cotton; closure\ closure\ none; ;;;; brand name maden origin cn(origin) sleeve length(cm) full\\",\n \\"category\\" \\"all;;mens coats & jackets;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n },\n {\n \\"color\\" \\"light grey\\",\n \\"discount\\" \\"\\",\n \\"hidegroupprices\\" \\"\\",\n \\"itemgroupid\\" \\"5192757313667\\",\n \\"freeshipping\\" \\"\\",\n \\"storebasecurrency\\" \\"eur\\",\n \\"price\\" \\"35 18\\",\n \\"toprice\\" \\"\\",\n \\"imageurl\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970384 medium jpg?v=1611183941\&vid=34322611273859,34322611667075,34322611961987,34322612191363,34322612387971\\",\n \\"currency\\" \\"eur\\",\n \\"instock\\" \\"yes\\",\n \\"id\\" \\"34322611667075\\",\n \\"imagehover\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970383 medium jpg?v=1611183861\&vid=34322609406083,34322609832067,34322610159747,34322610487427,34322610913411\\",\n \\"sku\\" \\"6855204 light grey m\\",\n \\"brand\\" \\"klevu personalisation demo\\",\n \\"startprice\\" \\"\\",\n \\"image\\" \\"https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970384 medium jpg?v=1611183941\&vid=34322611273859,34322611667075,34322611961987,34322612191363,34322612387971\\",\n \\"deliveryinfo\\" \\"\\",\n \\"hideaddtocart\\" \\"\\",\n \\"saleprice\\" \\"35 18\\",\n \\"swatchesinfo\\" \\"variantcolor1\ middle grey ;;;; variantcolor3\ light grey ;;;; variantcolor2\ dark grey ;;;; variantimage3\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970384 medium jpg?v=1611183941\&vid=16847190032515 ;;;; variantimage2\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970383 medium jpg?v=1611183861\&vid=16847175614595 ;;;; variantid2 34322609406083 ;;;; variantid3 34322611273859 ;;;; variantimage1\ https //cdn shopify com/s/files/1/0386/6653/5043/products/product image 303970382 medium jpg?v=1611184312\&vid=16847230238851 ;;;; variantid1 34322607669379 ;;;;\\",\n \\"weight\\" \\"\\",\n \\"klevu category\\" \\"klevu product;products;;all;;mens sweaters @ku\@kucategory\@ku@\\",\n \\"totalvariants\\" 14,\n \\"groupprices\\" \\"\\",\n \\"url\\" \\"https //klevu personalisation demo myshopify com/products/2016 latest style fashion grey v neck sleeveless knitting pattern mens cable sweater vest\\",\n \\"size\\" \\"m\\",\n \\"name\\" \\"latest style fashion v neck sleeveless knitting pattern men's cable sweater vest\\",\n \\"shortdesc\\" \\"gender\ gender\ men; closure\ closure\ none; decoration\ decoration\ none; ;;;; brand name noenname null gender men technics flat knitted\\",\n \\"category\\" \\"all;;mens sweaters\\",\n \\"typeofrecord\\" \\"klevu product\\"\n }\n ],\n \\"filters\\" \[]\n }\n ]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "cfqj2ash0ygawkglqwfjm" }, "examples" { "languages" \[ { "id" "7klhlhdzbutlujssgns h", "code" "{\n \\"recordqueries\\" \[\n {\n \\"id\\" \\"recstrending\\",\n \\"typeofrequest\\" \\"recs trending\\",\n \\"settings\\" {\n \\"query\\" {\n \\"categorypath\\" \\"jackets\\"\n },\n \\"personalisation\\" {\n \\"enablepersonalisation\\" true\n },\n \\"context\\" {\n \\"recentobjects\\" \[\n {\n \\"typeofrecord\\" \\"klevu product\\",\n \\"records\\" \[\n {\n \\"id\\" \\"34322416828547\\"\n },\n {\n \\"id\\" \\"34322607374467\\"\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" "none", "customlabel" "request body (json)" }, { "id" "qltposcuinkc3gqawrdvm", "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\\" \\"recstrending\\",\n \\"typeofrequest\\" \\"recs trending\\",\n \\"settings\\" {\n \\"query\\" {\n \\"categorypath\\" \\"mens sweaters\\"\n },\n \\"personalisation\\" {\n \\"enablepersonalisation\\" true\n },\n \\"context\\" {\n \\"recentobjects\\" \[\n {\n \\"typeofrecord\\" \\"klevu product\\",\n \\"records\\" \[\n {\n \\"id\\" \\"34322416828547\\"\n },\n {\n \\"id\\" \\"34322607374467\\"\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;", "language" "php", "customlabel" "" }, { "id" "ptbhwnwsqov4yk3ykmbyl", "code" "var data = json stringify({\\"recordqueries\\" \[{\\"id\\" \\"recstrending\\",\\"typeofrequest\\" \\"recs trending\\",\\"settings\\" {\\"query\\" {\\"categorypath\\" \\"mens sweaters\\"},\\"personalisation\\" {\\"enablepersonalisation\\"\ true},\\"context\\" {\\"recentobjects\\" \[{\\"typeofrecord\\" \\"klevu product\\",\\"records\\" \[{\\"id\\" \\"34322416828547\\"},{\\"id\\" \\"34322607374467\\"}]}]},\\"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" "b9gucolzvvfaw5p3llmtj", "code" "okhttpclient client = new okhttpclient() newbuilder()\n build();\nmediatype mediatype = mediatype parse(\\"application/json\\");\nrequestbody body = requestbody create(mediatype, \\"{\\\n \\\\\\"recordqueries\\\\\\" \[\\\n {\\\n \\\\\\"id\\\\\\" \\\\\\"recstrending\\\\\\",\\\n \\\\\\"typeofrequest\\\\\\" \\\\\\"recs trending\\\\\\",\\\n \\\\\\"settings\\\\\\" {\\\n \\\\\\"query\\\\\\" {\\\n \\\\\\"categorypath\\\\\\" \\\\\\"mens sweaters\\\\\\"\\\n },\\\n \\\\\\"personalisation\\\\\\" {\\\n \\\\\\"enablepersonalisation\\\\\\" true\\\n },\\\n \\\\\\"context\\\\\\" {\\\n \\\\\\"recentobjects\\\\\\" \[\\\n {\\\n \\\\\\"typeofrecord\\\\\\" \\\\\\"klevu product\\\\\\",\\\n \\\\\\"records\\\\\\" \[\\\n {\\\n \\\\\\"id\\\\\\" \\\\\\"34322416828547\\\\\\"\\\n },\\\n {\\\n \\\\\\"id\\\\\\" \\\\\\"34322607374467\\\\\\"\\\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" "ztp2accugnh6ykgyvjemz", "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\\" \\"recstrending\\",\\"typeofrequest\\" \\"recs trending\\",\\"settings\\" {\\"query\\" {\\"categorypath\\" \\"mens sweaters\\"},\\"personalisation\\" {\\"enablepersonalisation\\"\ true},\\"context\\" {\\"recentobjects\\" \[{\\"typeofrecord\\" \\"klevu product\\",\\"records\\" \[{\\"id\\" \\"34322416828547\\"},{\\"id\\" \\"34322607374467\\"}]}]},\\"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});", "language" "nodejs", "customlabel" "" } ], "selectedlanguageid" "ptbhwnwsqov4yk3ykmbyl" }, "description" "the end point is used for retrieving trending products ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } try it here!