Filter options
dk_filtersList filter options (attributes, colors, sellers, price range, brands) for a Digikala category or search to narrow down products.
Instructions
List the filters of a category or a search: attributes, colors, sellers, price range (Toman), brands.
Attributes give {value title: id}; one with over 15 values only has value_count: call again
with attribute_id. Colors are {title: id}; brands {code: id} (category only); categories
{code: title} (query only). Pass the ids to dk_category_products or dk_search
(attributes={attribute id: [value ids]}, colors, seller_type, brand_ids).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search words instead of a category, e.g. 'هدفون بی سیم'. | |
| brand_code | No | With category_code: only this brand, e.g. 'samsung'. | |
| attribute_id | No | Return only this attribute with all its values, e.g. 2251 (phone storage). | |
| category_code | No | Category code from dk_suggest or dk_categories, e.g. 'mobile-phone'. |