Skip to main content

Daraz Scraper

Introduction​

info

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

The Daraz scraper provides access to Daraz marketplace data.

It allows you to invoke Daraz APIs directly without handling:

  • Anti-bot headers
  • Signature logic
  • Mobile vs desktop differences
  • Cookie management

Supported Daraz ventures:

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

Charted Sea continuously maintains this scraper against Daraz platform updates. No action is required on your side when Daraz changes internal APIs.

Usage​

Submit tasks to:

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

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

cleanResponseBody is not supported. If you specify it with a value other than false, the scraping task will be rejected and fail.

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

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-shop-all.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-shop-all.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}/sitemap-tag-all.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-tag-all.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.