--- title: "Best Practices for Recommendation API" slug: "best-practices-for-recommendation-api" description: "Covers Recommendation API best practices: categoryList formatting, hyperpersonalization, mixed strategy requests, multi-item queries, and group products." updated: 2026-11-03T11:00:40Z published: 2026-11-03T11:00:40Z canonical: "academy.insiderone.com/best-practices-for-recommendation-api" --- > ## 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. # Best Practices for Recommendation API ## Category List Format When filtering by categories, pass categoryList as a URL-encoded JSON array: ```plaintext categoryList=["shoes","boots"] ``` In cURL, encode the brackets properly: ```plaintext ?categoryList=%5B%22shoes%22%2C%22boots%22%5D ``` ## Hyperpersonalization (hp) Enable hyperpersonalization by adding hp=1 or hp=true: ```plaintext ?userId=user123&hp=1 ``` This uses customer affinities to further personalize results. ## Mixed Strategy > [!NOTE] > For advanced mixed-algorithm or pinned-product setups, we recommend Bundle Strategies when available in your account. See [Get Bundle Recommendations](/v1/docs/get-bundle-recommendations). Combine multiple recommendation algorithms in a single request to get diverse results. ```http GET /mixed?partnerName=X&locale=en_US&userId=user1¤cy=USD&strategy=[...] ``` #### Strategy array format: ```plaintext [  {"recommendationType": "ub", "size": 4},  {"recommendationType": "vtv", "size": 3, "productId": "prod1"},  {"recommendationType": "mvop", "size": 3, "filters": ["\[category\]\[=\]\[shoes\]"]} ] ``` **Available types**: ub, ue, vtv, btb, cp, sp, mvoc, mvop, mpoc, mpop, mpol, naoc, naop, tpoc, tpop, mvpoc, mvpop, mm, hdop, hdoc, rvp, lpt Each strategy specifies its algorithm type, the number of products to return, and, optionally, its own filters. ## Manual Merchandising in Mixed > [!NOTE] > For advanced mixed-algorithm or pinned-product setups, we recommend Bundle Strategies when available in your account. See [Get Bundle Recommendations](/v1/docs/get-bundle-recommendations). Use mm to include specific products you want to promote. The productId field is required. ```plaintext {"recommendationType": "mm", "size": 3, "productId": "featured1,featured2,featured3"} ``` **Full example:** ```http GET /mixed?partnerName=X&locale=en_US¤cy=TRY&strategy=[{"recommendationType":"ub","size":5},{"recommendationType":"mm","size":3,"productId":"promo1,promo2,promo3"},{"recommendationType":"mvop","size":2}] ``` - Pass product IDs as comma-separated values. - Products are returned in the order you specify. - Only in-stock products are returned. ## Multiple Item IDs in Item-Based Algorithms Get recommendations based on multiple products at once by passing comma-separated IDs: ```http GET /vtv?partnerName=X&locale=en_US&productId=item1,item2,item3&size=10¤cy=USD ``` Supported endpoints are **/vtv**, **/btb**, **/cp**, **/sp**. It is useful when you want recommendations based on multiple items in a cart or wishlist. ## Group Products Include product variants (e.g., different sizes/colors) in the response using getGroupProducts. ```http GET /ub?partnerName=X&locale=en_US&userId=user1&getGroupProducts=true&groupProductsFields=price,in_stock,product_attributes.color ``` ### Parameters - getGroupProducts=true — Enable variant products in response - groupProductsFields — Additional fields to include (comma-separated) ### Response structure ```json {  "item_id": "shoe-blue-m",  "group_products": [    {"item_id": "shoe-blue-s", "price": {"USD": 99}, "in_stock": 1},    {"item_id": "shoe-blue-l", "price": {"USD": 99}, "in_stock": 1}  ] } ``` Variants are [grouped](/v1/docs/decide-your-product-catalog-structure) by groupcode. You can request nested fields, such as product_attributes.color. ## Filter Chaining with asterisks (*) To combine multiple filters with AND logic, use *****. Here is an example of applying multiple filters: ```http GET ...&filter=[category][=][shoes]*[brand][=][nike]*[price][<][100] ``` ## Related - [Get Recommendations](/get-recommendations.md)