Best picks for a budget
dk_best_for_budgetRank in-stock products within a Toman budget by review-weighted rating, so users can find well-rated picks for product searches with a price cap.
Instructions
Rank the best-rated in-stock products within a budget (Toman) by a rating weighted by its count.
A 5.0 from 3 buyers does not beat a 4.6 from 900; ties go to the cheaper one. A query keeps only titles with every word and drops accessories. Use for "best X under Y"; then dk_product, dk_reviews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max picks to return. | |
| pages | No | Result pages to scan, 20 products each. | |
| query | No | What to buy, e.g. 'هدفون بی سیم' or 'گوشی سامسونگ'. | |
| max_price | Yes | Budget in Toman, e.g. 20000000 for 20 million Toman. | |
| min_price | No | Skip anything cheaper, in Toman. Default for a query: a floor that drops accessories. | |
| min_ratings | No | Skip products with fewer ratings than this. | |
| category_code | No | Or a category code instead of a query, e.g. 'mobile-phone' (from dk_suggest). |