検索結果の取得
ユーザー入力に基づいて即時検索結果または全文検索結果を取得するために Kameleoon Search サービスをクエリします。
- 即時検索(タイプアヘッド検索): ユーザーが検索クエリを入力するたびに結果を表示および更新します。
- 完全検索: ユーザーが検索クエリを送信した後に完全でフィルタリングされた検索結果を返します。
type パラメーターを使用します。
クエリパラメーター
これらのクエリパラメーターは完全検索と即時検索の両方に適用されます。追加のパラメーターは完全検索でのみ使用してください。追加のクエリパラメーター(完全検索のみ)
これらの追加パラメーターは完全検索リクエスト(type=full_search)で使用してください。
レスポンス(即時検索)
レスポンス(完全検索)
クエリパラメータ
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.
レスポンス
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.