Skip to main content

Retrieve recommended collection

Service provides access to product collection endpoint.

HTTP Request

GET https://api.products.kameleoon.com/collection/{%ID%}
note

You can find the product collection ID in the Product Collections section of the dashboard. Your configured collections are listed there along with their ID numbers.

Query Parameters

ParameterTypeRequiredDescription
shop_idStringTrueYour Store Key. You can find this in Recommendations > Settings > Store settings in the Kameleoon app. You can also contact your Customer Success Manager for the key.
didStringFalseDevice ID. You can find this ID in the cookie KameleoonProducts_device_id, which you can retrieve from the back-end before calling this endpoint.
locationStringFalseUser's location.
external_idStringFalseThis is a unique identifier associated with a user in your system or CRM. (To ensure accurate matching with Kameleoon VisitorCode, the ID must first be stored as a Kameleoon Custom Data. When setting up this custom data, make sure to enable the option Use this custom data as a unique identifier for cross-device matching to ensure that the ID is used to link user activities across both systems.).

API Response

NameTypeDescription
nameStringName of the product
urlStringURL to the product page
descriptionStringDescription of the product
category_idsArray of StringsArray of category IDs the product belongs to
brandStringBrand of the product
fashion_featureStringFashion feature (e.g., "adult").
fashion_genderStringGender for which the product is intended
sales_rateIntegerSales rate
relative_sales_rateFloatRelative sales rate compared to other products
pictureString (URL)URL of the product image
categoriesArray of ObjectsArray of category objects the product belongs to (system object)
price_formattedStringFormatted price
price_full_formattedStringFormatted full price
priceFloatPrice of the product
price_fullFloatFull price of the product
image_urlString (URL)URL to the resized product image
image_url_handleString (URL)Processed image URL
image_url_resizedString (URL)Resized image URL
url_handleStringURL handle to access the product within the collection
currencyStringCurrency used for the price
idStringProduct ID/SKU
htmlString (HTML)The HTML template selected when the collection was created