Divar Classified Listings Scraper
Pricing
from $2.40 / 1,000 divar classified listings scrapers
Divar Classified Listings Scraper
Collect public Divar.ir classified listings. Get titles, prices, locations, conditions, photo counts, promotion markers, and direct URLs. Run with city, category, and optional search terms; no Divar login. Pricing: $0.0024 per result event plus $0.00005 per Actor Start event on Free.
Pricing
from $2.40 / 1,000 divar classified listings scrapers
Rating
0.0
(0)
Developer
Vitalii Bondarev
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
17 days ago
Last modified
Categories
Features
Share
Scrape public Divar.ir classified listings by city, category, and optional search terms. $0.0024 per result and $0.00005 per start event on the Free plan; the $5 credit covers 2,083 results plus one start event.
- Filter listings by city slug, category slug, and text searches.
- Monitor asking prices in toman using both numeric prices and displayed price text.
- Build lead-generation datasets with listing titles, locations, conditions, and direct URLs.
- Review photo counts, first image URLs, and Divar ladder-promotion markers.
- Run without a Divar login; the Actor does not request seller contact details.
What you get
Each dataset item represents one listing. The required token, title, and url fields are emitted when a listing is parsed; fields that the listing does not expose are omitted.
| Field | Type | Description |
|---|---|---|
token | string | Divar listing token. Always present. |
title | string | Listing title as shown on Divar. Always present. |
url | string | Direct Divar listing URL. Always present. |
price | integer | Numeric asking price in toman when it can be read. Omitted when the listing does not expose it. |
priceText | string | Price text as shown on the listing card. Omitted when the listing does not expose it. |
condition | string | Condition text shown on the listing card, when available. Omitted when the listing does not expose it. |
city | string | City name in Persian. Omitted when the listing does not expose it. |
district | string | District name in Persian, when available. Omitted when the listing does not expose it. |
imageCount | integer | Number of listing photos represented by the page. Omitted when the listing does not expose it. |
imageUrl | string | First listing image URL, when available. Omitted when the listing does not expose it. |
isPromoted | boolean | Whether the listing card has Divar’s ladder-promotion marker. |
Sample output
This is one complete record from the dataset sample:
{"token": "gayyv_fP","title": "پخش گوشی های نوکیا عمده و تک 3210و 106-","url": "https://divar.ir/v/gayyv_fP","isPromoted": true,"priceText": "۱,۴۶۰,۰۰۰ تومان","price": 1460000,"condition": "نو","city": "تهران","district": "هوانیروز","imageCount": 10,"imageUrl": "https://s100.divarcdn.com/static/photo/neda/webp_thumbnail/e0k4AlnXlfBZHwph-d3-bA/16d69282-c6d9-4c62-9a83-b87999250579.webp"}
Pricing
The live billing model is pay-per-event.
You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.
apify-default-dataset-item: one scraped result with all fields, charged at $0.0024 per result event on the Free plan. One result is one dataset item.apify-actor-start: charged when the Actor starts running. The number of events depends on Actor memory, with one event per GB and a minimum of one event, at $0.00005 per start event on the Free plan.
On the Free plan, 1,000 results = $2.40; 10,000 results = $24.00.
The Apify Free plan includes $5 per month of platform usage credit. On the Free plan, the $5 credit covers 2,083 results plus one start event ($4.99925).
How to use
- Open the Actor in your Apify account.
- Enter a Divar city slug such as
tehran. The slug may contain letters, numbers, and hyphens. - Choose a category slug such as
mobile-phones, or leavecategoryempty. - Add optional text terms to
searchQueries; the Actor applies each non-empty term to the selected city and category. - Set
maxResultsto the maximum number of unique listing records to emit. - Start the run. The Actor stops after reaching the result limit.
- Schedule the run through Apify Schedules; daily is a reasonable starting point for recurring listing collection.
{"city": "tehran","category": "mobile-phones","searchQueries": ["nokia"],"maxResults": 50}
Integration: Export the dataset as JSON or CSV, or read it through the Apify dataset API.
Input parameters
| Parameter | What it does | Default |
|---|---|---|
city | Required city slug from a Divar search URL. The Actor strips surrounding whitespace, lowercases the value, and accepts letters, numbers, and hyphens. | tehran |
category | Optional category slug. An empty value omits the category from the Divar search path. | mobile-phones |
searchQueries | Array of text searches. Blank terms are ignored; if no usable term remains, the Actor makes one request without a search query. | [] |
maxResults | Maximum number of unique listings emitted across the run. The schema accepts integers from 1 to 100000. Each search term reads only one Divar result page (no pagination), so a single term returns only what that page holds; to approach a high maxResults, add more search terms. | 50 |
proxyConfiguration | Optional Apify Proxy settings. If you do not supply the field, the Actor falls back to no proxy and connects directly. | {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]} (schema default) |
Limits and edge cases
| Condition | What you see | What to do |
|---|---|---|
city or a non-empty category contains characters other than letters, numbers, or hyphens | Input validation raises a ValueError before search pages are requested. | Use the slug format from the Divar URL, such as tehran or mobile-phones. |
maxResults is zero or negative | The Actor returns before making requests and emits no records. The schema’s minimum is 1. | Use a positive integer. |
| A search request fails, times out, or does not contain Divar’s page data | The Actor logs a warning for that query and skips it. Later queries in the same run are still processed. Each request has a 40-second timeout. The run can finish as Succeeded with an empty or short dataset. | Check the city, category, and search term, then run again. |
maxResults is larger than one result page holds | Each search term reads only one Divar result page (no pagination), so the dataset holds only what that page contains, even with maxResults up to 100000. | Add more search terms to collect more listings. |
| The same listing token appears for more than one query | The duplicate is skipped, so records remain unique by token. | Treat token as the listing identifier when combining runs. |
| A listing does not expose a price, condition, district, city, or image | The corresponding field is omitted rather than filled with a placeholder. A numeric price is included only when the displayed price can be parsed. | Use the available fields such as title, url, city, or priceText. |
| A page contains Divar state but no parseable listing record | That page contributes no dataset item. The run proceeds to the next query, if one exists. | Review the run log and try a different valid search URL combination. |
| A record is parsed during a run | The record is pushed to the dataset immediately. If the run is aborted, times out, or fails after rows have been pushed, those rows remain in the dataset; records not yet pushed are absent. | Check the dataset for the rows that were already pushed and review the run status. |
FAQ
How much does it cost to scrape Divar listings?
The result costs $0.0024 per result on the Free plan, and the start costs $0.00005 per start event on the Free plan. See Pricing for examples.
Why is my dataset empty?
The Actor can emit no records for the reasons in the Limits table. Check the run warning, use a valid city slug, and try a category or search term that produces a result page.
What should I check if a Divar run is not working?
See the Limits table, then review the run log for the affected query.
Is it legal to use data collected from Divar.ir?
The Actor collects public data embedded in Divar.ir’s search pages and does not log in or request seller contact details. Divar’s terms of use and applicable law depend on your use case, so review the relevant terms and legal requirements before using the data.
Related actors
- Ceneo Price Comparison Scraper — related bovi Actor for price-comparison data.
- Cimri Price Comparison Scraper — another related bovi price-comparison Actor.
- Craigslist Scraper – Listings, Prices & Seller Contacts — related bovi Actor for classified listings.