# Lazada Product API Documentation

<p><strong>Lazada Product API</strong> 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.</p><p>Send the <code>item_id</code> from search with a <code>country</code>, or send a product page <code>url</code> from a Lazada site; the country comes from the link. Only Lazada links are accepted.</p><p>Lazada shows one price per product, not one per variant. <code>price</code> is the lowest price Lazada shows for the product. Variants list their options, ids and images.</p><p>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.</p>

- **Documentation:** [https://scrappa.co/docs/lazada-api/lazada_product](https://scrappa.co/docs/lazada-api/lazada_product)
- **API group:** Lazada API
- **Endpoint:** `GET https://scrappa.co/api/lazada/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `item_id` | string | No | Item id from search, for example 13786136851. Send item_id or url. |
| `url` | string | No | Product page link on a Lazada site, for example https://www.lazada.sg/products/pdp-i13786136851.html. Send item_id or url. |
| `country` | string | No | Country code: sg, my, id, th or vn (default sg). Not needed with a url. The Philippines is not supported for products. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 404 | Not Found | The item does not exist on this Lazada site. This response is not billable. |
| 503 | Upstream Unavailable | Lazada could not be reached after several tries. This response is not billable. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
