Search ads
dv_searchSearch Divar classified ads across one or more cities by category, text, price, and other filters, returning compact ad cards with prices in Toman.
Instructions
Search Divar ads in one or more cities by category, text and filters; compact cards, prices in Toman.
Filters the category lacks come back in ignored. Next: dv_post, dv_compare, dv_cheapest, dv_market.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dv_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or id; several comma-separated, e.g. 'تهران,کرج'. | تهران |
| sort | No | 'newest' is Divar's order (pages by cursor); 'cheapest' / 'expensive' sort only the ads fetched in this call. | newest |
| limit | No | Max ads in the answer. | |
| pages | No | Result pages to merge, about 25 ads each. | |
| query | No | Free text in title or description, e.g. 'پراید 111'. | |
| cursor | No | `next_cursor` of the previous call, for older ads. | |
| recent | No | Published within '3h', '12h', '1d', '3d' or '7d'. | |
| exclude | No | Drop ads whose title has any of these words. | |
| filters | No | Category filters (keys from dv_filters), e.g. {'size': {'min': 80, 'max': 120}, 'parking': true}. Unknown keys are returned in `ignored`. | |
| category | No | Category slug or Persian name, e.g. 'light' (cars), 'apartment-rent', 'mobile-phones'. | |
| keywords | No | Words that must all be in the title. | |
| districts | No | Neighbourhood names or ids, 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. | |
| thumbnails | No | Include each ad's thumbnail URL in `image` (about 40 tokens per ad). | |
| brand_model | No | Vehicles, phones: brand/model, e.g. ['پژو 206']. | |
| max_deposit | No | Rent deposit (ودیعه), Toman. | |
| min_deposit | No | Rent deposit (ودیعه), Toman. | |
| max_age_hours | No | Only ads bumped within this many hours. |