Skip to main content

Daraz Scraper

info

The Daraz scraper is in beta. Please contact us to report any issue you encounter.

Introduction

The Daraz scraper provides reliable access to Daraz marketplace data across Bangladesh, Pakistan, Sri Lanka, and Nepal.

Supported Daraz ventures:

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

Daraz requests use the Lazada task endpoint:

POST /scraping-tasks/lazada/run

Daraz uses the same pricing as Lazada. See the Pricing page for current pricing details.

Usage

request_body='{
"requests": [
{
"url": "https://www.daraz.com.bd/catalog/?q=tshirt",
"language": "en"
}
]
}'
curl_args=(
--header "Content-Type: application/json"
--header "Authorization: Bearer ${token}"
--request POST
--data "$request_body"
https://continuous-scraper.common.chartedapi.com/scraping-tasks/lazada/run
)
curl "${curl_args[@]}"

The Daraz endpoint or page URL is specified inside the request body. Each request is processed independently.

See the API Reference for the complete task API.

Supported APIs

Product Search by Keyword or Category or Seller

  • URL Path:
    • 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
warning

Avoid specifying the page parameter in the URL. Daraz requires sequential navigation from the first page. Use productListing_crawlNextPages for multi-page crawling.

  • URL Parameters:

    • keyword: Search keyword, e.g. tshirt.
    • categorySlug: Category slug, e.g. mens-t-shirts.
    • sellerSlug: Seller slug, e.g. en-shop-choice-selection.
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true.
    • productListing_crawlNextPages (default = false): Enables automatic crawling of subsequent pages.
    • productListing_crawlNextPages_maxPages (optional): Sets a maximum number of pages to crawl.
    • productListing_crawlNextPages_maxUniqueProducts (optional): Sets a maximum number of unique products to return.
    • productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates (default = true): Stops when a page only contains products already returned.
    • productListing_crawlNextPages_stopWhenNoMorePagesIsTrue (default = true): Stops when the response reports that no more pages are available.
  • Example Input:

{
"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" }
]
}

Product Details

  • URL Path:

    • https://www.daraz.${tld}/products/${productSlug}-i${productId}.html
  • URL Parameters:

    • productSlug: Product slug, e.g. dream-smile-half-sleeve-t-shirt-for-men.
    • productId: Product ID (a.k.a. itemId), e.g. 461222129.
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true. Some APIs may return different results in this mode.
  • Example Input:

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

Product Reviews

  • URL Path:

    • https://my.daraz.${tld}/pdp/review/getReviewList?itemId=${productId}
  • URL Parameters:

    • productId: Product ID (a.k.a. itemId), e.g. 461222129.
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true. Some APIs may return different results in this mode.
  • Example Input:

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

The response body is a JSON object containing reviewTotal and a reviews array.

Product Reviews V2

  • Request Method:

    • POST
  • URL Path:

    • https://acs-m.daraz.${tld}/h5/mtop.lazada.review.item.getpcreviewlist/1.0/
  • Request Body Parameters:

    • itemId: Product ID.
    • pageSize (default = 5): Number of reviews to return.
    • pageNo (default = 1): Page number, starting at 1.
    • ratingFilter (min = 0, max = 5): 0 for all reviews or 1 through 5 for a star rating.
    • sort (default = 0): 0 for default order or 1 for recent reviews.
    • tagId (default = 0): 0 for all reviews, -1 for reviews with images or videos, or -3 for repeat customers.
  • Example Input:

{
"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
}
}
]
}

Category Tree

  • URL Path:

    • https://acs-m.daraz.${tld}/h5/mtop.lazada.guided.shopping.categories.categorieslpcommon/1.0/
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true. Some APIs may return different results in this mode.
  • Example Input:

{
"requests": [
{ "url": "https://acs-m.daraz.com.bd/h5/mtop.lazada.guided.shopping.categories.categorieslpcommon/1.0/" }
]
}

Seller Listing

  • URL Path:

    • https://www.daraz.${tld}/sitemap-sellers.xml?limit=${limit}&offset=${offset}
  • URL Parameters:

    • limit: Number of sub-sitemaps to load. Use 30 or fewer.
    • offset: Sub-sitemap offset, typically a multiple of limit.
  • Example Input:

{
"requests": [
{ "url": "https://www.daraz.com.bd/sitemap-sellers.xml?limit=5&offset=0" }
]
}

Seller Details

  • URL Path:

    • https://www.daraz.${tld}/shop/${sellerSlug}/
  • URL Parameters:

    • sellerSlug: Seller slug, e.g. en-shop-choice-selection.
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true. Some APIs may return different results in this mode.
  • Example Input:

{
"requests": [
{ "url": "https://www.daraz.com.bd/shop/en-shop-choice-selection/" }
]
}

Seller Promoted Products

  • URL Path:

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

    • shopId: Shop ID, available from Seller Details.
    • sellerId: Seller ID, available from Seller Details.
    • productId: Any product ID from the seller.
  • Scraper Input Parameters:

    • emulateMobileDevice (default = false): Simulates a mobile browser when set to true. Some APIs may return different results in this mode.
  • Example Input:

{
"requests": [
{ "url": "https://www.daraz.com.bd/shop/site/api/shop/campaignTppProducts/query?shopId=506833&sellerId=700690144803&itemId=461222129" }
]
}

Keyword Listing

  • URL Path:

    • https://www.daraz.${tld}/tag-order-last-90days-morethan0.xml?limit=${limit}&offset=${offset}
  • URL Parameters:

    • limit: Number of sub-sitemaps to load. Use 30 or fewer.
    • offset: Sub-sitemap offset, typically a multiple of limit.
  • Example Input:

{
"requests": [
{ "url": "https://www.daraz.com.bd/tag-order-last-90days-morethan0.xml?limit=5&offset=0" }
]
}

Operational Recommendations

  • Monitor success rates during high-traffic campaigns.
  • Expect stricter anti-bot protections during major sales events.
  • Pause traffic if failures rise unexpectedly.