Daraz Search API searches products on Daraz in Pakistan, Bangladesh, Sri Lanka and Nepal. Each item has the sale price, original price and discount as numbers with the currency, rating, review count, seller, brand, image and variants.
Filter by price range, brand, rating, category, location, sort and attribute. An attribute uses ppath=uniqueName:vId; brand uses brand.
There are 40 results per page. Page N returns the real page N and pages past the end are empty. The item_id feeds the Product, Reviews and Enrichment APIs unchanged. When the upstream total repeats across queries, pagination.total_results_capped is true and total_results is an upper bound, not an exact count. Costs 1 credit per successful request. Empty results and failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
7 optional filters available.
string
Required
Search text, 1 to 120 characters.
coffee shops
string
Optional
Country code: pk, bd, lk or np (default pk).
US
integer
Optional
One-based page number, 1 to 100.
1
string
Optional
One of popularity, priceasc, pricedesc.
relevance
number
Optional
Lowest sale price.
10
number
Optional
Highest sale price.
10
string
Optional
Brand name from a search result.
example
string
Optional
Category id from a search result.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"query": "headphones",
"country": "pk",
"results": [
{
"name": "Headphones",
"brand": "GearZilla",
"image": "https://img.lazcdn.com/g/p/sample.jpg",
"rating": 4.2857,
"seller": {
"id": "12345",
"name": "GearZilla"
},
"item_id": "1958256534",
"currency": "PKR",
"discount": 20,
"sale_price": 16200,
"availability": "in_stock",
"review_count": 14,
"original_price": 20285
}
],
"currency": "PKR",
"pagination": {
"page": 1,
"has_next": true,
"per_page": 40,
"total_results": 4080,
"total_results_capped": true
}
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "search"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. Not billable.
{
"message": "The request validation failed"
}Upstream Unavailable
Daraz could not be reached. Not billable.
{
"error": {
"code": "UPSTREAM_UNAVAILABLE"
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.