divar_search
Search live Divar.ir ads using text query, city, category, price, photo, district, or brand filters. Retrieve normalized rows with title, price, city, district, and image.
Instructions
Search live divar.ir listings (Iran's largest classifieds). Read-only, no account needed. Supports text query, city, category, Toman price range, photo-only, district ids and brand/model, with cursor pagination. Returns normalized rows (token, title, price in Toman, city, district, relative time, image, url).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City id (e.g. "1") or Persian name (e.g. "تهران"). | |
| sort | No | Client-side sort of the sampled rows. | |
| limit | No | Return at most this many rows. | |
| pages | No | Cursor pages to fetch (1-5, default 1). | |
| query | No | Free-text search, Persian (e.g. "پژو ۲۰۶"). | |
| category | No | Divar category slug, e.g. mobile-phones, light, buy-residential. See divar_list_categories. | |
| has_photo | No | Only posts with photos. | |
| page_size | No | Rows per page (max 60, default 24). | |
| price_max | No | Price in Toman (not Rial). | |
| price_min | No | Price in Toman (not Rial). | |
| brand_model | No | Exact brand/model string, e.g. "samsung galaxy s21 5g" (from divar_get_post). | |
| district_ids | No | Divar numeric district ids (e.g. ["208"]). Get them from divar_get_post district_id. | |
| max_age_hours | No | Drop posts older than this (Divar's own recency filter is unreliable; this is client-side). |