Daraz APIdaraz.com ↗
Search Daraz Pakistan products, fetch live flash sale deals, and retrieve full product details including SKUs, variants, and pricing via a simple REST API.
What is the Daraz API?
The Daraz API covers 3 endpoints that expose product search, live flash sale listings, and per-item detail data from Daraz Pakistan. search_products returns up to 40 results per page with pricing, discount percentages, seller info, and ratings. get_flash_sale surfaces whatever deals are currently rotating on the Daraz homepage. get_product_details returns SKU-level data including variants, quantities, brand, and HTML description blocks.
curl -X GET 'https://api.parse.bot/scraper/b33591e0-a186-4631-87ec-13e7feebb281/search_products?sort=popularity&query=laptop' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for products on Daraz Pakistan by keyword. Returns paginated results with pricing, discount, rating, seller, and stock information. Supports sorting by popularity, price ascending, or price descending. Each page returns up to 40 items.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. Each page returns up to 40 results. |
| sort | string | Sort order for results. Omitting defaults to popularity (best match). |
| queryrequired | string | Search keyword or phrase (e.g. 'laptop', 'samsung phone', 'shoes'). |
{
"type": "object",
"fields": {
"page": "current page number",
"has_more": "boolean indicating if more pages are available",
"products": "array of product objects with item_id, name, price, discount, rating, seller, etc.",
"page_size": "number of items per page (40)",
"total_results": "total number of matching products"
},
"sample": {
"data": {
"page": 1,
"has_more": true,
"products": [
{
"name": "Dell Chromebook 3120 P22T 4GB RAM 16GB Storage Compact Laptop",
"image": "https://static-01.daraz.pk/p/02a3fe65f98ef0ac73ab6972b563ebbf.png",
"price": "12500",
"sku_id": "2088376213",
"item_id": "435016024",
"discount": "14% Off",
"in_stock": true,
"item_url": "//www.daraz.pk/products/dell-chromebook-3120-...-i435016024.html",
"location": "Punjab",
"brand_name": "No Brand",
"seller_name": "MyTechStorePK",
"rating_score": "5.0",
"review_count": "1",
"price_display": "Rs. 12,500",
"original_price": "14500",
"original_price_display": ""
}
],
"page_size": 40,
"total_results": 4080
},
"status": "success"
}
}About the Daraz API
What the API Returns
The API provides structured product data across three endpoints. search_products accepts a required query string and optional page and sort parameters (popularity, price ascending, or price descending). Each response includes total_results, has_more for pagination, and an array of product objects carrying item_id, name, price, discount, rating, and seller fields. Results are capped at 40 per page.
Flash Sales and Live Pricing
get_flash_sale takes no parameters and returns whatever items are currently active in the Daraz homepage flash sale. Each object in flash_sale_items includes sale_price, original_price, discount, sold_count, url, and image. Because flash sale inventory rotates continuously, repeated calls to this endpoint will reflect the current state at call time.
Product Detail and SKU Data
get_product_details accepts a numeric item_id — obtainable from either search_products or get_flash_sale results — and returns the full product record. This includes title, brand, highlights (HTML), description (HTML), a variants array covering dimensions like Color Family and Size, and a skus array where each entry carries sku_id, price, quantity, and seller_id. This is the endpoint to use when you need stock levels at the variant level.
The Daraz API is a managed, monitored endpoint for daraz.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when daraz.com 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 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 changes on specific Daraz items by polling
get_product_detailswith a storeditem_id. - Aggregate live flash sale deals by parsing
flash_sale_itemswithdiscountandsold_countfields. - Build a product comparison tool using
search_productsresults across multiple keyword queries. - Monitor out-of-stock SKUs by checking
quantityvalues within theskusarray fromget_product_details. - Generate a discount leaderboard from
search_productssorted by price and filtered by thediscountfield. - Pull variant availability (color, size) for a product line using
variantsand matchingskusentries. - Seed an affiliate catalog with product
url,image, andsale_pricefromget_flash_sale.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. 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_flash_sale` return, and how fresh is the data?+
sale_price, original_price, discount, sold_count, and product URLs. Flash sales on Daraz rotate frequently — sometimes hourly — so the response reflects the state at the moment of the call, not a cached snapshot from earlier in the day.Does `search_products` support filtering by category, brand, or price range?+
search_products endpoint accepts a query string and a sort parameter (popularity, price ascending, price descending) but does not expose category, brand, or price-range filters as distinct parameters. You can fork the API on Parse and revise it to add those filter inputs.Are customer reviews and ratings returned by `get_product_details`?+
rating is included in search_products results, but get_product_details does not currently return a review list, review count, or per-reviewer text. The detail endpoint covers SKUs, variants, pricing, and description fields. You can fork the API on Parse and revise it to add a reviews endpoint using a Daraz product's item_id.