Find cheapest product
ab_find_cheapestFind low-price in-stock products for a keyword, returning one flat list sorted by current price in Toman. Match every query word by default and raise scan for more matches.
Instructions
Find the cheapest in-stock products for a keyword, one flat list sorted by current price (Toman).
Use when the user wants the lowest price for X. The site's search also matches descriptions,
so by default only titles containing every query word are kept. Variable products (several
sizes/colors) are listed at their cheapest variant: check ab_product for the size you need.
complete=false means more in-stock matches lie past scanned: raise scan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | How many in-stock search results to scan, cheapest first. | |
| limit | No | Max offers to return. | |
| query | Yes | Product name or keyword, Persian or English, e.g. 'شامپو ضد شوره' or 'la roche posay'. | |
| match_all_words | No | Keep only titles that contain every word of the query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||