Skip to content
Scrappa Get API key
Daraz API 1 credit / request

Daraz Search API Documentation

GET https://scrappa.co/api/daraz/search

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.

Daraz Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/daraz/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "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"
                },
...

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.

query string Required

Search text, 1 to 120 characters.

Example value coffee shops
country string Optional

Country code: pk, bd, lk or np (default pk).

Example value US
page integer Optional

One-based page number, 1 to 100.

Example value 1
sort string Optional

One of popularity, priceasc, pricedesc.

Example value relevance
min_price number Optional

Lowest sale price.

Example value 10
max_price number Optional

Highest sale price.

Example value 10
brand string Optional

Brand name from a search result.

Example value example
category string Optional

Category id from a search result.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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.

422

Validation Error

A required parameter or a value is invalid. Not billable.

{
    "message": "The request validation failed"
}
503

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.