Find cheapest product
sh_find_cheapestFind in-stock products for a keyword across all shops and return a flat list sorted by total price in Toman so users can compare costs and pick a low-price offer.
Instructions
Find the cheapest in-stock products for a keyword across all shops, one flat list sorted by price to pay (Toman).
Use when the user wants the lowest price for X. The site sorts in-stock matches by price to pay;
this drops loose matches whose title lacks a query word (match_all_words) and items without a
price. Narrow with category_id (sh_categories) or city. A product's price is its cheapest
variant: check the wanted size / color with sh_product. complete=false: matches go on past
scanned, raise scan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Only shops with same-day courier delivery in this city, e.g. 'تهران' (list in sh_filters). | |
| scan | No | Max search results to scan, cheapest first, 200 per request. | |
| limit | No | Max offers to return. | |
| query | Yes | Product name or keyword, Persian works best, e.g. 'مانتو کتان' or 'کفش ورزشی'. | |
| category_id | No | Category id from sh_categories, e.g. 385 (women's manteaus); includes sub-categories. | |
| match_all_words | No | Keep only products whose title or shop name contains every word of the query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||