--- title: "Get Recommendations" slug: "get-recommendations" description: "API reference for the GET /v2/{algorithm-name} endpoint that returns personalized product recommendations from Insider One." updated: 2026-11-03T10:22:12Z published: 2026-11-03T10:22:12Z canonical: "academy.insiderone.com/get-recommendations" --- > ## 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. # Get Recommendations The Recommendation API (SR-API), also known as the API endpoint for pulling product recommendations into your own code, is a RESTful service for programmatically retrieving personalized product recommendations. It interfaces directly with Insider One's recommendation engine, which uses machine learning models, real-time user behavior analysis, and product affinity data to return structured item sets. ## Endpoint The Recommendation API follows a standard RESTful pattern: > **GET** https://recommendation.api.useinsider.com/v2/{algorithm-name}[](https://developers.insiderone.com/#d63e7967-0902-47e1-802d-a586f2e913f1) > [!NOTE] > **{algorithm-name}** is the unique identifier for the recommendation logic to be executed. > > Examples: > > - **/v2/most-popular** - Most viewed products > - **/v2/user-based** - Personalized user recommendations > - **/v2/purchased-together** - Frequently bought together items > > Refer to [Algorithm Descriptions](/v1/docs/algorithm-descriptions) for the full list. > [!NOTE] > To serve a Bundle Strategy saved in InOne, call **/v2/bundle** with **bundleStrategyId**. It uses the same API token and shared rate limit. The response uses the common success, total and data fields, with **bundle_id** when a bundle is served and slot attribution when **details=true**. See [Get Bundle Recommendations](/v1/docs/get-bundle-recommendations). Before making your first request, you'll need: - [**API Token**](/v1/docs/api-authentication-tokens) - Used to authenticate your requests to the Smart Recommender API. > [!NOTE] > All requests require your API token in the request header. > > ```plaintext > X-Auth-Token: YOUR_API_TOKEN > ``` - **Partner ID/Name** - Your store identifier - **Locale** - Language and region code used for recommendation context (e.g., en_US, fr_FR) - **Currency** - Currency code (e.g., USD, EUR) ## Algorithm Abbreviations Each algorithm has a short abbreviation used in response payloads: - **mvop** = Most Popular Items - **ub** = User Based - **btb** = Purchased Together - **chef** = Chef (automated strategy selector) Refer to the [Algorithm Descriptions](https://academy.insiderone.com/docs/algorithm-descriptions) for the complete list. Bundle responses report the contributing sources in types: - **pd** for pinned products, - **cat** for catalog filter slots, - the producing algorithm's code for algorithm slots. See [Get Bundle Recommendations](/v1/docs/get-bundle-recommendations). ## Query Parameters All endpoints support common parameters: | Parameter | Purpose | Type | Required | | --- | --- | --- | --- | | partnerName | Your store identifier | String | Yes | | locale | Language/region (e.g., en_US) | String | Yes | | currency | Currency code used for currency-specific pricing and recommendation logic. For Stock & Revenue Based feeds, providing currency applies a positive-price filter for that currency. If omitted on an endpoint that accepts it as optional, this automatic price filter is not applied. Currency requirements vary by endpoint; see the endpoint-specific parameter table. | String | Depends on the endpoint and recommendation configuration. | | userId | User identifier for personalization | String | No | | categoryList | Filter by product categories | Array | No | | filter | Advanced filtering (see Filtering Guide) | String | No | | size | Number of products (0-100) | Integer | No | | details | Include full product information | Boolean | No | ## Sample Request **cUrl** ```bash curl -X GET "https://recommendation.api.useinsider.com/v2/most-popular?partnerName=yourpartnername&locale=tr_TR&size=1&details=true" \                    -H "X-Auth-Token: YOUR_API_TOKEN" ``` **JavaScript** ```javascript const apiToken = 'YOUR_API_TOKEN';                    const endpoint = 'https://recommendation.api.useinsider.com/v2/most-popular';                    const params = {                    partnerName: 'yourPartnerName',                    locale: 'tr_TR',                    size: 1,                    details: true                    };                    const queryString = new URLSearchParams(params).toString();                    fetch(`${endpoint}?${queryString}`, {                    method: 'GET',                    headers: {                    'X-Auth-Token': apiToken                    }                    })                    .then(response => response.json()) ``` **Python** ```python import requests                    api_token = 'YOUR_API_TOKEN'                    endpoint = 'https://recommendation.api.useinsider.com/v2/most-popular'                    params = {                    'partnerName': 'yourPartnerName',                    'locale': 'tr_TR',                    'size': 1,                    'details': True                    }                    headers = {                    'X-Auth-Token': api_token                    }                    response = requests.get(endpoint, params=params, headers=headers)                    data = response.json()                    print(data) ``` ## Sample Response Responses follow a consistent JSON structure: ```json {        "success": true,        "total": 10,        "types": {        "mvop": 10        },        "data": ["productId1", "productId2", ...]        } ``` > [!NOTE] > With details=true, the data array contains full product objects including pricing, images, categories, and attributes. ### 200 / Success-OK A successful response looks like this: ```json {        "success": true,        "total": 1,        "types": {        "mvop": 1        },        "data": ["SKU-DK-0011"]        } ``` | Field | Meaning | | --- | --- | | success | Boolean indicating if the request succeeded | | total | Number of products returned | | types | Algorithm(s) used (mvop = Most Popular of Partner) | | data | Array of product IDs | ## Getting Product Details By default, the API returns only product IDs. To get full product information (images, prices, descriptions), add details=true. **cUrl** ```bash curl -X GET "https://recommendation.api.useinsider.com/v2/most-popular?partnerName=yourpartnername&locale=tr_TR&size=1&details=true" \                    -H "X-Auth-Token: YOUR_API_TOKEN" ``` **JavaScript** ```javascript const params = {                    partnerName: 'yourpartnername',                    locale: 'tr_TR',                    size: 1,                    details: true                    }; ``` **Phyton** ```python params = {                    'partnerName': 'yourpartnername',                    'locale': 'tr_TR',                    'size': 1,                    'details': True                    } ``` Response with details=true includes: - image_url - Product image - name - Product name - price - Product pricing (by currency) - category - Product categories - discount - Discount information - in_stock - Stock status Here is a full example with details=true: ```json {        "success": true,        "total": 1,        "types": {        "mvop": 1        },        "data": [        {        "item_id": "SKU-HA-0011",        "name": "Hummingbird Decorative Cushion",        "locale": "en_US",        "image_url": "https://cdn.demo-shop.com/images/home-accessories/hummingbird-cushion-45x45.jpg",        "url": "https://www.demo-shop.com/en/home-accessories/hummingbird-decorative-cushion?ins_sr=eyJwcm9kdWN0SWQiOiJTS1UtSEEtMDAxMSJ9",        "in_stock": 1,        "price": {        "USD": 24.99        },        "original_price": {        "USD": 29.99        },        "discount": {        "USD": 5.0        },        "category": [        "Home Accessories",        "Decorative Cushions"        ],        "description": "Soft cotton decorative cushion with hummingbird pattern. Ideal for living rooms and bedrooms.",        "brand": "Demo Home",        "color": "Multicolor",        "size": "45x45 cm",        "tags": [        "cushion",        "home-decor",        "living-room"        ],        "material_type": "Cotton",        "washable": "Yes",        "room": "Living Room"        }        ]        } ``` ## API Rate Limits The rate limit for direct API calls is **1000 calls per minute**, applied across all Recommendation API endpoints. Exceeding this rate limit causes additional requests to return **429 status** codes. > [!NOTE] > If your technical architecture requires a higher throughput, contact the Insider One team.