Find cheapest product
dk_find_cheapestFind the cheapest in-stock products matching a query, sorted by price. Filters out accessories and irrelevant results for accurate comparison.
Instructions
Find the cheapest in-stock products that really match a query, one flat list sorted by price.
Scans the most relevant search results (not the whole catalogue, which is full of cheap
accessories), keeps those whose title contains every query word (if none does: any query
word, with a note), drops "suitable for ..." accessories, and sorts them by the current
buy-box price in Toman. Use for "cheapest X". Then call dk_product on the winner: another
seller may offer it for less.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max products to return. | |
| pages | No | Relevance pages to scan, 20 products each. | |
| query | Yes | Product name or words, Persian or English, e.g. 'گوشی سامسونگ' or 'airpods pro'. | |
| max_price | No | Highest price in Toman, e.g. 50000000. | |
| min_price | No | Skip anything cheaper than this, in Toman. Default: a quarter of the median price of the top matches (ignoring max_price), which drops accessories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||