Find deals
dv_find_dealsFind underpriced Divar ads by comparing prices to the local median, removing bait and placeholder listings, and returning scored deals.
Instructions
Ads priced well below the median of the same search, without a budget: scored deals, with bait and junk prices removed.
Scans the newest pages pages and keeps ads min_discount_pct to 70% below the median (price per m2 for property
for sale). Left out: suspect and placeholder prices, ads under 20% of the median (deposits, parts, bait), bait or
co-op titles (وامدار, قدرالسهم, اقساط, پیشفروش...; unless you ask for the word) and notice / parking titles.
Use a narrow query or filters: the median of a mixed category means nothing. Asking prices only. Next: dv_post,
dv_appraise, dv_compare.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'. | تهران |
| limit | No | Max deals. | |
| pages | No | Result pages to merge, about 25 ads each. | |
| query | No | Free text in title or description, e.g. 'پراید 111'. | |
| recent | No | Published within '3h', '12h', '1d', '3d' or '7d'. | |
| exclude | No | Drop ads whose title has any of these words. | |
| filters | No | Other category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`. | |
| category | No | Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'. | |
| keywords | No | Words that must all be in the title. | |
| districts | No | Neighbourhood names or ids in the one city, e.g. ['ونک']. | |
| has_photo | No | Only ads with photos. | |
| max_price | No | Toman; monthly rent in rent categories. | |
| min_price | No | Toman; monthly rent in rent categories. | |
| brand_model | No | Vehicles, phones: brand/model, e.g. ['پژو 206']. | |
| max_age_hours | No | Only ads bumped within this many hours. | |
| min_discount_pct | No | Only ads at least this many percent below the median. |