# Lazada Scraper | All-In-One | $5 / 1K (`fatihtahta/lazada-scraper`)

Scrape product data from all Lazada sites: Thailand, Singapore, Indonesia, Vietnam & Malaysia. This fast, affordable scraper extracts detailed info from any product search. Get the market insights and competitor data you need to stay ahead.

- **URL**: https://beta-securitybyobscurity.apify.com/fatihtahta/lazada-scraper.md
- **Developed by:** [Fatih Tahta](https://beta-securitybyobscurity.apify.com/fatihtahta) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 8 total users, 6 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

# README

## Lazada Scraper

Lazada Scraper allows you to efficiently extract detailed product data from Lazada's search results. Simply provide a search keyword and a country, and the actor will fetch product information for you.

### What is Lazada Scraper?

It's a simple and powerful tool that allows you to extract public product data from Lazada's search pages. The scraper uses a direct API-based approach, making it fast and reliable. To get the data, just enter one or more search keywords, select a country, and click the "Start" button.

### What product data can I extract?

With this Lazada API, you will be able to extract the following data for each product:

📝 **Product Name**: The full title of the product listing.
🔗 **Product URL**: The direct link to the product page.
💰 **Price**: The current selling price.
💸 **Original Price**: The price before discounts, if available.
⭐ **Rating Score**: The average user rating (out of 5).
🗣️ **Review Count**: The total number of reviews.
🛍️ **Seller Name**: The name of the seller or store.
🏢 **Brand Name**: The brand of the product.
📍 **Location**: The city or region the product ships from.
🖼️ **Image URL**: A direct link to the main product image.
🆔 **Product, SKU, Seller, and Brand IDs**.
📦 **Stock Status**: Whether the product is in stock.

### Why scrape Lazada?

Extracting data from one of Southeast Asia's largest e-commerce platforms can provide valuable insights. Here are a few use cases:

🤺 **Competitor analysis**: Monitor your competitors' pricing, stock levels, and product assortment.
📈 **Market research**: Identify popular products, trending items, and gaps in the market.
🏷️ **Brand monitoring**: Track how your products and brand are represented on the platform.
📊 **Price aggregation**: Build a database of product prices for a price comparison service.
💡 **Lead generation**: Find successful sellers or brands for potential partnerships.

### How do I use Lazada Scraper?

Lazada Scraper was designed to be easy to start with, even if you've never extracted data from the web before. Here's how you can scrape Lazada data with this tool:

1. **Create** a free Apify account using your email.
2. **Open** Lazada Scraper in the Apify Store.
3. **Add** one or more search keywords (e.g., `laptop`, `iphone 15 pro max`).
4. **Click** "Start" and wait for the data to be extracted.
5. **Download** your data in JSON, XML, CSV, Excel, or HTML.

### Input

The input for Lazada Scraper should be one or more keywords you want to search for, along with the country you want to search in.

**Input example**

````json
{
  "keyword": [
    "gaming laptop",
    "coffee maker"
  ],
  "country": "my",
  "maxProducts": 200,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
### Output sample
The results will be wrapped into a dataset which you can find in the Storage tab. Here's an excerpt from the dataset you'd get for a single product. You can choose to download your Lazada data in various formats like CSV, Excel, JSON, and more.

```json
[{
  "product_id": "3110202927_VNAMZ",
  "seller_id": "100021001",
  "brand_id": "21952",
  "categories": [10100411, 10100413],
  "sku_id": "17381001921",
  "product_name": "Apple MacBook Air 13 inch M1 (8-core CPU/7-core GPU/8GB/256GB)",
  "product_url": "[https://www.lazada.vn/products/apple-macbook-air-13-inch-m1-8-core-cpu7-core-gpu8gb256gb-i17381001921.html](https://www.lazada.vn/products/apple-macbook-air-13-inch-m1-8-core-cpu7-core-gpu8gb256gb-i17381001921.html)",
  "price": 18490000,
  "original_price": 28990000,
  "rating_score": 4.9,
  "review_count": 542,
  "location": "Ho Chi Minh",
  "seller_name": "Apple Flagship Store",
  "brand": "Apple",
  "image_url": "[https://sg-live-01.slatic.net/p/mdc/12345abcf.jpg](https://sg-live-01.slatic.net/p/mdc/12345abcf.jpg)",
  "sku": "17381001921_VNAMZ",
  "in_stock": true
}]

### Is it legal to scrape Lazada?
The scraper is ethical and do not extract any private user data. They only extract data that is publicly available on the website. However, you should be aware that your results could contain personal data. You should not scrape personal data unless you have a legitimate reason to do so.

If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping.

### Your feedback
I'm always working on improving the performance of our Actors. So if you’ve got any technical feedback for Lazada Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.


Happy scrapings!
Fatih

# Actor input Schema

## `url` (type: `string`):

Optional. Provide a Lazada search or category URL to scrape directly (e.g., https://www.lazada.sg/catalog/?q=laptop&page=1).
## `keyword` (type: `array`):

Enter one or more keywords. Each keyword is scraped separately with smart pagination handling.
## `country` (type: `string`):

Choose the marketplace that matches your URL or keywords.
## `maxProducts` (type: `integer`):

Stop after collecting this many products per entry point (URL or keyword).
## `proxyConfiguration` (type: `object`):

Use Apify Residential proxies for the highest success rate on Lazada.

## Actor input object example

```json
{
  "keyword": [
    "fitness shorts",
    "running shoes"
  ],
  "country": "sg",
  "maxProducts": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
````

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": [
        "fitness shorts",
        "running shoes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihtahta/lazada-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keyword": [
        "fitness shorts",
        "running shoes",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/lazada-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": [
    "fitness shorts",
    "running shoes"
  ]
}' |
apify call fatihtahta/lazada-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fatihtahta/lazada-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Lazada Scraper | All-In-One | $5 / 1K",
        "description": "Scrape product data from all Lazada sites: Thailand, Singapore, Indonesia, Vietnam & Malaysia. This fast, affordable scraper extracts detailed info from any product search. Get the market insights and competitor data you need to stay ahead.",
        "version": "0.0",
        "x-build-id": "Mb86Hkg2co7BnEdFf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fatihtahta~lazada-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fatihtahta-lazada-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/fatihtahta~lazada-scraper/runs": {
            "post": {
                "operationId": "runs-sync-fatihtahta-lazada-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/fatihtahta~lazada-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-fatihtahta-lazada-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "url": {
                        "title": "Direct Lazada URL",
                        "type": "string",
                        "description": "Optional. Provide a Lazada search or category URL to scrape directly (e.g., https://www.lazada.sg/catalog/?q=laptop&page=1)."
                    },
                    "keyword": {
                        "title": "Keywords to search",
                        "type": "array",
                        "description": "Enter one or more keywords. Each keyword is scraped separately with smart pagination handling.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "country": {
                        "title": "Lazada country site",
                        "enum": [
                            "sg",
                            "my",
                            "ph",
                            "th",
                            "vn",
                            "id"
                        ],
                        "type": "string",
                        "description": "Choose the marketplace that matches your URL or keywords.",
                        "default": "sg"
                    },
                    "maxProducts": {
                        "title": "Maximum products to collect",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Stop after collecting this many products per entry point (URL or keyword).",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Residential proxies for the highest success rate on Lazada.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
