--- title: "Recently Viewed Products" slug: "recommendation-api-recently-viewed-products-algorithm" description: "Learn how Insider One’s Recently Viewed Products algorithm uses user behavior to recommend recently viewed products via Smart Recommender APIs." tags: ["recently viewed products"] updated: 2026-09-09T15:06:21Z published: 2026-09-09T15:06:21Z canonical: "academy.insiderone.com/recommendation-api-recently-viewed-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. # Recently Viewed Products The Recently Viewed Products algorithm is one of Insider One's personalized algorithms. It tracks the user’s product-view behavior collected from the UCD, capturing data from both Web and Mobile events. In return, the Recently Viewed Products algorithm provides recommendations based on the user’s recently viewed products. It performs best on the **cart pages**. It is available on Web Smart Recommender, API-based Recommender, and App Recommender. ## Endpoint > **GET** https://recommendation.api.useinsider.com/v2/recently-viewed[](https://developers.insiderone.com/#c51542d8-99c9-45c4-b58e-e8260dbc7239) ## Query Parameters | Parameter | Sample Value | Description | Data Type | Required | | --- | --- | --- | --- | --- | | partnerName | 1000001 | Partner Identifier assigned by Insider One. You can use PartnerID as well. | String | Yes | | locale | us_US | Language or region of the site | String | Yes | | currency | USD | Shows products with the specified currency | String | No | | userId | a1b2c3d4 | User identifier that is assigned by Insider One | String | Yes | | platform | web | Its value can be web, mobile, or mobileV2. Web comes default. | String | No | | details | true | Adds item details to the response | Boolean | No | | hp | false | Hyper-personalization activation | Boolean | No | | size | 50 | Required number of items in response. The maximum allowed size is 100. | Integer | No | | shuffle | false | Shuffle the products in the response. | Boolean | No | | excludeVariants | true | Exclude variants by the same group ID. If the panel setting is *true* for this feature, the parameter will always be *true*. Otherwise, it depends on the parameter. The default value is false. | Boolean | No | | excludePurchaseDay | 30 | Exclude items the user purchased in X days | Integer | No | | excludePurchaseItem | 100 | The number of purchased products to exclude | Integer | No | | filter | | [Smart Recommender filtering](https://academy.insiderone.com/docs/filtering-recommendation-responses). There can be more than one filter parameter. | String | No | | categoryList | [“Clothes”, “Skirts”] | Category filter of the products | Array (of string) | No | | dayLimit | 7 | Threshold last update day value for Publisher partners (The default is 2 days.) | Integer | No | | getGroupProducts | true, false | Shows variant products under the products of the response | Boolean | No | | groupProductsFields | name, category | Adds these fields to the variant products’ details | String | No | ## Fallback Algorithms Because of its nature, the Recently Viewed Algorithm doesn’t have a fallback. However, you can always tune it by configuring the minimum number of products displayed in the recommendation carousel in the [Recommendation Strategies](/docs/recommendation-strategies). ## 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)