Filter options
dk_filtersList available filters for a Digikala category or search to narrow product results by attributes, colors, sellers, and price range.
Instructions
List the filters Digikala offers for a category or a search: features, colors, sellers, price range.
Returns attributes (operating system, storage, connection type, ...) with their values as
{value title: value id}; an attribute with more than 15 values only has value_count: call
again with attribute_id for its values. Also colors as {title: id}, seller types, the price range in Toman, and
the brands as {code: id} (category only) or the categories the search spans as {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'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||