daraz.pk APIdaraz.pk ↗
Access Daraz Pakistan product listings, pricing, reviews, seller catalogs, and category data via 4 structured API endpoints.
curl -X GET 'https://api.parse.bot/scraper/668a2f8a-7eec-4765-8e69-8089abdf24ae/search_products?page=1&query=laptop' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for products by keyword or category with optional filters and sorting. Returns paginated product listings with filter options. At least one of query or category should be provided for meaningful results.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. |
| sort | string | Sort order. Accepted values: BestMatch, priceasc, pricedesc, rating, latest. |
| query | string | Search keyword (e.g. 'laptop', 'smartphone'). |
| rating | integer | Minimum rating filter (1-5). Server-side filtering may vary. |
| category | string | Category slug to browse (e.g. 'womens-clothing', 'traditional-laptops'). |
| price_low | integer | Minimum price filter in PKR. |
| price_high | integer | Maximum price filter in PKR. |
{
"type": "object",
"fields": {
"filters": "array of available filter options (category, brand, service)",
"products": "array of product listing objects with name, itemId, priceShow, discount, ratingScore, image, sellerName, location, etc.",
"pagination": "object with pagination details",
"total_items": "string with total number of matching products"
},
"sample": {
"data": {
"filters": [
{
"name": "category",
"title": "Category",
"options": [
{
"title": "Mac Skin & Decal Stickers",
"value": "mac-skin-decal-stickers"
}
]
}
],
"products": [
{
"name": "Dell Latitude 5420",
"image": "https://static-01.daraz.pk/p/1e90d8b7bda6ca8761df050cf0214fd8.jpg",
"itemId": "488183989",
"inStock": true,
"discount": "51% Off",
"location": "Sindh",
"priceShow": "Rs. 98,999",
"sellerName": "Tab & Tech (Online Store)",
"ratingScore": "4.8"
}
],
"pagination": {},
"total_items": "23927"
},
"status": "success"
}
}About the daraz.pk API
The Daraz.pk API gives developers structured access to Pakistan's largest e-commerce marketplace through 4 endpoints covering product search, full product details, category browsing, and seller inventory. The get_product_details endpoint alone returns seller info, SKU options, specifications, user reviews, Q&A, and warranty data in a single response. Use it to track prices, build comparison tools, or monitor seller catalogs programmatically.
Search and Browse
The search_products endpoint accepts a query keyword, a category slug, or both, and returns paginated product listings with fields including name, itemId, priceShow, discount, ratingScore, image, sellerName, and location. You can filter results by price_low and price_high (in PKR), a minimum rating (1–5), and sort by BestMatch, priceasc, pricedesc, rating, or latest. The response also includes a filters array of available facet options (category, brand, service) and a total_items count.
Product Details
get_product_details accepts either an item_id or a full product_url. The response is organized under a module object with named sections: seller (shop identity and metrics), specifications (attribute key-value pairs), review (ratings breakdown and user reviews), product (title, description, images), productOption and skuInfos (variant combinations and per-SKU pricing), qna (buyer questions and seller answers), and warranties. This makes it straightforward to reconstruct a full product page without any additional calls.
Category Tree and Seller Listings
get_categories returns the complete Daraz category hierarchy — up to three levels deep — under resultValue.categoriesLpMultiFloor, with IDs, names, URLs, and icons for every node. Category slugs from this response can be passed directly as the category parameter in search_products. The get_seller_products endpoint takes a seller_id (the shop slug from the seller's shop URL) and returns paginated product listings with the same fields as search results. Pagination is handled via a page parameter; the response includes a pagination object and total_items count. Empty product arrays indicate you've paged past the seller's inventory.
- Track PKR price changes and discount levels for specific products using
itemIdacross polling intervals. - Build a price comparison tool across Daraz sellers using
skuInfosandsellerNamefromget_product_details. - Monitor a competitor's full product catalog by paginating through
get_seller_productswith their shop slug. - Seed a category taxonomy by pulling the full three-level hierarchy from
get_categories. - Aggregate product ratings and review data for market research using
ratingScoreand thereviewmodule. - Filter in-stock laptops or smartphones by price range and minimum rating using
search_productsparams. - Collect Q&A content from product pages using the
qnasection inget_product_detailsfor NLP analysis.
| 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 | 250 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 basic pricing?+
module object includes dedicated sections for specifications (structured attribute pairs), skuInfos (per-variant pricing and availability), qna (buyer questions with seller replies), warranties, and a review section with ratings breakdown. You can retrieve all of this in one call using either an item_id or a full product_url.Does the API cover order history, wishlist data, or user accounts?+
How does pagination work for seller product listings?+
page integer to get_seller_products. The response includes a pagination object and a total_items string. When you request a page number beyond the seller's inventory size, the products array returns empty — that is the expected signal that you have reached the end of their catalog.Is product availability or stock status included in search results?+
search_products return fields like priceShow, discount, ratingScore, and seller info, but do not include a discrete in-stock or inventory count field. Per-SKU availability detail is present in the skuInfos section returned by get_product_details. For broader stock monitoring across search results, you can fork this API on Parse and revise it to surface availability fields if they appear in the data.