Search products
dk_searchSearch Digikala products by name and filter results by price, brand, color, seller type, and delivery speed. Returns 20 items per page with match quality, discount, seller, and rating.
Instructions
Search Digikala products by name, with price (Toman), discount, seller and rating.
Returns 20 products per page. Digikala's search also returns loosely related items, even
for nonsense: each product has match ('all' query words in its title, 'some' with
missing_words, or 'none'), and matches counts them; prefer 'all'. Feature, color and
seller filters come from dk_filters(query=...). For category codes use dk_suggest or
dk_categories; for one brand in a category, dk_category_products(brand_code=...). Note:
sort=cheapest over a text query puts cheap accessories (cases, cables) first; for the
cheapest real match use dk_find_cheapest. With brand_ids plus a price range the API orders
by price only within each category: each page is re-sorted here, but cheaper items may sit
on later pages (dk_category_products keeps a strict order). Next: dk_product for all
sellers' offers of one product (for groceries it shows the supermarket price, which can differ).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 (20 products per page). | |
| sort | No | Order of the results. | relevance |
| query | Yes | Product name or words, Persian or English, e.g. 'گوشی سامسونگ' or 'airpods pro'. | |
| colors | No | Color ids from dk_filters, e.g. [1]. | |
| brand_ids | No | Brand ids from dk_product's brand_id or dk_brand_products' brand.id, e.g. [18] Samsung, [1662] Xiaomi. | |
| max_price | No | Highest price in Toman, e.g. 50000000. | |
| min_price | No | Lowest price in Toman, e.g. 10000000 for 10 million Toman. | |
| attributes | No | Feature filters from dk_filters: {attribute id: [value ids]}, e.g. {2226: [19239]} for Android phones. Values of one attribute are OR'ed, attributes are AND'ed. | |
| seller_type | No | Only offers from Digikala itself, official brand sellers, trusted sellers or rural (roosta) sellers. | |
| fast_delivery | No | Only items with fast (Jet) delivery. | |
| in_stock_only | No | Only products that can be bought now. | |
| ready_to_ship | No | Only items already in Digikala's warehouse (ship sooner). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||