Com APIdaraz.com.bd ↗
Search Daraz Bangladesh products, retrieve full product details, browse categories, and surface best sellers via a structured JSON API.
What is the Com API?
This API covers 5 endpoints for querying Daraz Bangladesh (daraz.com.bd), returning product listings, detailed product pages, category trees, and best-seller rankings. The search_products endpoint accepts a keyword query with optional sorting by popularity, orders, or price, and returns paginated summaries including pricing, discount, seller info, ratings, and review counts across the full Daraz Bangladesh catalog.
curl -X GET 'https://api.parse.bot/scraper/cdf90281-faa1-4811-ac8e-d85b75602758/search_products?page=1&sort=popularity&query=laptop' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace daraz-com-bd-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Daraz Bangladesh SDK — search products, browse categories, get details."""
from parse_apis.daraz_bangladesh_api import Daraz, Sort, ProductNotFound
client = Daraz()
# Search for laptops sorted by price ascending, capped at 5 results
for product in client.productsummaries.search(query="laptop", sort=Sort.PRICE_ASC, limit=5):
print(product.name, product.price, product.seller_name)
# Get best-selling phones
top_phone = client.productsummaries.best_selling(query="phone", limit=1).first()
if top_phone:
print(top_phone.name, top_phone.price, top_phone.sold_count)
# Navigate from summary to full product details
if top_phone:
try:
detail = top_phone.details()
print(detail.title, detail.brand, detail.category, detail.in_stock)
except ProductNotFound as exc:
print(f"Product gone: {exc}")
# Browse a category using constructible Category
for item in client.category("toys-games").browse(sort=Sort.POPULARITY, limit=3):
print(item.name, item.price, item.discount)
# List all top-level categories
for cat in client.categories.list(limit=5):
print(cat.name, cat.slug)
print("exercised: productsummaries.search / productsummaries.best_selling / details / category.browse / categories.list")
Full-text search over Daraz Bangladesh product listings. Returns a paginated list of product summaries matching the keyword query. Supports sorting by popularity, number of orders, or price. Each result includes pricing, seller info, and a product URL suitable for get_product_details.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. |
| sort | string | Sort order for results. |
| queryrequired | string | Search keyword (e.g. 'laptop', 'phone', 'shoes'). |
{
"type": "object",
"fields": {
"page": "current page number (integer)",
"sort": "the sort order used",
"items": "array of product summary objects with name, item_id, sku_id, price, original_price, discount, rating, review_count, sold_count, location, seller_name, image, url",
"query": "the search query echoed back",
"total_items": "total number of matching products (string)"
},
"sample": {
"data": {
"page": 1,
"sort": "popularity",
"items": [
{
"url": "https://www.daraz.com.bd/products/asus-tuf-gaming-a16-i1572542441.html",
"name": "Asus TUF Gaming A16 FA607NUG",
"image": "https://static-01.daraz.com.bd/p/da91b0eaf490057999c08117f718d6da.png",
"price": "155500",
"rating": "",
"sku_id": "12630610745",
"item_id": "1572542441",
"discount": "3% Off",
"location": "Chattogram",
"sold_count": null,
"seller_name": "MS Royal Select",
"review_count": "",
"original_price": "160000"
}
],
"query": "laptop",
"total_items": "4080"
},
"status": "success"
}
}About the Com API
Search and Browse
The search_products endpoint accepts a query string (e.g. 'laptop', 'shoes') and returns a paginated list of matching products. Each item in the items array includes name, item_id, sku_id, price, original_price, discount, rating, review_count, and sold_count. The optional sort parameter controls ordering — use 'popularity', 'orders', or 'price' — and the page parameter steps through results. The total_items field in the response tells you the full match count.
Product Details and Categories
get_product_details takes a full Daraz product page URL and returns a richer field set: title, brand, category path, price, discount, images array, in_stock boolean, sku, and item_id. The product_url input can be sourced directly from search results. get_category_list returns all top-level category name and slug pairs with no inputs required. Those slugs feed into browse_category, which lists products within a specific category and supports the same page and sort parameters as search.
Best Sellers
get_best_selling_product accepts a query keyword and always returns the first page of results sorted by order count. It returns the same items structure as search_products — name, item_id, sku_id, price, original_price, discount, rating, review_count, sold_count — making it a direct shortcut for identifying top-selling items in any product vertical without manually setting sort=orders.
Limitations to Know
browse_category depends on slug support at the category level; some slugs returned by get_category_list may not return product data if the underlying category page does not support it. Known working slugs include womens-fashion and toys-games. Product detail fields like highlights and description are available in the response but completeness varies by listing.
The Com API is a managed, monitored endpoint for daraz.com.bd — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when daraz.com.bd changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official daraz.com.bd API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Track price and discount changes on specific Daraz Bangladesh products using
get_product_detailsover time. - Build a best-seller dashboard for any product category by querying
get_best_selling_productwith relevant keywords. - Compare
priceandsold_countacross competing listings returned bysearch_productsfor a given keyword. - Populate a product catalog or affiliate feed using
browse_categoryto walk top-level categories. - Monitor
in_stockstatus for high-demand products by pollingget_product_detailson specific URLs. - Identify which brands dominate a search result page by aggregating the
brandfield acrosssearch_productsresults. - Build a category navigation index using
get_category_listslugs paired withbrowse_categoryproduct counts.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Daraz have an official public developer API?+
What does `get_product_details` return beyond what search gives you?+
search_products returns summary fields: name, price, discount, rating, review_count, and sold_count. get_product_details adds brand, category path, images array, in_stock boolean, sku, and item_id. It requires a full product page URL as input, which you can take directly from search result items.Does the API return customer reviews or review text?+
review_count and rating scores in search and product summary responses, but individual review text, reviewer names, and review dates are not exposed. You can fork this API on Parse and revise it to add a reviews endpoint targeting Daraz product review pages.Are all category slugs from `get_category_list` guaranteed to work with `browse_category`?+
get_category_list may produce an upstream error when passed to browse_category if that category page does not expose structured product data. Slugs confirmed to work include womens-fashion and toys-games. Test slugs individually and handle error responses in your integration.