Skip to main content
GET
/
endpoint
Retrieve search results
curl --request GET \
  --url https://api.example.com/endpoint

Documentation Index

Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt

Use this file to discover all available pages before exploring further.

The Kameleoon Search service provides two search types:
  • Instant (typeahead) search: Displays and updates results as users type search queries.
  • Full search: Returns complete, filtered search results after the user submits a search query.
Both options use the same endpoint. Use the type parameter to specify the search type.

Request

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

Query parameters

These query parameters apply to both full search and instant search. Use additional parameters only with full search.
ParameterTypeRequiredDescription
didStringTrueDevice ID. Get this ID from the KameleoonProducts_device_id cookie. Retrieve it from the backend before calling this endpoint. Only provide did when using filters or algorithms that rely on historical device data, such as “Recently Viewed” or “Recommended for You.”
sidStringTrueTemporary user session ID. Get this ID from the KameleoonProducts_session_code cookie. Retrieve it from the backend before calling this endpoint. Only provide sid when using filters or algorithms that rely on historical user data, such as “Recently Viewed” or “Recommended for You.”
shop_idStringTrueStore Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.
typeStringTrueSpecifies the search type: instant_search or full_search.
search_queryStringTrueCurrent search query.
locationsListOptionalComma-separated list of location IDs.

Additional query parameters (full search only)

Use these additional parameters with full search requests (type=full_search).
ParameterTypeRequiredDescription
limitIntegerOptionalMaximum number of results the API returns.
offsetIntegerOptionalResult offset.
category_limitIntegerOptionalMaximum number of categories for the sidebar filter.
categoriesListOptionalComma-separated list of categories for filtering.
extendedInteger or emptyOptionalAdds extended information for product results. Supported values: 1 or empty. If 1, the API returns all product information. If empty, the API returns only product IDs. Kameleoon recommends setting this to 1 for full search.
sort_byStringOptionalSorting parameter. Supported values: popular, price, discount, sales_rate, date.
orderStringOptionalSort direction: asc (ascending) or desc (descending). Default is desc.
brandsListOptionalComma-separated list of brands for filtering.
filtersStringOptionalEscaped JSON string with filter parameters. Example: {"bluetooth":["yes"],"offers":["15% cashback"],"weight":["1.6"]}
price_minIntegerOptionalMinimum price.
price_maxIntegerOptionalMaximum price.
colorsIntegerOptionalComma-separated list of colors.
excludeIntegerOptionalComma-separated list of product IDs to exclude from search results.
NameTypeDescription
search_querystringSearch query.
categoriesarrayCategory information. Each object contains these properties:
  • id – category ID (string)
  • name – category name (string)
  • url – category URL (string)
  • count – number of products in the category (number)
filtersarrayFilter information. Each object contains these properties:
  • filter – Filter object containing these properties:
  • count – total products matching these parameters (number)
  • values – array of value objects containing these properties:
  • value – value label (string)
  • count – number of products with this parameter (number)
htmlstringHTML code for the product block. Customize the template in the Kameleoon personal account.
price_rangeobjectMinimum and maximum product prices. Contains these properties:
  • min – minimum price (number)
  • max – maximum price (number)
productsarrayProduct information. Each object contains these properties:
  • description – product description (string)
  • url – absolute product URL (string)
  • url_handle – relative product URL (string)
  • picture – product picture URL in Kameleoon storage (string)
  • name – product name (string)
  • price – product price (integer)
  • price_full – product price (float)
  • price_formatted – product price with currency (string)
  • price_full_formatted – formatted product price with currency (string)
  • image_url - absolute product picture URL in Kameleoon storage (string)
  • image_url_handle - relative product picture URL in Kameleoon storage (string)
  • image_url_resized - array of resized image URLs
  • currency – product currency (string)
  • id – product ID (string)
  • old_price – product old price (integer, default is 0)
  • old_price_full – product old price (float)
  • old_price_formatted – product old price with currency (string)
  • old_price_full_formatted – formatted product old price with currency (string)
  • Additional properties if you include extended in the request:
    • id – category ID (string)
    • name – category name (string)
    • parent_id – parent category ID (string)
    • url - category URL
    • category_ids - product category IDs (array)
search_query_redirectsarrayRedirect information. Each object contains these properties:
  • query – search query (string)
  • redirect_link – URL for redirection (string)
  • deep_link – URL for mobile apps (string)
products_totalnumberTotal number of products.
NameTypeDescription
brandsarrayBrand information. Each object contains these properties:
  • name – brand name (string)
  • picture – brand picture URL (string)
categoriesarrayCategory information. Each object contains these properties:
  • alias – category alias (string)
  • id – category ID (string)
  • name – category name (string)
  • parent – parent category ID (string)
  • url – category URL (string)
filtersarrayFilter information. Each object contains these properties:
  • filter – Filter object containing these properties:
    • count – total products matching these parameters (number)
    • values – value objects containing value (string) and count (number)
htmlstringHTML code for the product block. Customize the template in the Kameleoon personal account.
price_rangeobjectMinimum and maximum product prices. Contains these properties:
  • min – minimum price (number)
  • max – maximum price (number)
productsarrayProduct information. Each object contains these properties:
  • brand – product brand (string)
  • currency – product currency (string)
  • id – product ID (string)
  • is_new – product property (boolean, default is null)
  • name – product name (string)
  • old_price – product old price (string, default is 0)
  • picture – product picture URL in Kameleoon storage (string)
  • price – product price (number)
  • price_formatted – product price with currency (string)
  • url – product URL (string)
  • Additional properties if you include extended in the request:
    • barcode – product barcode (string)
  • categories – product categories (array) containing id, name, and parent ID.
  • params – parameter information. Each object contains key (string) and values (array).
products_totalnumberTotal count of products.
search_querystringSearch query.