--- title: "Trending Products" slug: "recommendation-api-trending-products-algorithm" description: "Documents the GET /v2/trending endpoint, recommending items using a weekly view and purchase scoring system that surfaces this week's trending products." tags: ["trending products"] updated: 2026-09-09T15:10:36Z published: 2026-09-09T15:10:36Z canonical: "academy.insiderone.com/recommendation-api-trending-products-algorithm" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Trending Products The Trending Products algorithm recommends items using a scoring system. It scores items based on weekly views and purchases to determine this week's trending items compared with the previous week. This type of algorithm works best on the **main and category pages**. ## Endpoint > **GET** https://recommendation.api.useinsider.com/v2/trending[](https://developers.insiderone.com/#809f5f73-b7f4-43a6-8377-105e49bf6a02) ## Query Parameters | Parameter | Sample Value | Description | Data Type | Required | | --- | --- | --- | --- | --- | | partnerName | mybrand | Partner Identifier assigned by Insider One. You can use PartnerID as well. | String | Yes | | locale | us_US | Locale of requested product catalog | String | Yes | | platform | web | Requested platform. Web comes by default. | Enum | No | | currency | USD | Requested currency of the products. If no value is set, the default currency in your settings is used. | String | No | | size | 50 | Required number of items in response. Valid values are 0 to 100. | Integer | No | | categoryList | [“Clothes”, “Skirts”] | Category filter of the products | Array (of string) | No | | filter | | [Smart Recommender filtering](https://academy.insiderone.com/docs/filtering-recommendation-responses). There can be more than one filter parameter. | String | No | | details | true | Adds details to the products of the response | Boolean | No | | shuffle | false | Shuffles the products of the response | Boolean | No | | getGroupProducts | false | Shows variant products under the products of the response | Boolean | No | | groupProductsFields | | Adds these fields to the variant products’ details | String | No | | excludeVariants | true | Exclude variants from the response | Boolean | No | | userId | testUser | User identifier which is assigned by Insider One. | String | No | | hp | true, false or 0, 1 | Makes affinities affect products of the response. The default is *false*. | Boolean | No | | excludeViewDay | 30 | After how many days viewed products should be excluded. The default is -1. | Integer | No (Can only be used with userId) | | excludeViewItem | 10 | How many viewed products should be excluded. The default is -1. | Integer | No (Can only be used with userId) | | excludePurchaseDay | 30 | After how many days purchased products should be excluded. The default is -1. | Integer | No (Can only be used with userId) | | excludePurchaseItem | 10 | How many purchased products should be excluded. The default is -1. | Integer | No (Can only be used with userId) | | productId | ABC123CBA | Current product ID | String | No | ## Sample Request The sample below displays a request to Trending Products, an algorithm that recommends items using a dynamic scoring system. ```http https://recommendation.api.useinsider.com/v2/trending?partnerName={partnerName}&locale={Locale}&size=2 ``` ## Sample Response ```json {        "success": true,        "total": 2,        "types": {        "tpop": 2        },        "data": [        "ASD-4983",        "TYU-3451"        ]        } ``` ## Fallback Algorithms If the products from **Trending Products** are not enough to fill the response data, some fallback algorithms below fill it: - Trending products of the category without excluding the rightmost item in the categoryList. ## Related - [API Authentication Tokens](/api-authentication-tokens.md) - [API Rate Limits](/api-rate-limits.md) - [API Status and Error Codes](/api-status-and-error-codes.md) - [Insider One APIs in Postman](/insider-apis-in-postman.md)