Skip to main content

Request product list

This endpoint retrieves a list of products.

note

If the categories or filters query parameters are unused, the response will not contain the filters object.

HTTP Request

GET https://api.products.kameleoon.com/products

List of query parameters

ParameterTypeRequiredDescription
didStringTrueDevice ID. You can find this ID in the cookie KameleoonProducts_device_id, which you can retrieve from the back-end before calling this endpoint.
shop_idStringTrueStore 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.
sidStringTrueSession ID. It is the user's temporary identifier for the current session. It must be a unique string that must be regenerated every time the user starts a new session.
limitIntegerFalseMaximum number of results you want the API to return.
pageIntegerFalseMaximum number of pages you want the API to return.
locationsArrayFalseComma separated list of locations IDs.
brandsArrayFalseComma separated list of brands to filter.
merchantsList of stringsFalseComma separated list of merchants to filter.
categoriesList of stringsFalseComma separated list of categories to filter.
filtersJSON stringFalseOptional escaped JSON string with filter parameters. For example: {"bluetooth":["yes"],"offers":["15% cashback"],"weight":["1.6"]}
filters_search_byJSON stringFalseAvailable options for filter: name, quantity, popularity

API response

NameTypeDescription
brandsArrayArray with information about brands. Each object has the following properties.
categoriesArray of objectsArray contains objects with following fields.
filtersArrayArray with information about filters. Each object has the following properties.
price_rangeObjectMin and max price of products. Has the following properties.
productsArray of objectsArray with information about products. Each object has the following properties.
products_totalIntegerTotal count of products.
price_rangesArray of objectsObjects contain fields 'to' and 'count' that represent upper limit of the price range and the number of products in range.
price_medianIntegerMedian price of products.

List of properties for brands array

NameTypeDescription
nameStringBrand name.
pictureStringBrand picture.
countIntegerNumber of matches.

List of fields for categories array of objects

NameTypeDescription
idStringCategory id.
nameStringCategory name.
urlStringCategory URL.
url_handleStringPath to the category.
countNumberNumber of products belonging to the category.
parentStringParent category id.
aliasStringAlternate category name.

List of properties for filters array

NameTypeDescription
filterObjectHas the following properties.

List of fields for filters array of objects

NameTypeDescription
countIntegerTotal count of products matching the selected filter(s).
priorityIntegerPriority of the filter.
rangesIntegerRanges of numbers for aggregation results.
valuesArray of objectsArray of values (object). Has the following properties.

List of properties for values array of objects

NameTypeDescription
valueStringValue label.
countIntegerCount of products with this parameter.

List of fields for price_range object

NameTypeDescription
minIntegerMinimum price.
maxIntegerMaximum price.

List of fields for products array of objects

NameTypeDescription
brandStringProduct brand.
currencyStringProduct currency that corresponds to the currency specified in shop settings.
idStringProduct ID.
is_newBooleanProduct property (NULL by default).
nameStringProduct name.
old_priceStringProduct old price (0 by default).
priceIntegerProduct price.
price_formattedStringProduct price with currency.
price_full_formattedStringProduct price, example: "547.67 $".
pictureStringProduct picture URL in the Kameleoon storage.
urlStringProduct URL.
descriptionStringProduct description.
category_idsArray of stringsID of categories the product belongs to.
fashion_featureStringFeature of fashion category, for example "for kids" or "adult".
fashion_genderStringProduct gender designation.
sales_rateIntegerNumber of this product sold.
relative_sales_rateIntegerRelative share of sales in percent.
image_URLStringURL to the original image of the product.
image_URL_handleStringPath to the product image.
image_URL_resizedObjectObject with keys representing the size of its image, values are paths to the image.
_idStringInternal id.
group_idStringIdentifier for the group that contains products categorized together.
barcodeStringProduct barcode.
categoriesArrayProduct categories (array). Has the following properties.

List of properties for categories array

NameTypeDescription
idStringCategory id.
nameStringCategory name.
parentStringParent category id.
paramsArrayArray with information about params. Each object has the following properties.

List of properties for params array

NameTypeDescription
keyStringParam name.
valuesArrayArray of values.