Skip to main content
GET
Retrieve search results
El servicio Kameleoon Search ofrece dos tipos de búsqueda:
  • Búsqueda instantánea (typeahead): Muestra y actualiza los resultados a medida que los usuarios escriben las consultas de búsqueda.
  • Búsqueda completa: Devuelve los resultados de búsqueda completos y filtrados después de que el usuario envíe una consulta de búsqueda.
Ambas opciones utilizan el mismo endpoint. Use el parámetro type para especificar el tipo de búsqueda.

Parámetros de consulta

Estos parámetros de consulta se aplican tanto a la búsqueda completa como a la búsqueda instantánea. Utilice parámetros adicionales solo con la búsqueda completa.

Parámetros de consulta adicionales (solo búsqueda completa)

Utilice estos parámetros adicionales con solicitudes de búsqueda completa (type=full_search).

Respuesta (búsqueda instantánea)

Respuesta (búsqueda completa)

Parámetros de consulta

did
string
requerido

Device 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."

sid
string
requerido

Temporary 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_id
string
requerido

Store Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.

type
enum<string>
requerido

Specifies the search type.

Opciones disponibles:
instant_search,
full_search
search_query
string
requerido

Current search query.

locations
string[]

Comma-separated list of location IDs.

limit
integer

Maximum number of results the API returns. Full search only.

offset
integer

Result offset. Full search only.

category_limit
integer

Maximum number of categories for the sidebar filter. Full search only.

categories
string[]

Comma-separated list of categories for filtering. Full search only.

extended
integer

Adds extended information for product results. Supported values: 1 or empty. Kameleoon recommends setting this to 1 for full search.

sort_by
enum<string>

Sorting parameter. Full search only.

Opciones disponibles:
popular,
price,
discount,
sales_rate,
date
order
enum<string>
predeterminado:desc

Sort direction. Full search only. Default is desc.

Opciones disponibles:
asc,
desc
brands
string[]

Comma-separated list of brands for filtering. Full search only.

filters
string

Escaped JSON string with filter parameters. Full search only. Example: {"bluetooth":["yes"],"offers":["15% cashback"],"weight":["1.6"]}

price_min
integer

Minimum price. Full search only.

price_max
integer

Maximum price. Full search only.

colors
string[]

Comma-separated list of colors. Full search only.

exclude
string[]

Comma-separated list of product IDs to exclude from search results. Full search only.

Respuesta

200 - application/json

Matching products for the search query. Verified against a live response on 2026-09-24. The exact response shape depends on type: instant search additionally returns queries, and full search additionally returns brands, price_ranges, price_median, and (with extended=1) industrial_filters.

Response shape verified against a live response on 2026-09-24. Fields kept from the original reference but not observed in that sample (search_query_redirects) may still appear conditionally. queries was observed for instant search; industrial_filters was observed for full search with extended=1.

search_query
string

The search query, as processed by Kameleoon.

search_query_original
string

The search query exactly as submitted.

collections
object[]

Matching product collections, if any.

categories
object[]

Category facet information.

filters
object

A map of filter name (for example, "Color", "Size") to that filter's aggregation. Verified against a live response on 2026-09-24; the original reference documented filters as an array, but the API actually returns an object keyed by filter name.

html
string

HTML code for the product block. Customize the template in the Kameleoon personal account.

price_range
object
price_ranges
object[]

Distribution of products across price ranges. Full search only.

price_median
number

Median product price. Full search only.

products
object[]

Matching products.

products_total
number

Total number of matching products.

search_query_redirects
object[]

Redirect information, when a matching redirect rule is configured. Not observed in the live sample; kept from the original reference.

brands
object[]

Brand facet information. Full search only.

clarification
boolean

Whether Kameleoon is asking for query clarification (for example, offering suggested queries) rather than returning a confident result set.

requests_count
integer

Number of search requests counted for this query in the current session.

queries
object[]

Suggested/corrected queries. Instant search only.

industrial_filters
object

Aggregated fashion-specific filter facets. Full search only, returned when extended=1.