Skip to the content

Scraper API

Daraz

daraz.searchAvailable

Daraz search

The products the search lists: title, price, the price before the discount, rating, number of ratings, number sold, brand, shop and where it ships from.

Give it Words to search for, the country (Pakistan, Bangladesh, Sri Lanka or Nepal), a page and an order.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
4, 1 required
Record
20 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/daraz.search/runs

{
"input": {
"query": "headphones",
"country": "pk"
}
}

sent, and answered

a record of the run20 fields

{
position: 1
item_id: "1983068823"
title: "Wireless Bluetooth Headphones with Mic Deep Bass HiFi Stereo Noise Can…
url: "https://www.daraz.pk/products/aux-tf-i1983068823.html"
price: 1199
original_price: 3499
discount_percent: 66
price_text: "Rs. 1,199"
currency: "PKR"
… 11 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 20 fields are set down here; the whole record is below.

daraz.pk
The page Daraz search reads, as a browser shows it
The page this scraper reads, photographed in a browser on 19 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Price a product in South Asia
Search the same words in Pakistan, Bangladesh, Sri Lanka and Nepal and compare price and discount_percent, each price in its own currency.
Find the best sellers
Sort a search's products by sold and reviews to see what moves on Daraz, and from which seller.
Watch discounting
Keep price and original_price for a search over weeks to see how deep and how often products are discounted.

What you send

Words to search for, the country (Pakistan, Bangladesh, Sri Lanka or Nepal), a page and an order. These are its 4 inputs, as its schema has them.

querystring Required
Words to search for.
countrystring Optional
pk Pakistan, bd Bangladesh, lk Sri Lanka or np Nepal. pk unless you say otherwise.Default pk
pageinteger Optional
The page of results, from 1. A page holds 40 products.Default 1
sortstring Optional
best_match, price_low or price_high. best_match unless you say otherwise.Default best_match

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/daraz.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"headphones","country":"pk"}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("daraz.search", {
    "query": "headphones",
    "country": "pk",
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("daraz.search", {
  query: "headphones",
  country: "pk",
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "daraz.search", map[string]any{"query": "headphones", "country": "pk"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("daraz.search", Map.of("query", "headphones", "country", "pk"));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run daraz.search --input query=headphones --input country=pk

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The products the search lists: title, price, the price before the discount, rating, number of ratings, number sold, brand, shop and where it ships from. A record has 20 fields. One we could not read is null, never an empty string or a zero.

A record daraz.search returned
{
  "position": 1,
  "item_id": "1983068823",
  "title": "Wireless Bluetooth Headphones with Mic Deep Bass HiFi Stereo Noise Cancelling Foldable Over Ear Headset for Gaming Online Classes Gym Travel Laptop PC Support AUX TF Card Long Battery Backup Comfortable Ear Cushions Premium Sound Handsfree",
  "url": "https://www.daraz.pk/products/aux-tf-i1983068823.html",
  "price": 1199,
  "original_price": 3499,
  "discount_percent": 66,
  "price_text": "Rs. 1,199",
  "currency": "PKR",
  "rating": 4.22,
  "reviews": 23,
  "sold": "185 sold",
  "brand": "No Brand",
  "seller": "Tech Gadgets Shop",
  "seller_id": "6005725392705",
  "location": "Punjab",
  "in_stock": true,
  "sponsored": false,
  "image": "https://static-01.daraz.pk/p/58a9006b939bcfa66a759211d9b66fdb.png",
  "fetched_at": "2026-11-19T18:50:53.372710Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

The fields of a record

positioninteger
The product's place in the results, from 1, counting on across pages.
item_idstring
Daraz's number for the product, as in its page's address (…-i<number>.html).
titlestring
The product's title.
urlstring
The address of the product's page.
pricenumber or null
The price now, in the country's currency (see currency).
original_pricenumber or null
The price before the discount, where the page shows one.
discount_percentinteger or null
The discount, as the percentage of the price before it that the page prints, e.g. 66. Null when there is none.
price_textstring or null
The price as printed, e.g. Rs. 1,199, ৳ 850.
currencystring
The ISO 4217 code of the country's currency: PKR, BDT, LKR or NPR.
ratingnumber or null
The average rating, out of 5. Null for a product without ratings.
reviewsinteger or null
The number of ratings.
soldstring or null
How many have sold, as printed, e.g. 185 sold, 1.2K sold.
brandstring or null
The brand, as Daraz files it. No Brand is Daraz's own label for a product without one.
sellerstring or null
The shop that sells it on Daraz.
seller_idstring or null
Daraz's number for that shop.
locationstring or null
Where the shop ships from, e.g. Punjab, Dhaka.
in_stockboolean or null
Whether it is in stock.
sponsoredboolean
Whether the place in the results was paid for.
imagestring or null
The product's picture.
fetched_atdatetime
When the results were read, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • One run reads one page of results.
  • When nothing matches the words exactly, Daraz lists what it finds closest, and those are returned.

The bounds its schema sets

page
1 to 102; 1 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Daraz search return?

The products the search lists: title, price, the price before the discount, rating, number of ratings, number sold, brand, shop and where it ships from. A record has 20 fields, among them position, item_id, title, url, price and original_price. A value that could not be read is null, never an empty string or a zero.

What do I send?

Words to search for, the country (Pakistan, Bangladesh, Sri Lanka or Nepal), a page and an order. The input query is required. Optional: country, page and sort.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: page 1 to 102 (1 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

One run reads one page of results. When nothing matches the words exactly, Daraz lists what it finds closest, and those are returned.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id daraz.search and the same input. It costs what the same API call costs.

Daraz

Products on Daraz in Pakistan, Bangladesh, Sri Lanka and Nepal, as a search lists them: price, discount, rating, sales, brand and shop.

Daraz on the line-up

Where
4 countries

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.