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

Lazada Product API Documentation

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

Lazada Product API returns one Lazada product: title, brand, description as HTML and text, price, original price and discount, sold count, rating with the count of each star level, review count, media review count, category path, availability, seller, shop id, the full image gallery and the variants with their option names, ids and images.

Send the item_id from search with a country, or send a product page url from a Lazada site; the country comes from the link. Only Lazada links are accepted.

Lazada shows one price per product, not one per variant. price is the lowest price Lazada shows for the product. Variants list their options, ids and images.

Costs 3 credits per successful request, because it reads three sources. If Lazada blocks the first try, the request retries on new connections at no extra cost. Failed requests are free.

Lazada Product API Documentation 3 credits / request

Endpoint

Request preview
GET
https://scrappa.co/api/lazada/product
Auth header
x-api-key
Cost
3 credits / request
Response preview
200 OK
{
    "data": {
        "url": "https://www.lazada.sg/products/pdp-i13786136851.html",
        "brand": {
            "id": "28314",
            "name": "Marshall"
        },
        "price": 304,
        "title": "[NEW] Marshall Milton A.N.C On-Ear Headphones",
        "images": [
            "https://laz-img-sg.alicdn.com/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg",
            "https://laz-img-sg.alicdn.com/p/344a42b3aab731402cb884ba4bfb266e.jpg",
            "https://laz-img-sg.alicdn.com/p/3c7e7d7bf477380336f8c610fe0ade71.jpg"
        ],
...

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.

3 optional filters available.

item_id string Optional

Item id from search, for example 13786136851. Send item_id or url.

Example value 1234567890
url string Optional
Open example

Product page link on a Lazada site, for example https://www.lazada.sg/products/pdp-i13786136851.html. Send item_id or url.

Example value https://example.com/product
country string Optional

Country code: sg, my, id, th or vn (default sg). Not needed with a url. The Philippines is not supported for products.

Example value US

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": {
        "url": "https://www.lazada.sg/products/pdp-i13786136851.html",
        "brand": {
            "id": "28314",
            "name": "Marshall"
        },
        "price": 304,
        "title": "[NEW] Marshall Milton A.N.C On-Ear Headphones",
        "images": [
            "https://laz-img-sg.alicdn.com/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg",
            "https://laz-img-sg.alicdn.com/p/344a42b3aab731402cb884ba4bfb266e.jpg",
            "https://laz-img-sg.alicdn.com/p/3c7e7d7bf477380336f8c610fe0ade71.jpg"
        ],
        "rating": 5,
        "seller": {
            "id": "1133229569",
            "name": "Marshall"
        },
        "sku_id": "124957343504",
        "country": "sg",
        "item_id": "13786136851",
        "lazmall": true,
        "shop_id": "402099",
        "currency": "SGD",
        "in_stock": true,
        "location": "Singapore",
        "variants": {
            "skus": [
                {
                    "image": "https://laz-img-sg.alicdn.com/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg",
                    "sku_id": "124766487777",
                    "options": [
                        "Black"
                    ]
                },
                {
                    "image": "https://laz-img-sg.alicdn.com/p/20e93ca8557e8e45f0af4b9cc4272749.png",
                    "sku_id": "124957343504",
                    "options": [
                        "Brown"
                    ]
                },
                {
                    "image": "https://laz-img-sg.alicdn.com/p/b6a649167f24052ef30945305b227f5b.png",
                    "sku_id": "124957343505",
                    "options": [
                        "Cream"
                    ]
                }
            ],
            "options": [
                {
                    "name": "Color Family",
                    "values": [
                        {
                            "name": "Black",
                            "image": "https://laz-img-sg.alicdn.com/p/1e3ea8a5ea124a38d2b1dc82c24a0ba9.jpg"
                        },
                        {
                            "name": "Brown",
                            "image": "https://laz-img-sg.alicdn.com/p/20e93ca8557e8e45f0af4b9cc4272749.png"
                        },
                        {
                            "name": "Cream",
                            "image": "https://laz-img-sg.alicdn.com/p/b6a649167f24052ef30945305b227f5b.png"
                        }
                    ]
                }
            ]
        },
        "sold_count": 27,
        "category_ids": [
            "10100387",
            "154",
            "157"
        ],
        "review_count": 5,
        "category_path": [
            "Audio",
            "On-Ear Headphones"
        ],
        "free_shipping": true,
        "original_price": 329,
        "description_html": "<article><p>Marshall Milton A.N.C On-Ear Headphones</p></article>",
        "description_text": "Marshall Milton A.N.C On-Ear Headphones",
        "discount_percent": 7.6,
        "rating_breakdown": {
            "1": 0,
            "2": 0,
            "3": 0,
            "4": 0,
            "5": 5
        },
        "media_review_count": 1
    },
    "meta": {
        "credits": 3,
        "billable": true,
        "endpoint_family": "product"
    },
    "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": {
        "url": [
            "The url is a Lazada product page, e.g. https://www.lazada.sg/products/pdp-i13786136851.html."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The item does not exist on this Lazada site. This response is not billable.

{
    "meta": {
        "credits": 0,
        "billable": false,
        "retryable": false,
        "endpoint_family": "product"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested item or shop was not found."
    },
    "success": false
}
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": "product"
    },
    "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.