Find cheapest products
tl_find_cheapestFind the cheapest in-stock products for a search, returning a flat list sorted by real price after discount. Use when you want the lowest price.
Instructions
Find the cheapest in-stock products for a search, one flat list sorted by the real price after discount.
Use when the user wants the lowest price. Cheap accessories (cases, glass) and other
models often match a model name ('آیفون 16' also matches Galaxy A16): check the returned
categories and brands, call again with category_code and brand_codes, and check titles. Prices
are the site's featured offer per product (not always the cheapest seller); tl_product shows every
seller, color and installment price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max products to return. | |
| pages | No | Pages of 100 cheapest-indexed results to scan. | |
| query | Yes | Product name or words, Persian or English, e.g. 'آیفون 16' or 'لپ تاپ لنوو'. | |
| max_price | No | Highest price in Toman, e.g. 150000000. | |
| min_price | No | Lowest price in Toman, e.g. 50000000. | |
| brand_codes | No | Brand filter codes from the `brands` list of a result or tl_find_brand, e.g. [16] (Lenovo) or [16, 19] (Lenovo or ASUS). | |
| category_code | No | Category filter code from the `categories` list of a tl_search / tl_find_cheapest result, e.g. 1 (mobile phones), to skip accessories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||