Toggle Sidebar
Find trending products
Retrieve a list of products that are trending. This endpoint allows you to fetch all products that are currently popular and gaining attention based on user interactions and sales data.
Requirements
- No parameters are required.
Usage
Method: GET
Path: /products/trending
Example
curl -X GET "https://api.example.com/products/trending"
Response
200 OK
Returns a standard API envelope with the products list available under data.data.
Example:
{
"status": true,
"path": "string",
"statusCode": 0,
"message": "string",
"data": {
"data": [
{
"slug": "string",
"is_liked": true,
"mrp": 0,
"is_onsale": true,
"campaign_start_date": "string",
"campaign_end_date": "string",
"discount_percent": 0,
"max_discount": 0,
"id": "string",
"title": "string",
"thumbnail_image": "string",
"price": 0,
"avg_rating": "string",
"total_reviews": 0,
"total_sales": 0,
"global_ranking": 0,
"genre_ranking": 0,
"is_wishlist": true,
"is_featured": true,
"creator": {
"id": "string",
"full_name": "string",
"user_name": "string",
"email": "string",
"profile_image": "string",
"is_online": true,
"level": "string"
}
}
]
}
}
Notes
- The products list is returned inside
data.data(nesteddataobject). is_onsale,discount_percent,campaign_start_date, andcampaign_end_datedescribe active promotions.avg_rating,total_reviews, andtotal_salescan be used to gauge popularity.global_rankingandgenre_rankingindicate ranking positions (lower number typically means higher rank).- The
creatorobject contains basic information about the product’s creator.