Skip to content
Scrappa Get API key
Lazada API 2 credits / request

Lazada Search API Documentation

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

Lazada Search API searches products on Lazada in Singapore, Malaysia, Indonesia, Thailand, the Philippines and Vietnam. Each item has the price, original price and discount as numbers with the currency, rating, review count, sold count, seller, shop id, brand, categories, images and badges for LazMall, free shipping and flash sale.

Filter by price range, minimum rating, sort order, items shipped from the local country and LazMall only. Every item in the answer follows the filters you send. Send a category slug from data.filters.categories to list a category, with or without a search text.

There are 40 results per page and at most 102 pages. total_results is capped by Lazada, total_results_capped says so. Page N returns the real page N. sold_count is null when Lazada shows none. The item_id and shop_id feed the Product, Reviews, Shop and Shop Products APIs unchanged.

Costs 2 credits per successful request. Empty results and failed requests are free.

Lazada Search API Documentation 2 credits / request

Endpoint

Request preview
GET
https://scrappa.co/api/lazada/search
Auth header
x-api-key
Cost
2 credits / request
Response preview
200 OK
{
    "data": {
        "query": "headphones",
        "country": "sg",
        "filters": {
            "sorts": [
                "relevance",
                "price_asc",
                "price_desc",
                "popularity"
            ],
            "categories": [
                {
                    "slug": "shop-over-ear-headphones",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

10 optional filters available.

query string Optional

Search text, 1 to 120 characters, for example headphones. Required unless you send a category.

Example value coffee shops
country string Optional

Country code: sg, my, id, th, ph or vn (default sg). One country per request.

Example value US
page integer Optional

One-based page number, 1 to 102 (default 1). 40 results per page.

Example value 1
category string Optional

Category slug from data.filters.categories of an earlier search, for example shop-on-ear-headphones.

Example value example
sort string Optional

One of relevance, price_asc, price_desc, popularity.

Example value relevance
min_price number Optional

Lowest price in the local currency.

Example value 10
max_price number Optional

Highest price in the local currency.

Example value 10
min_rating integer Optional

Lowest item rating as a whole star value, 1 to 5. Items without a rating are left out.

Example value 10
local_only boolean Optional

Set 1 to list only items shipped from the country of the site.

Example value true
lazmall_only boolean Optional

Set 1 to list only LazMall items.

Example value true

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": "sg",
        "filters": {
            "sorts": [
                "relevance",
                "price_asc",
                "price_desc",
                "popularity"
            ],
            "categories": [
                {
                    "slug": "shop-over-ear-headphones",
                    "title": "Over-Ear Headphones"
                },
                {
                    "slug": "shop-on-ear-headphones",
                    "title": "On-Ear Headphones"
                },
                {
                    "slug": "shop-in-ear-headphones",
                    "title": "In-Ear Headphones"
                }
            ]
        },
        "results": [
            {
                "url": "https://www.lazada.sg/products/pdp-i13786136851.html",
                "brand": {
                    "id": "28314",
                    "name": "Marshall"
                },
                "image": "https://sg-live-01.slatic.net/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg",
                "price": 304,
                "title": "[NEW] Marshall Milton A.N.C On-Ear Headphones",
                "badges": {
                    "lazmall": true,
                    "flash_sale": false,
                    "free_shipping": true
                },
                "images": [
                    "https://sg-live-01.slatic.net/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg",
                    "https://sg-live-01.slatic.net/p/b6a649167f24052ef30945305b227f5b.png",
                    "https://sg-live-01.slatic.net/p/20e93ca8557e8e45f0af4b9cc4272749.png"
                ],
                "rating": 5,
                "seller": {
                    "id": "1133229569",
                    "name": "Marshall"
                },
                "sku_id": "124766487777",
                "item_id": "13786136851",
                "shop_id": "402099",
                "currency": "SGD",
                "in_stock": true,
                "location": "Singapore",
                "categories": [
                    "10100387",
                    "154",
                    "157"
                ],
                "sold_count": 27,
                "is_sponsored": false,
                "review_count": 5,
                "original_price": 329,
                "discount_percent": 7.6
            }
        ],
        "category": null,
        "currency": "SGD",
        "pagination": {
            "page": 1,
            "has_next": true,
            "per_page": 40,
            "total_results": 4080,
            "total_results_capped": true
        }
    },
    "meta": {
        "credits": 2,
        "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. This response is not billable.

{
    "errors": {
        "query": [
            "A search text or a category is required, e.g. headphones."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Lazada could not be reached after several tries. This response is not billable. Retry shortly.

{
    "meta": {
        "credits": 0,
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Lazada could not be reached. Please retry shortly."
    },
    "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.