Daraz: Search
Search from Daraz as JSON. 1 credit per successful call.
GET /v1/daraz/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 120 characters |
country | string | Optional | pk, bd, lk, np |
page | integer | Optional | Any |
sort | string | Optional | popularity, priceasc, pricedesc |
min_price | number | Optional | Any |
max_price | number | Optional | Any |
brand | string | Optional | Up to 120 characters |
category | string | Optional | Up to 120 characters |
location | string | Optional | Up to 120 characters |
rating | integer | Optional | Any |
ppath | string | Optional | Up to 160 characters |
Example request
Daraz
GET/v1/daraz/search?query=headphones
{
"success": true,
"data": {
"query": "headphones",
"country": "pk",
"currency": "PKR",
"results": [
{
"item_id": "1984070516",
"name": "Wireless Headphones, P47 Bluetooth Foldable Headset with Microphone Support FM Radio TF for PC TV Smart Phones & Tablets Etc",
"brand": "No Brand",
"brand_id": "39704",
"sale_price": 820,
"original_price": 1699,
"discount": 52,
"currency": "PKR",
"rating": 4.428571428571429,
"review_count": 7,
"seller": {
"id": "6005725792609",
"name": "Trendza 11.11"
},
"availability": "in_stock",
"image": "https://static-01.daraz.pk/p/2286a0921d4eb3b6e13cf74179a426df.jpg",
"variants": [
{
"sku_id": "198407051614073840397"
}
],
"categories": [
147,
148,
154
],
"location": "Punjab",
"sold_count": 66,
"sold_count_text": "66 sold",
"url": "https://www.daraz.pk/products/p47-fm-tf-tv-i1984070516.html"
},
{
"item_id": "1983068823",
"name": "Wireless Bluetooth Headphones with Mic Deep Bass HiFi Stereo Noise Cancelling Foldable Over Ear Headset for Gaming Online Classes Gym Travel Laptop PC Support AUX TF Card Long Battery Backup Comfortable Ear Cushions Premium Sound Handsfree",
"brand": "No Brand",
"brand_id": "39704",
"sale_price": 999,
"original_price": 3499,
"discount": 71,
"currency": "PKR",
"rating": 4.25,
"review_count": 36,
"seller": {
"id": "6005725392705",
"name": "Tech Gadgets Shop"
},
"availability": "in_stock",
"image": "https://static-01.daraz.pk/p/58a9006b939bcfa66a759211d9b66fdb.png",
"variants": [
{
"sku_id": "198306882314072087179"
}
],
"categories": [
147,
148,
154
],
"location": "Punjab",
"sold_count": 207,
"sold_count_text": "207 sold",
"url": "https://www.daraz.pk/products/aux-tf-i1983068823.html"
},
{
"item_id": "1983070808",
"name": "Original p47 headphone Wireless Earbuds Invisible Ultra Small Bluetooth Handfree for all cell phones",
"brand": "No Brand",
"brand_id": "39704",
"sale_price": 455,
"original_price": 777,
"discount": 41,
"currency": "PKR",
"review_count": 0,
"seller": {
"id": "6005469632775",
"name": "Aboor Store"
},
"availability": "in_stock",
"image": "https://static-01.daraz.pk/p/227efb25f5d62226984ea5ea0e857845.jpg",
"variants": [
{
"sku_id": "198307080814072085052"
}
],
"categories": [
147,
148,
154
],
"location": "Punjab",
"url": "https://www.daraz.pk/products/47-i1983070808.html"
}
],
"pagination": {
"page": 1,
"per_page": 40,
"has_next": true,
"total_results": 4080,
"total_results_capped": true
}
},
"meta": {
"endpoint_family": "search",
"request_id": "req_aa6ff12a0c8c4db990191a0095b4188f",
"credits_charged": 1,
"credits_remaining": 4935
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
country | string |
currency | string |
results | object[] |
pagination | object |