# Daraz Scraper: Prices, Units Sold, Sellers (`bonpleincapital/daraz-scraper`) Actor

Scrape Daraz search (PK, BD, LK, NP): title, price, units sold, rating, seller, URL. Pay per result, no login. Public data only; GDPR applies.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/daraz-scraper.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 product results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Daraz Scraper: prices, units sold and sellers

**Daraz Scraper** extracts product prices, units sold, ratings and seller names from Daraz search results in Pakistan, Bangladesh, Sri Lanka and Nepal. Give it a keyword and get clean data you can download as JSON, CSV or Excel, or read through the Apify API. It is made for e-commerce sellers, market analysts and price-monitoring teams who need Daraz data without copying it by hand.

### What can this Actor do?

- Search Daraz by keyword on daraz.pk (PK), daraz.com.bd (BD), daraz.lk (LK) and daraz.com.np (NP), in one run.
- Return for each product: name, current price, original price, discount, units sold (as a number), rating, review count, seller name and ID, brand, dispatch location, product URL and image.
- Compare the same keyword across the four countries to spot price gaps and best sellers.
- Try it on the Apify free plan: the monthly free credits cover hundreds of products.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Type a search keyword, for example `phone case`.
3. Pick the countries (PK, BD, LK, NP) and the maximum number of products, then click **Start**.
4. Download the results from the **Output** tab, or call the Actor from the API, Make, Zapier or n8n.

### Input

```json
{
  "query": "phone case",
  "countries": ["PK"],
  "maxItems": 5
}
```

### Output

Each product is one dataset item:

```json
{
  "country": "PK",
  "itemId": "123456789",
  "name": "Silicone phone case",
  "price": 499,
  "priceText": "Rs. 499",
  "originalPrice": 999,
  "discount": "50% Off",
  "unitsSold": 1200,
  "unitsSoldText": "1.2K sold",
  "rating": 4.6,
  "reviews": 85,
  "sellerName": "Mobile Zone",
  "sellerId": "100234",
  "location": "Lahore",
  "url": "https://www.daraz.pk/products/x-i1.html"
}
```

Some fields can be empty when Daraz does not show them for a product.

### How much does it cost?

This Actor uses **pay per event** pricing: you pay a small amount for each product returned, and nothing for products that are not produced. 1,000 products cost the price of 1,000 `result` events shown in the **Pricing** tab. Apify's free plan gives monthly credits to test it first.

### FAQ

#### Is it legal to scrape Daraz?

The Actor reads only public search pages, with no login. It does not solve captchas or bypass protections. Seller names are public store names. You are responsible for using the data lawfully, including the GDPR when personal data is involved, and for respecting Daraz's terms.

#### Why did I get fewer results than expected?

Daraz may return fewer pages for a keyword, or may temporarily block requests. The Actor stops politely instead of forcing access. Try again later or with a narrower keyword.

#### Does it cover Jumia or Tokopedia?

Not yet. This version covers Daraz only.

#### What if something does not work?

Open an issue in the **Issues** tab with your input and the run link.

#### Can I use it through the API?

Yes. Every run can be started and read through the Apify API and its Python and JavaScript clients.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/daraz-scraper/changelog.md

# Actor input Schema

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

Product keyword to search on Daraz, like 'phone case' or 'rice cooker'.

## `countries` (type: `array`):

Daraz sites to search: PK (daraz.pk), BD (daraz.com.bd), LK (daraz.lk), NP (daraz.com.np).

## `maxItems` (type: `integer`):

Stop after this many products in total. Keep it low to test cheaply.

## Actor input object example

```json
{
  "query": "phone case",
  "countries": [
    "PK"
  ],
  "maxItems": 5
}
```

# Actor output Schema

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

One dataset item per result, shown in the Overview view.

# 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": "phone case",
    "countries": [
        "PK"
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/daraz-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": "phone case",
    "countries": ["PK"],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/daraz-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": "phone case",
  "countries": [
    "PK"
  ],
  "maxItems": 5
}' |
apify call bonpleincapital/daraz-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/daraz-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/49BRDPhiLsPIvpdKp/builds/DeKl7c4EdVk0gCC6S/openapi.json
