Filters of a listing
kh_filtersRetrieve available filters—sub-categories, brands, colors, attributes—with IDs, counts, price range and stock for any category, brand, tag, or search query.
Instructions
List the filters of a category, brand, tag or search: sub-categories, brands, colors and attribute facets (skin type, hair type, ingredients, ...) with ids and counts, plus price range and stock counts.
Use before kh_browse: pass brand slugs as brands, color ids as colors, facet keys as facets. Brands are cut to 40 and each group to 25 values (omitted = how many more); pass group to see one in full. price_range is on the list price before discount (min 0 = out-of-stock items).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Campaign tag slug from kh_deals, e.g. 'festival-js' (pink box). | |
| group | No | Only attribute groups whose name contains this, listed in full, e.g. 'نوع پوست' (skin type). | |
| query | No | Keyword, alone or inside the listing. | |
| brands | No | Brand slugs from kh_brands / kh_filters (OR), e.g. ['simple', 'cerave']. | |
| category_id | No | Category id from kh_categories or kh_search, e.g. 145 (moisturizers). |