Guide
Smart Recommendations

Trending Products

2min

If you haven't gone through the prerequisites and the v2 structure, please have a look at Overview

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

The end-point is used for retrieving trending products.
POST
Request
Body Parameters
typeOfRequest
required
String
For this recommendation type, please specify RECS_TRENDING.
enablePersonalisation
optional
Boolean
Whether or not you would like to personalise the recommendation results.
recentObjects
optional
Object
The IDs of any products the customer recently clicked on, to be used in conjunction with enablePersonalisation.
categoryPath
optional
String
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. For 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.
Request Body (JSON)
PHP
JS
Java
Node.js
Responses
200


Try it here!