recsUsingStrategy
Important: Only call parameters that you need. Algonomy operates off a set of APIs that support many applications and clients concurrently. Algonomy may update and enhance these APIs at any time.
http://recs.richrelevance.com/rrserver/api/rrPlatform/recsUsingStrategy
Note: The URL requires the API key and parameter(s) to function properly. See below for more information on example URL requests.
Important: The recommendations returned by the recsUsingStrategy API respect recommendation restriction rules set up in the Omnichannel Personalization dashboard. (Boosting and manual recommendations rules are currently not respected by this API.)
Debugging note: recsUsingStrategy is not compatible with useDummyData or Display Examples.
Parameters
Note: All paramets are case sensitive.
Name | Required or Optional | Description |
---|---|---|
apiClientKey |
Required | |
apiKey |
Required | |
attribute |
Optional | |
blockedProductIds |
Optional |
|
callback |
Optional | |
categoryData |
Optional | |
cts |
Optional | |
emailCampaignId |
Optional | |
requestId |
Optional | |
resultCount |
Optional | |
rid |
Optional | |
seed |
Required | |
sessionId |
Required | |
strategyName |
Required | |
userAttribute |
Optional | |
userAttributeReplace | Optional |
Usage is same as userAttribute, except that the attributes sent along with userAttributeReplace will replace all previously sent values for that attribute. Example: userAttribute=eye_color:|hair_color: |
userId |
Required | |
includeSkuData | Optional | True/False, the default value is false. If true, any available sku data provided in the SKU Feed will be provided for the returned products. Example: includeSkuData=true Example JSON Response: "skuData": [{ "color": "White", "size": "12", "image_url": "http://demandware.edgesuite.net/9400.jpg", "sku": "9400" }, { "color": "White", "size": "13", "image_url": "http://demandware.edgesuite.net/9401.jpg", "sku": "9401" }] |
seedType | Optional | Allows you to define what type of seed gets used for the recommendations Example 1: seedType=BRAND&seed=BRAND2 Exampled 2: seedType=SEARCH&seed=SEARCH10 |
sgs | Optional | Allows you to pass a segment as the seed for the recommendations Example: sgs=SEGMENT6 |
Example Request
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsUsingStrategy?&apiClientKey=e9c9e05289be70e6&apiKey=showcaseparent&userId=1&sessionId=1&strategyName=CategoryBoughtBought&seed=Baby
Example Response
{ "strategyName": "CategoryBoughtBought", "requestId": "", "message": "People who bought this category also bought", "recommendedProducts": [{ "clickURL": "http://recs.richrelevance.com/rrserver/apiclick?a=showcaseparent&cak=e9c9e05289be70e6&ct=http%3A%2F%2Flabs.richrelevance.com%2Fstorre%2Fcatalog%2Fproduct%2Fview%2Fsku%2F10315241&vg=0d470833-48f4-49b4-fd87-69529e9847d6&stid=82&pti=11&pa=-1&pos=0&p=10315241&channelId=e9c9e05289be70e6&s=1&u=1", "regionPriceDescription": "", "salePriceRangeCents": [388, 388], "rating": 4.745999813079834, "numReviews": 0, "priceRangeCents": [388, 388], "categoryIds": ["Grocery", "Grocery.Beverages", "Grocery.Dairy, Eggs & Cheese", "Grocery.Beverages.Coffee", "Grocery.Dairy, Eggs & Cheese.Milk & Cream"], "salePriceCents": 388, "imageURL": "http://labs.richrelevance.com/storre/media/catalog/product/g/r/great-value-coffee-non-dairy-creamer-35.3-oz-7853f7455506646c0f389886316a0304.jpg", "name": "Great Value: Coffee Non-Dairy Creamer, 35.3 Oz", "genre": "Grocery", "isRecommendable": true, "priceCents": 388, "id": "10315241", "categories": [{ "hasChildren": false, "name": "Grocery", "id": "Grocery" }, { "hasChildren": false, "name": "Beverages", "id": "Grocery.Beverages" }, { "hasChildren": false, "name": "Dairy, Eggs & Cheese", "id": "Grocery.Dairy, Eggs & Cheese" }, { "hasChildren": false, "name": "Coffee", "id": "Grocery.Beverages.Coffee" }, { "hasChildren": false, "name": "Milk & Cream", "id": "Grocery.Dairy, Eggs & Cheese.Milk & Cream" }], "brand": "Great Value" }, { "clickURL": "http://recs.richrelevance.com/rrserver/apiclick?a=showcaseparent&cak=e9c9e05289be70e6&ct=http%3A%2F%2Flabs.richrelevance.com%2Fstorre%2Fcatalog%2Fproduct%2Fview%2Fsku%2F10532717&vg=0d470833-48f4-49b4-fd87-69529e9847d6&stid=82&pti=11&pa=-1&pos=1&p=10532717&channelId=e9c9e05289be70e6&s=1&u=1", "regionPriceDescription": "", "salePriceRangeCents": [177, 177], "rating": 4.861999988555908, "numReviews": 0, "priceRangeCents": [177, 177], "categoryIds": ["Grocery", "Baby", "Baby.Diapering & Potty", "Grocery.Infant & Childcare", "Baby.Diapering & Potty.Other Diaper Accessories", "Grocery.Infant & Childcare.Baby Skin Care & Grooming"], "salePriceCents": 177, "imageURL": "http://labs.richrelevance.com/storre/media/catalog/product/e/q/enfamil-mild-baby-powder-22-oz-f1bab211aed511a83db87d1d7beb5cc1.jpg", "name": "Enfamil Mild Baby Powder 22 Oz", "genre": "Grocery", "isRecommendable": true, "priceCents": 177, "id": "10532717", "categories": [{ "hasChildren": false, "name": "Grocery", "id": "Grocery" }, { "hasChildren": false, "name": "Baby", "id": "Baby" }, { "hasChildren": false, "name": "Diapering & Potty", "id": "Baby.Diapering & Potty" }, { "hasChildren": false, "name": "Infant & Childcare", "id": "Grocery.Infant & Childcare" }, { "hasChildren": false, "name": "Other Diaper Accessories", "id": "Baby.Diapering & Potty.Other Diaper Accessories" }, { "hasChildren": false, "name": "Baby Skin Care & Grooming", "id": "Grocery.Infant & Childcare.Baby Skin Care & Grooming" }], "brand": "Enfamil" }, { "clickURL": "http://recs.richrelevance.com/rrserver/apiclick?a=showcaseparent&cak=e9c9e05289be70e6&ct=http%3A%2F%2Flabs.richrelevance.com%2Fstorre%2Fcatalog%2Fproduct%2Fview%2Fsku%2F10532717&vg=0d470833-48f4-49b4-fd87-69529e9847d6&stid=82&pti=11&pa=-1&pos=2&p=10532717&channelId=e9c9e05289be70e6&s=1&u=1", "regionPriceDescription": "", "salePriceRangeCents": [177, 177], "rating": 4.861999988555908, "numReviews": 0, "priceRangeCents": [177, 177], "categoryIds": ["Grocery", "Baby", "Baby.Diapering & Potty", "Grocery.Infant & Childcare", "Baby.Diapering & Potty.Other Diaper Accessories", "Grocery.Infant & Childcare.Baby Skin Care & Grooming"], "salePriceCents": 177, "imageURL": "http://labs.richrelevance.com/storre/media/catalog/product/e/q/enfamil-mild-baby-powder-22-oz-f1bab211aed511a83db87d1d7beb5cc1.jpg", "name": "Enfamil Mild Baby Powder 22 Oz", "genre": "Grocery", "isRecommendable": true, "priceCents": 177, "id": "10532717", "categories": [{ "hasChildren": false, "name": "Grocery", "id": "Grocery" }, { "hasChildren": false, "name": "Baby", "id": "Baby" }, { "hasChildren": false, "name": "Diapering & Potty", "id": "Baby.Diapering & Potty" }, { "hasChildren": false, "name": "Infant & Childcare", "id": "Grocery.Infant & Childcare" }, { "hasChildren": false, "name": "Other Diaper Accessories", "id": "Baby.Diapering & Potty.Other Diaper Accessories" }, { "hasChildren": false, "name": "Baby Skin Care & Grooming", "id": "Grocery.Infant & Childcare.Baby Skin Care & Grooming" }], "brand": "Enfamil" }, { "clickURL": "http://recs.richrelevance.com/rrserver/apiclick?a=showcaseparent&cak=e9c9e05289be70e6&ct=http%3A%2F%2Flabs.richrelevance.com%2Fstorre%2Fcatalog%2Fproduct%2Fview%2Fsku%2F13399650&vg=0d470833-48f4-49b4-fd87-69529e9847d6&stid=82&pti=11&pa=-1&pos=3&p=13399650&channelId=e9c9e05289be70e6&s=1&u=1", "regionPriceDescription": "", "salePriceRangeCents": [474, 474], "rating": 4.76200008392334, "numReviews": 0, "priceRangeCents": [497, 497], "categoryIds": ["Grocery", "Grocery.Dairy, Eggs & Cheese", "Health", "Health.Diet & Nutrition", "Grocery.Dairy, Eggs & Cheese.Milk & Cream", "lth", "lth.Diet & Nutrition", "Health.Diet & Nutrition.Sports Nutrition", "lth.Diet & Nutrition.Sports Nutrition"], "salePriceCents": 474, "imageURL": "http://labs.richrelevance.com/storre/media/catalog/product/e/a/health-advantedge-carb-control-rich-dark-chocolate-ready-to-drink-shake-11-fl-oz-carton-4-count-d3b10172d9d46e72e57780688ac1d4ae.jpg", "name": "Health AdvantEDGE Carb Control Rich Dark Chocolate Ready-to-Drink Shake, 11 fl oz carton, 4-count", "genre": "Health", "isRecommendable": true, "priceCents": 497, "id": "13399650", "categories": [{ "hasChildren": false, "name": "Grocery", "id": "Grocery" }, { "hasChildren": false, "name": "Dairy, Eggs & Cheese", "id": "Grocery.Dairy, Eggs & Cheese" }, { "hasChildren": false, "name": "Health", "id": "Health" }, { "hasChildren": false, "name": "Diet & Nutrition", "id": "Health.Diet & Nutrition" }, { "hasChildren": false, "name": "Milk & Cream", "id": "Grocery.Dairy, Eggs & Cheese.Milk & Cream" }, { "hasChildren": false, "name": "lth", "id": "lth" }, { "hasChildren": false, "name": "Diet & Nutrition", "id": "lth.Diet & Nutrition" }, { "hasChildren": false, "name": "Sports Nutrition", "id": "Health.Diet & Nutrition.Sports Nutrition" }, { "hasChildren": false, "name": "Sports Nutrition", "id": "lth.Diet & Nutrition.Sports Nutrition" }], "brand": "EAS" }, { "clickURL": "http://recs.richrelevance.com/rrserver/apiclick?a=showcaseparent&cak=e9c9e05289be70e6&ct=http%3A%2F%2Flabs.richrelevance.com%2Fstorre%2Fcatalog%2Fproduct%2Fview%2Fsku%2F10292621&vg=0d470833-48f4-49b4-fd87-69529e9847d6&stid=82&pti=11&pa=-1&pos=4&p=10292621&channelId=e9c9e05289be70e6&s=1&u=1", "regionPriceDescription": "", "salePriceRangeCents": [250, 250], "rating": 3.9549999237060547, "numReviews": 0, "priceRangeCents": [250, 250], "categoryIds": ["Grocery", "Grocery.Snacks, Cookies & Chips", "Home", "Grocery.Snacks, Cookies & Chips.Crackers"], "salePriceCents": 250, "imageURL": "http://labs.richrelevance.com/storre/media/catalog/product/n/a/nabisco-premium-original-saltine-crackers-16-oz-3e0fbe10087a255d525fb6ebe20f7e33.jpg", "name": "Nabisco Premium Original Saltine Crackers, 16 oz", "genre": "Grocery", "isRecommendable": true, "priceCents": 250, "id": "10292621", "categories": [{ "hasChildren": false, "name": "Grocery", "id": "Grocery" }, { "hasChildren": false, "name": "Snacks, Cookies & Chips", "id": "Grocery.Snacks, Cookies & Chips" }, { "hasChildren": false, "name": "Home", "id": "Home" }, { "hasChildren": false, "name": "Crackers", "id": "Grocery.Snacks, Cookies & Chips.Crackers" }], "brand": "Nabisco" }] }