Filter options
dv_filter_optionsLook up allowed Divar filter values such as car brand/model keys, districts, or option lists. Use query text to resolve Persian names, then pass returned keys to search.
Instructions
Allowed values of a filter: brand and model keys (161 car brands), districts, or any option list.
With query it uses Divar's own typed search (best way to turn 'پراید' into the key 'Pride 111'). Without it:
all brands (key, title, model count), or the models of one brand. Pass the keys to dv_search as
brand_model / filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'. | تهران |
| brand | No | brand_model only: a brand key (e.g. 'Peugeot') to list its models. | |
| limit | No | Max options to return. | |
| query | No | Text to look up inside the filter, e.g. 'سمند' or 'ونک'. Without it the whole list (or one brand) is returned. | |
| filter | No | Filter key from dv_filters, usually 'brand_model' (cars, phones, ...) or 'districts'. | brand_model |
| category | Yes | Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'. |