Export ads
dv_exportExport Divar ad search results as CSV or JSON lines to save and analyse in spreadsheets, using the same filters as search.
Instructions
The ads of a search as CSV or JSON lines text, ready to save to a spreadsheet or analyse.
Same arguments as dv_search. Columns: token, title, price, deposit, rent (Toman), district, posted (UTC), photos,
seller, info, url. Missing prices are empty. The text is in data; write it to a file yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'. | تهران |
| limit | No | Max rows. | |
| pages | No | Result pages to merge, about 25 ads each. | |
| query | No | Free text in title or description, e.g. 'پراید 111'. | |
| format | No | 'csv' (header + rows) or 'jsonl' (one JSON ad per line). | csv |
| 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_deposit | No | Rent categories: deposit (ودیعه) in Toman. | |
| min_deposit | No | Rent categories: deposit (ودیعه) in Toman. | |
| max_age_hours | No | Only ads bumped within this many hours. |