# Digikala Product Scraper - Iran Marketplace Search (`bovi/digikala-scraper`) Actor

Search Digikala product results and return rows with prices in IRR, sellers, stock, ratings, and product details. Run with a Persian or English keyword; no login or API key. Pricing: $0.00635 per product row plus $0.00005 per Actor Start event on Free.

- **URL**: https://apify.com/bovi/digikala-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 56.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.35 / 1,000 digikala product scraper - iran marketplace searches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Digikala Product Scraper

Search Digikala product results and extract flat rows from its public search endpoint, including prices, sellers, stock, ratings, and product details. Billing on the Free plan is $0.00635 per product row plus $0.00005 per Actor start event.

- Search with Persian or English keywords without a Digikala login or API key.
- Compare IRR prices, original prices, discounts, sellers, and warranties for product research.
- Monitor product prices and stock status for e-commerce and price-monitoring workflows.
- Analyze brands, categories, ratings, rating counts, and product images.
- Export flat, analysis-ready rows with the search query and UTC `scrapedAt` timestamp.

### What you get

Each dataset row represents a matching Digikala product. Only values returned for that product are populated; missing values are returned as `null`.

| Field family | Fields | What each row contains |
| --- | --- | --- |
| Identity | `id`, `url`, `title`, `titleEn`, `brand`, `category` | Product ID, Digikala URL, Persian and English titles, brand, and category |
| Price | `price`, `originalPrice`, `discountPercent`, `currency` | Current and original prices, discount percentage, and currency (`IRR`) |
| Availability | `status`, `inStock` | Digikala status and a boolean stock indicator |
| Reputation | `rating`, `ratingPercent`, `ratingCount` | Rating from 0–5, Digikala’s rating percentage (0–100), and rating count |
| Seller and variant | `seller`, `sellerUrl`, `color`, `warranty` | Default seller, seller URL, color, and warranty |
| Media and context | `imageUrl`, `query`, `scrapedAt` | Main product image, submitted search keyword, and scrape timestamp |

> **Note:** prices are in Iranian rial (IRR). Divide by 10 for the toman price shown on the website.

### Sample output

```json
{
  "id": 20176433, "url": "https://www.digikala.com/product/dkp-20176433/%D9%84%D9%BE%D8%AA%D8%A7%D9%BE-156-%D8%A7%DB%8C%D9%86%DA%86%DB%8C-%D9%84%D9%86%D9%88%D9%88-%D9%85%D8%AF%D9%84-v15-g2-ijl-%D8%A8%D8%A7-%D9%BE%D8%B1%D8%AF%D8%A7%D8%B2%D9%86%D8%AF%D9%87-celeron-n4500-%D8%B1%D9%85-8-%DA%AF%DB%8C%DA%AF%D8%A7%D8%A8%D8%A7%DB%8C%D8%AA-ddr4-%D8%AD%D8%A7%D9%81%D8%B8%D9%87-ssd-%D8%A8%D8%A7-%D8%B8%D8%B1%D9%81%DB%8C%D8%AA-256-%DA%AF%DB%8C%DA%AF%D8%A7%D8%A8%D8%A7%DB%8C%D8%AA-%D8%B5%D9%81%D8%AD%D9%87%D9%86%D9%85%D8%A7%DB%8C%D8%B4-full-hd-%D9%85%D8%A7%D8%AA-%D9%88-%D9%88%D8%A8%DA%A9%D9%85-hd-%D8%A8%D8%A7-%D8%AF%D8%B1%D9%BE%D9%88%D8%B4-%D9%84%D9%86%D8%B2",
  "title": "لپ‌تاپ 15.6 اینچی لنوو مدل V15 G2 IJL با پردازنده Celeron N4500، رم 8 گیگابایت DDR4، حافظه SSD با ظرفیت 256 گیگابایت، صفحه‌نمایش Full HD مات و وبکم HD با درپوش لنز",
  "titleEn": "Lenovo V15 G2 IJL-Celeron N4500-8GB DDR4 2933MHz-256GB SSD-TN 15.6 inch Laptop",
  "brand": "لنوو", "category": "لپ تاپ و الترابوک",
  "price": 879990000, "originalPrice": 900000000, "discountPercent": 2, "currency": "IRR",
  "status": "marketable", "inStock": true, "rating": 3.77, "ratingPercent": 75.44, "ratingCount": 57,
  "seller": "دیجی‌کالا", "sellerUrl": "https://www.digikala.com/seller/5A52N/",
  "color": "مشکی", "warranty": "گارانتی 18 ماهه دیجی کالا سرویس",
  "imageUrl": "https://dkstatics-public.digikala.com/digikala-products/c13109d29d83a49255fc3282cb17b7096f7f0bad_1786538649.jpg?x-oss-process=image/resize,m_lfit,h_300,w_300/quality,q_80",
  "query": "laptop", "scrapedAt": "2026-10-29T06:08:10.852173+00:00"
}
```

### Pricing

Pay-per-event billing. Prices on the Free plan:

| Event | When it is charged | Price on the Free plan |
| --- | --- | --- |
| `apify-actor-start` | Once per GB of Actor memory at start, minimum one event | $0.00005 per event |
| `apify-default-dataset-item` | Each product row written to the dataset | $0.00635 per event |

- 100 results = 100 x $0.00635 + $0.00005 start event = $0.63505 on the Free plan.
- 1,000 results: 1,000 x $0.00635 = $6.35 on the Free plan, plus the start event.
- 10,000 results: 10,000 x $0.00635 = $63.50 on the Free plan, plus the start event.
- $5 of Free-plan credit covers 787 results plus one start event, $4.99750 in total.

Compute, Apify Proxy traffic (including residential) and storage are included in these event prices, so you pay no separate platform usage.

### How to use

The Actor requests Digikala’s public search endpoint with the submitted keyword and page number, uses a browser-like TLS fingerprint, and pages through the results until `maxResults` is reached or the search is exhausted. Duplicate products are skipped.

Use an input such as:

```json
{
  "query": "laptop",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

1. **Open** the Digikala Product Scraper in your Apify account.
2. **Enter** a non-empty product keyword in Persian or English, such as `laptop` or `هدفون`.
3. **Set** `maxResults` to the maximum number of product rows you want, using an integer of at least 1.
4. **Choose** whether to use Apify Proxy. Set `useApifyProxy` to `true` to create the configured Apify Proxy connection, or turn it off to connect directly.
5. **Start** the run and inspect the resulting dataset rows, including prices in IRR, seller information, ratings, stock status, and product URLs.
6. **Repeat** the run through Apify Schedules, using daily as a starting point for product listings or price monitoring.

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
| --- | --- | --- |
| `query` | Required product keyword passed to Digikala search. Persian and English strings are accepted. | `laptop` prefill; required |
| `maxResults` | Maximum number of product rows to collect. The schema requires an integer of at least 1. | `50` |
| `proxyConfiguration` | Optional Apify Proxy configuration. When it is an object with `useApifyProxy` enabled, the Actor creates the proxy configuration; when disabled, the Actor connects directly. | { "useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"] } |

### Limits and edge cases

| Condition | What the buyer sees | What to do |
| --- | --- | --- |
| `query` is missing or empty | The Actor logs that `query` is empty and writes no product rows. | Provide a non-empty Persian or English keyword. |
| `maxResults` is `0` or negative | The Actor returns without collecting products. The input schema specifies a minimum of 1. | Use an integer of at least 1. |
| Digikala returns no products for a page | Paging stops. The dataset contains rows collected before that page, or no rows if it was the first page. | Check the keyword spelling and try a short, generic keyword or a Persian keyword. |
| The requested result count is reached | The Actor stops after writing the requested number of unique product rows. | Increase `maxResults` if you need more results. |
| Duplicate product IDs occur across pages | Duplicate products are skipped, so the dataset can contain fewer rows than the number of products encountered. | No action is required; use the unique rows returned. |
| Paging reaches the last page Digikala reports (`pager.total_pages`) | Paging stops, even if `maxResults` was not reached. | Lower `maxResults` or broaden the keyword. |
| Paging reaches the 500-page limit | The Actor stops paging after the supported page limit, even if the requested result count has not been reached. | Use a more focused query that returns fewer pages and run again. |
| A search-page request fails | The request is attempted up to five times, with waits of 1, 2, 4, and 8 seconds between retries. If it still fails, the Actor logs a warning and stops paging. Rows already written stay in the dataset and are already charged. | Check the query and proxy setting, then run again. |
| A product does not contain a returned value | The corresponding output field is `null`. | Handle nullable fields in downstream processing. |
| `ratingCount` is 0 | `rating` and `ratingPercent` are `null`. | Treat unrated products as having no rating. |

### FAQ

#### How much does it cost to scrape Digikala?

See Pricing above: $0.00635 per product row on the Free plan, so 100 results = 100 x $0.00635 + $0.00005 = $0.63505.

#### Why did my Digikala search return no products?

The Actor stops when Digikala returns no products for a page. Check the keyword spelling or try a shorter or Persian keyword. An empty `query` also ends the run without rows.

#### Why is my run not working?

See the search-page failure row in Limits. Check the query and the proxy setting, then run again.

#### Do I need a Digikala login or API key?

No Digikala login or API key is required. The Actor searches Digikala’s public search endpoint using the keyword supplied in the input.

#### Is scraping Digikala public data legal or allowed?

The Actor uses Digikala’s public search endpoint. Whether a particular use is legal or allowed depends on your use case, applicable law, and Digikala’s source terms, so review those requirements before running it.

### Related actors

- [91mobiles Scraper — India Phone Prices, Specs & Scores](https://apify.com/bovi/91mobiles-scraper) — another bovi scraper focused on phone prices, specifications, and scores.
- [Auchan France Product Scraper](https://apify.com/bovi/auchan-scraper) — another bovi product scraper, for Auchan France.
- [ALDI AU Scraper - Groceries, Special Buys & Prices](https://apify.com/bovi/aldi-scraper) — another bovi retail scraper covering groceries, special buys, and prices.

# Actor input Schema

## `query` (type: `string`):

Product keyword searched on Digikala, Persian or English (e.g. "laptop" or "هدفون").

## `maxResults` (type: `integer`):

Maximum number of product rows to collect.

## `proxyConfiguration` (type: `object`):

Optional. Apify Proxy settings; switch the proxy off to connect directly.

## Actor input object example

```json
{
  "query": "laptop",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with the scraped records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "laptop",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/digikala-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "laptop",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/digikala-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "laptop",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/digikala-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/digikala-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Skqy7pG0Zasdrr95w/builds/ZK7N1szHY0f20gGsQ/openapi.json
