# Daraz Product Scraper — Prices, Ratings & Sellers (`muhammadafzal/daraz-product-scraper`) Actor

Extract public Daraz product-page data from direct URLs, including prices, ratings, sellers, stock, images, and categories for e-commerce research and AI workflows.

- **URL**: https://apify.com/muhammadafzal/daraz-product-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Automation, MCP servers, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 daraz product returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Daraz Product Scraper

Extract public product data from direct Daraz product pages. This Actor is for e-commerce research, price monitoring, catalog enrichment, and agent workflows that need one stable product record per item.

Provide direct public product URLs. The Actor extracts structured product-page metadata with no login or private seller access.

### What it extracts

| Field | Description |
| --- | --- |
| `title`, `productUrl`, `productId`, `sku` | Public product identity |
| `price`, `originalPrice`, `currency`, `discountPercent` | Current public pricing |
| `rating`, `reviewCount`, `soldCount` | Public demand signals when shown |
| `sellerName`, `sellerUrl`, `brand`, `categories` | Public seller and catalog context |
| `imageUrl`, `imageUrls`, `description`, `inStock` | Public product-page details when exposed |

Fields that Daraz does not display are returned as `null` (or an empty array), rather than being guessed.

### When to use it

Use this Actor for public Daraz product-page data when you already have product URLs. It is not a catalog keyword-search, checkout, login, inventory-reservation, private seller-data, or customer-data tool.

### Input

```json
{
  "productUrls": [{ "url": "https://www.daraz.pk/products/10-12-pvc-i880911068-s3900974109.html" }],
  "maxItems": 1,
  "includeProductDetails": true,
  "maxConcurrency": 1
}
```

Direct product URLs may come from any supported Daraz marketplace domain: `PK`, `BD`, `LK`, `NP`, `MY`, `PH`, `TH`, `VN`, `ID`, or `SG`.

### Output

Each dataset item has a stable `recordType: "product"` and all documented keys:

```json
{
  "recordType": "product",
  "productId": "123456789",
  "title": "Wireless Bluetooth Headphones",
  "productUrl": "https://www.daraz.pk/products/example-i123456789.html",
  "marketplace": "daraz.pk",
  "price": 2499,
  "currency": "PKR",
  "rating": 4.5,
  "reviewCount": 120,
  "sellerName": "Example Official Store",
  "sourceType": "productUrl",
  "searchQuery": null,
  "scrapedAt": "2026-08-09T00:00:00.000Z",
  "warnings": []
}
```

The `OUTPUT` key-value record gives run status, counts, result-event charges, and concise diagnostics. A valid query with no matching product cards returns an empty dataset and a warning summary; an all-request access failure fails honestly rather than manufacturing products.

### Pricing

The Actor is configured for Pay Per Event. One unique, schema-valid product successfully written to the dataset is one `daraz-product` result event at **$0.01**. The maximum product-event charge is capped by `maxItems`: 20 products means at most $0.20 in result events, excluding any platform usage or proxy charges applicable to the run.

The actor charges only after a record has been written successfully and never charges duplicate records. The final live pricing state must be verified in Apify Console before publication.

### Reliability notes

Daraz may change its public markup or rate-limit cloud traffic. The default concurrency is deliberately one and requests use persistent sessions. If direct traffic is blocked, configure an owner-authorized Apify proxy—typically a residential group located in the selected marketplace country. The Actor reports blocked, empty, and partial outcomes distinctly in `OUTPUT`.

### API example

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('YOUR_USERNAME/daraz-product-scraper').call({
  productUrls: [{ url: 'https://www.daraz.pk/products/10-12-pvc-i880911068-s3900974109.html' }],
  maxItems: 1,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Legal and responsible use

Only collect public data you are entitled to access. Follow Daraz’s terms, applicable law, and reasonable rate limits. Do not use this Actor to collect private information, bypass access controls, or interfere with Daraz services.

### Other dedicated scrapers

For adjacent research workflows, see [Google AI Overview Scraper](https://apify.com/muhammadafzal/google-ai-overview-scraper), [Yandex Maps Reviews Scraper](https://apify.com/muhammadafzal/yandex-maps-reviews-scraper), [HTML to JSON Smart Parser](https://apify.com/muhammadafzal/html-to-json-smart-parser), [Compass Scraper](https://apify.com/muhammadafzal/compass-scraper), [BBB Business Scraper](https://apify.com/muhammadafzal/bbb-business-scraper), [Google Events](https://apify.com/muhammadafzal/google-events), [AEO Tracker](https://apify.com/muhammadafzal/aeo-tracker), and [ChatGPT Brand Visibility Tracker](https://apify.com/muhammadafzal/chatgpt-brand-visibility-tracker).

# Actor input Schema

## `productUrls` (type: `array`):

Use this when you already know the public Daraz product pages to scrape. Provide direct Daraz URLs, for example https://www.daraz.pk/products/example-i123.html. This is not for category or seller URLs.

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

Use this to cap total unique product records from every input. Enter an integer from 1 to 500; default is 20. This also caps result-event charges.

## `includeProductDetails` (type: `boolean`):

Use this when public product-page metadata such as description, seller, stock, categories, and additional images should be extracted. Default is true.

## `maxConcurrency` (type: `integer`):

Use this to limit parallel browser pages. Enter 1 to 3; default is 1 to reduce rate-limit risk on Daraz.

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

Use this when direct cloud traffic is blocked. Supply an Apify proxy configuration, for example {"useApifyProxy":true,"groups":\["RESIDENTIAL"],"countryCode":"PK"}. Leave empty to access directly.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://www.daraz.pk/products/10-12-pvc-i880911068-s3900974109.html"
    }
  ],
  "maxItems": 20,
  "includeProductDetails": true,
  "maxConcurrency": 1,
  "proxyConfiguration": {}
}
```

# Actor output Schema

## `products` (type: `string`):

Normalized Daraz product records returned by this run.

## `productsCsv` (type: `string`):

Product records as a CSV export.

## `summary` (type: `string`):

Counts, warnings, failures, and billing diagnostics for this run.

## `consoleRun` (type: `string`):

Run logs, status, and dataset preview.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/daraz-product-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/daraz-product-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 '{}' |
apify call muhammadafzal/daraz-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/daraz-product-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/5UiREX58BheGyB26b/builds/Fq4JhkluMPWlpD30a/openapi.json
