Récupérer les résultats de recherche
Interrogez le service Kameleoon Search pour récupérer des résultats de recherche de produits instantanés ou complets en fonction de la saisie de l’utilisateur.
- Instant (typeahead) search : affiche et met à jour les résultats au fur et à mesure que les utilisateurs saisissent leurs requêtes de recherche.
- Full search : renvoie des résultats de recherche complets et filtrés après que l’utilisateur a soumis une requête de recherche.
type pour spécifier le type de recherche.
Paramètres de requête
Ces paramètres de requête s’appliquent à la fois à la full search et à l’instant search. Utilisez les paramètres supplémentaires uniquement avec la full search.Paramètres de requête supplémentaires (full search uniquement)
Utilisez ces paramètres supplémentaires avec les requêtes full search (type=full_search).
Réponse (instant search)
Réponse (full search)
Paramètres de requête
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."
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."
Store Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.
Specifies the search type.
instant_search, full_search Current search query.
Comma-separated list of location IDs.
Maximum number of results the API returns. Full search only.
Result offset. Full search only.
Maximum number of categories for the sidebar filter. Full search only.
Comma-separated list of categories for filtering. Full search only.
Adds extended information for product results. Supported values: 1 or empty. Kameleoon recommends setting this to 1 for full search.
Sorting parameter. Full search only.
popular, price, discount, sales_rate, date Sort direction. Full search only. Default is desc.
asc, desc Comma-separated list of brands for filtering. Full search only.
Escaped JSON string with filter parameters. Full search only. Example: {"bluetooth":["yes"],"offers":["15% cashback"],"weight":["1.6"]}
Minimum price. Full search only.
Maximum price. Full search only.
Comma-separated list of colors. Full search only.
Comma-separated list of product IDs to exclude from search results. Full search only.
Réponse
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.
The search query, as processed by Kameleoon.
The search query exactly as submitted.
Matching product collections, if any.
Category facet information.
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 code for the product block. Customize the template in the Kameleoon personal account.
Distribution of products across price ranges. Full search only.
Median product price. Full search only.
Matching products.
Total number of matching products.
Redirect information, when a matching redirect rule is configured. Not observed in the live sample; kept from the original reference.
Brand facet information. Full search only.
Whether Kameleoon is asking for query clarification (for example, offering suggested queries) rather than returning a confident result set.
Number of search requests counted for this query in the current session.
Suggested/corrected queries. Instant search only.
Aggregated fashion-specific filter facets. Full search only, returned when extended=1.