# Daraz Scraper (`chartedsea/daraz-scraper`) Actor

Scrape Daraz search results, categories, products, reviews, sellers, and
marketplace discovery feeds without maintaining anti-bot headers, signatures,
cookies, browser sessions, or mobile API behavior.

- **URL**: https://apify.com/chartedsea/daraz-scraper.md
- **Developed by:** [Charted Sea](https://apify.com/chartedsea) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 dataset results

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

## Daraz Scraper

Scrape Daraz search results, categories, products, reviews, sellers, and
marketplace discovery feeds without maintaining anti-bot headers, signatures,
cookies, browser sessions, or mobile API behavior.

The Actor accepts Daraz page URLs and backend API URLs for Bangladesh,
Pakistan, Sri Lanka, and Nepal. Each request is processed independently and
produces one row in the default dataset.

### Quick start

```json
{
  "requests": [
    {
      "url": "https://www.daraz.com.bd/catalog/?q=tshirt"
    }
  ]
}
```

A run accepts 1 to 100 requests. The Actor waits for every request to reach a
terminal state before publishing results and charging finalized events.

### Input

Shared options apply to every request. A value inside an individual request
overrides the shared value for that request.

- `requests` - Required array containing 1 to 100 Daraz requests.
- `emulateMobileDevice` - Emulate mobile web traffic. Default: `false`.
- `language` - Optional request language.

Per-request fields:

- `url` - Required Daraz page or backend API URL.
- `method` - `GET` or `POST`. Default: `GET`.
- `payload` - JSON body for Product Reviews V2.
- Any shared option above - Overrides that option for this request.

`cleanResponseBody` is not supported. Unknown request options are passed to the
backend for forward compatibility.

#### Product search and Seller products options

These options affect only Product search and Seller products requests, whether
supplied at the input or request level:

- `productListing_crawlNextPages` - Crawl subsequent listing pages.
- `productListing_crawlNextPages_maxPages` - Maximum listing pages.
- `productListing_crawlNextPages_maxUniqueProducts` - Maximum unique products.
- `productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates` - Stop
  on a page containing only products already collected. Default: `true`.
- `productListing_crawlNextPages_stopWhenNoMorePagesIsTrue` - Stop when Daraz
  reports no more pages. Default: `true`.

Supported Daraz markets:

- Bangladesh: `daraz.com.bd`
- Pakistan: `daraz.pk`
- Sri Lanka: `daraz.lk`
- Nepal: `daraz.com.np`

### Supported Daraz APIs

#### Product search by keyword, category, or seller

```text
https://www.daraz.${tld}/catalog/?q=${keyword}
https://www.daraz.${tld}/${categorySlug}/
https://www.daraz.${tld}/${sellerSlug}/?q=All-Products&from=wangpu&langFlag=en&pageTypeId=2
```

Avoid adding `page` directly. Daraz requires sequential navigation from the
first page. Use `productListing_crawlNextPages` for multi-page crawling.

```json
{
  "requests": [
    { "url": "https://www.daraz.com.bd/catalog/?q=tshirt" },
    { "url": "https://www.daraz.com.bd/mens-t-shirts/" },
    { "url": "https://www.daraz.com.bd/en-shop-choice-selection/?q=All-Products&from=wangpu&langFlag=en&pageTypeId=2" }
  ]
}
```

Examples:

- [Keyword products](https://www.chartedsea.com/assets/files/keyword_products-c60221c1afaa3175ec9b7eeb034a7539.json)
- [Category products](https://www.chartedsea.com/assets/files/category_products-bc867677c0443cfcfa26fc5c0ddee805.json)
- [Seller products](https://www.chartedsea.com/assets/files/seller_products-0764926b0e6e183859af2c14e91d7267.json)

#### Product details

```text
https://www.daraz.${tld}/products/${productSlug}-i${productId}.html
```

```json
{
  "requests": [
    { "url": "https://www.daraz.com.bd/products/dream-smile-half-sleeve-t-shirt-for-men-i461222129.html" }
  ]
}
```

[Product detail example](https://www.chartedsea.com/assets/files/product_detail-1169a3148f2c5db1223cb174f7c5720a.json)

#### Product reviews

```text
https://my.daraz.${tld}/pdp/review/getReviewList?itemId=${productId}
```

```json
{
  "requests": [
    { "url": "https://my.daraz.com.bd/pdp/review/getReviewList?itemId=461222129" }
  ]
}
```

[Product reviews example](https://www.chartedsea.com/assets/files/product_reviews-d3cea8a2ac5de94544871d6cc375e57d.json)

#### Product Reviews V2

Use `POST` with this endpoint:

```text
https://acs-m.daraz.${tld}/h5/mtop.lazada.review.item.getpcreviewlist/1.0/
```

```json
{
  "requests": [
    {
      "url": "https://acs-m.daraz.com.bd/h5/mtop.lazada.review.item.getpcreviewlist/1.0/",
      "method": "POST",
      "payload": {
        "itemId": 461222129,
        "pageSize": 5,
        "pageNo": 1,
        "ratingFilter": 0,
        "sort": 0,
        "tagId": 0
      }
    }
  ]
}
```

[Product Reviews V2 example](https://www.chartedsea.com/assets/files/product_reviews_v2-29f58c268749a270dc5252e861d09818.json)

#### Category tree

```text
https://acs-m.daraz.${tld}/h5/mtop.lazada.guided.shopping.categories.categorieslpcommon/1.0/
```

[Category tree example](https://www.chartedsea.com/assets/files/category_tree-bcd9994896a89167b05f5af5fbc2575b.json)

#### Seller listing

```text
https://www.daraz.${tld}/sitemap-shop-all.xml?limit=${limit}&offset=${offset}
```

Use a limit of 30 or fewer. The offset is normally a multiple of the limit.

[Seller listing example](https://www.chartedsea.com/assets/files/seller_listing-f82a1d99f324739821c7b612d8b7a4cc.json)

#### Seller details

```text
https://www.daraz.${tld}/shop/${sellerSlug}/
```

[Seller detail example](https://www.chartedsea.com/assets/files/seller_detail-00346a1ee195c8026f2e10cde1c67b67.json)

#### Seller promoted products

```text
https://www.daraz.${tld}/shop/site/api/shop/campaignTppProducts/query?shopId=${shopId}&sellerId=${sellerId}&itemId=${productId}
```

[Seller promoted products example](https://www.chartedsea.com/assets/files/seller_campaign_tpp_products-2045edf9f07c82f775f22672b58f4186.json)

#### Keyword listing

```text
https://www.daraz.${tld}/sitemap-tag-all.xml?limit=${limit}&offset=${offset}
```

[Keyword listing example](https://www.chartedsea.com/assets/files/keyword_listing-6e34a949e56ec3a24061e364efc49627.json)

### Output

The default dataset contains one row per input request:

```json
{
  "marketplaceRunUuid": "...",
  "taskUuid": "...",
  "url": "https://www.daraz.com.bd/catalog/?q=tshirt",
  "status": "SUCCESS",
  "responseBody": {}
}
```

Output fields:

- `marketplaceRunUuid` - Marketplace run ID.
- `taskUuid` - Task ID.
- `url` - Original requested URL.
- `status` - Terminal request status.
- `responseBody` - Native Daraz response for a successful request.
- `error` - Error description for an unsuccessful request.

Rows remain in the same logical request order. One failed request does not hide
successful rows from the same batch.

### Related Actors

- [AliExpress Scraper](https://apify.com/chartedsea/aliexpress-scraper) - Scrape AliExpress searches, products, reviews, sellers, and categories.

### Pricing and charging

Pay as you go with no subscription or monthly minimum:

- Successful Daraz request: $0.00272 per request, or $2.72 per 1,000 successful
  requests.
- Proxy usage: $0.00013 per started block of 100 proxy units.
- Actor start: $0.00005 per GB of Actor memory, with a minimum of one event.
- Dataset result: $0.00001 per result written to the default dataset.

This is a PAY\_PER\_EVENT Actor. It charges one `csea-scrape-daraz` event per
successful Daraz request and finalized `csea-proxy-unit` events for proxy usage.
Failed or cancelled requests are not charged as successful Daraz requests. Use
Apify's maximum total charge setting to bound an execution's total cost.

### Graceful aborts and retries

A graceful Apify abort cancels known scraping tasks and waits for backend
finalization. Interrupted Actor executions persist their marketplace-run,
charging, and output state so they can resume without intentionally duplicating
charges or dataset rows.

### Operational guidance

- Monitor success rates during major Daraz campaigns.
- Expect stricter anti-bot behavior during high-traffic sales.
- Prefer bounded listing crawls over unbounded multi-page requests.

# Actor input Schema

## `requests` (type: `array`):

One to 100 Daraz requests. URLs and scraper-specific options are validated before processing.

## `emulateMobileDevice` (type: `boolean`):

Whether to emulate mobile web traffic.

## `language` (type: `string`):

Language for this request.

## `productListing_crawlNextPages` (type: `boolean`):

Whether to crawl subsequent product-listing pages.

## `productListing_crawlNextPages_maxPages` (type: `integer`):

Maximum number of product-listing pages to crawl.

## `productListing_crawlNextPages_maxUniqueProducts` (type: `integer`):

Maximum number of unique products to collect.

## `productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates` (type: `boolean`):

Stop when a listing page contains only products already collected.

## `productListing_crawlNextPages_stopWhenNoMorePagesIsTrue` (type: `boolean`):

Stop when the marketplace reports that no more listing pages exist.

## Actor input object example

```json
{
  "requests": [
    {
      "url": "https://www.daraz.com.bd/catalog/?q=tshirt"
    }
  ],
  "emulateMobileDevice": false,
  "language": "en",
  "productListing_crawlNextPages": false,
  "productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates": true,
  "productListing_crawlNextPages_stopWhenNoMorePagesIsTrue": true
}
```

# Actor output Schema

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

Complete result rows in the default dataset.

# 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 = {
    "requests": [
        {
            "url": "https://www.daraz.com.bd/catalog/?q=tshirt"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chartedsea/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 = { "requests": [{ "url": "https://www.daraz.com.bd/catalog/?q=tshirt" }] }

# Run the Actor and wait for it to finish
run = client.actor("chartedsea/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 '{
  "requests": [
    {
      "url": "https://www.daraz.com.bd/catalog/?q=tshirt"
    }
  ]
}' |
apify call chartedsea/daraz-scraper --silent --output-dataset

```

## MCP server setup

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