# Daraz South Asia Product & Price Finder (`dataspryva/daraz-south-asia-product-and-price-finder`) Actor

Search Daraz products by keyword or category across the Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts, with price, rating, brand and shipping filters.

- **URL**: https://apify.com/dataspryva/daraz-south-asia-product-and-price-finder.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** E-commerce, Automation, 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.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 South Asia Product & Price Finder

Search **Daraz** — South Asia's largest online marketplace, covering Pakistan (daraz.pk), Bangladesh (daraz.com.bd), Sri Lanka (daraz.lk), and Nepal (daraz.com.np). Search products by keyword or browse Daraz's real category taxonomy (Mobiles & Tablets, Fashion, Health & Beauty, Groceries, and more), then filter by price range, star rating, and sort order. No login or cookies required.

### What this actor does

- **Three modes:** `search` (one keyword or a bulk list), `category` (browse Daraz's real navigation categories), and `urls` (crawl category, catalog, or search URLs you paste)
- **Four storefronts:** Pakistan, Bangladesh, Sri Lanka, Nepal — pick per run, or let URL hosts choose their own
- **Filters:** min/max price, minimum star rating, sort order (popularity / price low-high / price high-low), brand, shipped-from region, free-shipping only, in-stock only
- **Rich product data:** price, discount %, rating, review count, units sold, seller, shipping origin, SKU, promo badges, and product images
- **Optional detail enrichment:** full description, category path, complete image gallery, and availability from each product page
- **Deduplicated and paginated:** merged keyword/URL runs never emit the same product twice; every keyword/URL gets a fair share of `maxItems`, with unused budget carried forward to later sources; pagination stops at `maxItems`, Daraz's `noMorePages` flag, or ten repeated pages
- **Empty fields are omitted**

### Output per product

- `productId` — Daraz's internal item ID
- `title` — product listing title
- `price`, `priceFormatted` — numeric price and the storefront-formatted string (e.g. `Rs. 116,000`)
- `originalPrice`, `discountPercentage` — only present when the item is on sale
- `currency` — ISO code for the storefront (`PKR` / `BDT` / `LKR` / `NPR`)
- `rating`, `reviewCount` — only present when the product has reviews
- `itemsSoldText`, `itemsSold` — units sold, as shown and parsed to a number
- `brand`, `brandId`, `sku`, `skuId`
- `sellerName`, `sellerId`
- `shippedFrom` — origin province/region as shown on the listing
- `imageUrl` — primary product image
- `productUrl` — canonical product page link
- `inStock`, `isSponsored`, `freeShipping`
- `badges`, `badgeText` — normalized promo labels (free shipping, coins, voucher, mall, campaign, flash sale) and their display text
- `categoryIds` — Daraz's internal category IDs for the product
- `countrySite`, `countryName` — which storefront the record came from (`pk` / `bd` / `lk` / `np`)
- `description`, `categoryPath`, `imageUrls`, `availability` — only with `includeDetails`
- `recordType: "product"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` (keyword), `category` (browse), or `urls` (paste URLs) |
| `countrySite` | string | `pk` | `pk` / `bd` / `lk` / `np` — which Daraz storefront |
| `searchQuery` | string | `mobile phone` | Free-text keyword (mode=search; also narrows results within `mode=category` — clear it to browse a whole category) |
| `searchQueries` | array | – | Bulk keyword list for mode=search; merged, deduplicated, and capped by `maxItems` |
| `category` | string | `phones-tablets` | Category to browse (mode=category) — see the dropdown for the full list |
| `startUrls` | array | – | Daraz category/catalog/search URLs; URL filters are preserved. Used by mode=urls and alongside keyword/category crawls |
| `brand` | string | – | Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Samsung` |
| `shippedFrom` | string | – | Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Dhaka` |
| `freeShippingOnly` | boolean | `false` | Only keep products with a free-shipping badge |
| `inStockOnly` | boolean | `false` | Only keep products Daraz currently reports as in stock |
| `minPrice` | int | – | Drop products priced below this amount (local currency) |
| `maxPrice` | int | – | Drop products priced above this amount (local currency) |
| `minRating` | string | `0` | `0` (any) to `5` (5 stars only) |
| `sortBy` | string | `popularity` | `popularity` / `priceasc` / `pricedesc` |
| `includeDetails` | boolean | `false` | Add description, category path, gallery, and availability from each product page |
| `maxItems` | int | `50` | Hard cap on emitted records across all keywords and URLs (1–2000); when several sources run, each gets a fair share and unused budget carries forward |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify proxy config (AUTO datacenter group is sufficient) |

#### Example: keyword search with price range

```json
{
  "mode": "search",
  "countrySite": "pk",
  "searchQuery": "wireless earbuds",
  "minPrice": 1000,
  "maxPrice": 5000,
  "sortBy": "priceasc",
  "maxItems": 50
}
```

#### Example: browse a category, highly rated only

```json
{
  "mode": "category",
  "countrySite": "bd",
  "category": "beauty-health",
  "minRating": "4",
  "sortBy": "popularity",
  "maxItems": 100
}
```

#### Example: Nepal storefront, price high to low

```json
{
  "mode": "category",
  "countrySite": "np",
  "category": "computing",
  "sortBy": "pricedesc",
  "maxItems": 30
}
```

#### Example: Sri Lanka search, narrow by keyword within a category

```json
{
  "mode": "category",
  "countrySite": "lk",
  "category": "sports-travel",
  "searchQuery": "badminton",
  "maxItems": 40
}
```

#### Example: bulk keywords in one run

```json
{
  "mode": "search",
  "countrySite": "pk",
  "searchQueries": ["wireless earbuds", "bluetooth speaker", "power bank"],
  "minRating": "4",
  "maxItems": 90
}
```

#### Example: crawl pasted category and search URLs

```json
{
  "mode": "urls",
  "startUrls": [
    "https://www.daraz.pk/smartphones/",
    "https://www.daraz.com.bd/catalog/?q=airpods&sort=priceasc"
  ],
  "maxItems": 80
}
```

#### Example: keyword search with full product detail

```json
{
  "mode": "search",
  "countrySite": "np",
  "searchQuery": "gas stove",
  "includeDetails": true,
  "maxItems": 10
}
```

### Use cases

- **Price monitoring** — track pricing and discounts on specific products or categories across South Asian markets
- **Market research** — compare product assortments and pricing between Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts
- **Competitor analysis** — monitor seller listings, ratings, and units-sold signals for a category
- **Deal discovery** — filter by discount and rating to surface the best-value listings
- **Catalog enrichment** — pull structured product data (images, brand, seller) for downstream cataloging

### Data Source / Limitations

- Data comes from Daraz's own product-listing endpoint (the same one that powers the on-site search and category pages) — no scraping of unofficial mirrors or third-party resellers.
- Daraz's public search results page (`/catalog/`) is excluded by the site's `robots.txt`; this actor accesses it directly like the many third-party Daraz scrapers already on the market, and does not bypass any login, paywall, or CAPTCHA.
- `sortBy` only exposes the three sort orders Daraz's own UI provides (`popularity`, `priceasc`, `pricedesc`) — Daraz does not offer a distinct "newest" sort on product listings, so it is not included.
- `minRating` filters to Daraz's own rating buckets. Because most listings for a given search cluster at 4+ stars, low thresholds (1–3) and "any rating" often return very similar result sets — this reflects Daraz's actual rating distribution, not a bug.
- Category names and slugs reflect Daraz's real, currently-live navigation taxonomy as of the last verification pass; Daraz occasionally renames or merges categories.
- `brand` and `shippedFrom` are exact-match (case-insensitive) text filters rather than dropdowns — Daraz's brand and shipping-region lists differ per category/storefront and aren't a fixed, query-independent set, so they can't be enumerated reliably.
- `startUrls` accepts category, catalog, and search pages only. Product-detail pages and non-Daraz domains are ignored; trial loads of unknown or retired category slugs are skipped without failing the run.
- `includeDetails` opens one product page per emitted record. If a detail page is briefly rate-limited, that record still ships with its listing fields and the detail-only fields are simply absent.
- Daraz reports the same headline `totalResults` for some listing endpoints and can return short pages before the real end of results; pagination therefore follows the site's exhaustion signal and `maxItems`, never a short-page guess.
- Daraz serves at most 4,080 products for one search/category page (`102` pages of `40`), and its category endpoint occasionally re-serves an earlier page instead of advancing. To get deeper coverage, partition one query into several narrower runs (categories, price bands, keywords, or storefronts); this actor stops safely after ten repeated pages instead of looping.
- `includeDetails` reads the product page's cookieless Product JSON-LD: description, category path, image gallery, SKU/MPN, and availability. Daraz's product JSON-LD does not carry the live charged price (only the struck-through list price), so `price`, `originalPrice`, and `discountPercentage` always come from the listing payload.
- Customer review text, seller-profile metrics, and variant-level SKU pricing live on separate Daraz surfaces and are not part of this actor; `rating`, `reviewCount`, and `itemsSold` are the listing-level signals Daraz publishes.
- Product-detail URLs are not accepted as crawl sources; `startUrls` takes category, catalog, and search pages, and `includeDetails` enriches the resulting listing records.
- Daraz rate-limits a single IP after roughly 20–30 rapid listing requests. This actor rotates Apify proxy sessions every ten requests and, if the block persists, saves everything already scraped and says so in the run status instead of failing silently.

### FAQ

**Is this affiliated with Daraz?**  No. This is an independent, third-party actor that reads Daraz's public product-listing data. It is not endorsed by or affiliated with Daraz or Alibaba Group.

**Do I need a Daraz account, login, or API key?**  No. All modes work without authentication.

**Which countries are supported?**  Pakistan (`daraz.pk`), Bangladesh (`daraz.com.bd`), Sri Lanka (`daraz.lk`), and Nepal (`daraz.com.np`) — pick via `countrySite`.

**Can I combine keyword search with a category?**  Yes — set `mode` to `category` and also fill in `searchQuery` to narrow results to that keyword within the chosen category.

**Why do some products have no `rating` or `reviewCount`?**  Those fields are omitted when a product has no reviews yet — Daraz doesn't show a rating for unreviewed listings.

**Why is `originalPrice` sometimes missing?**  It's only included when the product is actively discounted. Full-price listings only have `price`.

**How many products can one run return?**  Up to `maxItems` (2,000) across all keywords and URLs, as long as Daraz serves them. Daraz caps a single query/category at 4,080 products; for deeper coverage, split the query into narrower runs by category, price band, or keyword.

**Does `includeDetails` fill every product?**  It fills every product whose detail page answers normally. If a detail page is briefly rate-limited or unavailable, that row still ships with its listing fields and the detail-only fields are simply omitted.

**How fresh is the data?**  Real-time — every run queries Daraz's live listing endpoint directly.

**What does `itemsSoldText` vs `itemsSold` mean?**  `itemsSoldText` is Daraz's own display string (e.g. `"16.1K sold"`); `itemsSold` is that same value parsed into a plain number (`16100`) for easier filtering and sorting.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: search keywords, browse a category, or crawl one or more Daraz category/search URLs.

## `countrySite` (type: `string`):

Which Daraz storefront to scrape.

## `searchQuery` (type: `string`):

Free-text keyword (mode=search). Also used to narrow results within a category when mode=category.

## `searchQueries` (type: `array`):

Optional list of keywords for mode=search. Each keyword is crawled independently; results merge into one dataset with duplicates removed and the total capped by `maxItems`. When empty, `searchQuery` is used.

## `category` (type: `string`):

Daraz category to browse (mode=category).

## `startUrls` (type: `array`):

Daraz category pages (e.g. `https://www.daraz.pk/smartphones/`), catalog/search pages (e.g. `https://www.daraz.pk/catalog/?q=airpods`), or both. Filters present in a URL (price, rating, sort, keyword) are preserved. Product-detail pages and other domains are ignored. Used by mode=urls, and optionally alongside a keyword or category crawl.

## `brand` (type: `string`):

Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Dell`, `Samsung`, `Nike`. Matched against the brand Daraz shows on the listing — leave empty to include all brands. Narrower than a dropdown because Daraz doesn't expose a fixed, query-independent brand list.

## `shippedFrom` (type: `string`):

Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Sindh`, `Local`, `Overseas` (Pakistan); `Dhaka`, `Chattogram` (Bangladesh); `Western`, `Southern` (Sri Lanka); `Bagmati Province` (Nepal). Matches Daraz's own "Shipped From" filter — leave empty to include all regions.

## `freeShippingOnly` (type: `boolean`):

Only keep products that show a free-shipping / free-delivery badge.

## `inStockOnly` (type: `boolean`):

Only keep products Daraz currently reports as in stock.

## `minPrice` (type: `integer`):

Drop products priced below this amount (in the storefront's local currency).

## `maxPrice` (type: `integer`):

Drop products priced above this amount (in the storefront's local currency).

## `minRating` (type: `string`):

Only include products with at least this star rating.

## `sortBy` (type: `string`):

Result ordering, matching Daraz's own sort options.

## `includeDetails` (type: `boolean`):

Open each product page to add its full description, category path, all image URLs, and stock availability. Adds one extra request per emitted product; listing fields are still returned when a detail page cannot be read.

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

Hard cap on the number of products emitted across all keywords and URLs in the run.

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

Daraz's product-listing API accepts plain datacenter traffic, so the free AUTO group is sufficient. Left on by default for IP diversity across large runs.

## Actor input object example

```json
{
  "mode": "search",
  "countrySite": "pk",
  "searchQuery": "mobile phone",
  "category": "phones-tablets",
  "freeShippingOnly": false,
  "inStockOnly": false,
  "minRating": "0",
  "sortBy": "popularity",
  "includeDetails": false,
  "maxItems": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing all scraped Daraz products.

# 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 = {
    "mode": "search",
    "countrySite": "pk",
    "searchQuery": "mobile phone",
    "category": "phones-tablets",
    "freeShippingOnly": false,
    "inStockOnly": false,
    "minRating": "0",
    "sortBy": "popularity",
    "includeDetails": false,
    "maxItems": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/daraz-south-asia-product-and-price-finder").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 = {
    "mode": "search",
    "countrySite": "pk",
    "searchQuery": "mobile phone",
    "category": "phones-tablets",
    "freeShippingOnly": False,
    "inStockOnly": False,
    "minRating": "0",
    "sortBy": "popularity",
    "includeDetails": False,
    "maxItems": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/daraz-south-asia-product-and-price-finder").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 '{
  "mode": "search",
  "countrySite": "pk",
  "searchQuery": "mobile phone",
  "category": "phones-tablets",
  "freeShippingOnly": false,
  "inStockOnly": false,
  "minRating": "0",
  "sortBy": "popularity",
  "includeDetails": false,
  "maxItems": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call dataspryva/daraz-south-asia-product-and-price-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/daraz-south-asia-product-and-price-finder"
        }
    }
}
```

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/9Kt0zUt1GB6OQF3OB/builds/Age1VbMfI0AKGdbhI/openapi.json
