# Lazada Scraper - $0.40 / 1000 Products (`scrapeunblocker/lazada-scraper`) Actor

Scrape Lazada products as JSON in 6 markets (SG, MY, TH, PH, VN, ID): keyword search with sort and price filters, or product pages. Price, discount, rating, units sold, seller, LazMall; product pages add every SKU, specs and delivery. No login. $0.40 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/lazada-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 products

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Lazada Scraper

Scrape **Lazada products** as clean, structured JSON from **6 markets** - Singapore, Malaysia, Thailand, the Philippines, Vietnam and Indonesia. Search by keyword - with Lazada's sort orders and a price range - or paste product links or item ids. Every product comes with its **item and SKU ids**, **name**, **price** in the market's currency, the **crossed-out price and discount**, **rating** and review count, **units sold**, **brand**, **seller**, **ship-from location** and the **LazMall**, free-shipping and sponsored flags. Product pages add **every SKU** with its own attributes, price and link, the **specifications**, the **1-5 star rating split**, the **seller's positive rating and store highlights**, the **delivery estimate** and warranties. No Lazada account, no cookies, no proxies to set up.

### Features

- **Keyword search** in any of the 6 markets, in Lazada's own order (`position`), with **sort** (best match, price up or down) and **price filters**; up to 400 products per search across pages.
- **Product pages** by link or item id: every SKU (variant) with its price, specifications, rating split, seller and delivery.
- **Prices you can compute with** - `price`, `originalPrice` and `discountPercent` as numbers, `currency` as ISO 4217 (SGD, MYR, THB, PHP, VND, IDR).
- **Units sold** as a number (`sold`) next to Lazada's own label (`soldText`).
- **Deduplicated inputs** - the same search or product given twice is fetched and billed once.

### Use cases

- **Price monitoring across Southeast Asia** - the same product in six markets and currencies.
- **Sales estimates** - units sold and review counts for a keyword's top results.
- **SKU-level catalogues** - every variant with its own price and link.
- **Seller vetting** - positive rating, LazMall status and store highlights.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searches` | array | - | Keywords to search in the chosen market (one search each). |
| `products` | array | - | Lazada product links (any market) or item ids (use `country`). |
| `country` | string | `sg` | `sg`, `my`, `th`, `ph`, `vn`, `id`. Links carry their own market. |
| `sort` | string | `relevance` | `relevance`, `price_asc`, `price_desc`. |
| `minPrice` | number | - | Searches: minimum price in the market's currency. |
| `maxPrice` | number | - | Searches: maximum price in the market's currency. |
| `maxResultsPerSearch` | integer | `40` | Products to keep per search (1-400; 40 per Lazada page). |
| `concurrency` | integer | `3` | Searches / products fetched at the same time (1-5). |

With no searches or products, the actor runs one example search ("yoga mat" in Singapore).

#### Example input

```json
{
  "searches": ["yoga mat", "power bank"],
  "products": ["https://www.lazada.co.th/products/pdp-i5920889812.html", "13644697448"],
  "country": "sg",
  "sort": "price_asc",
  "maxResultsPerSearch": 80
}
```

### Output

One dataset item per product. From a search (`source: "search"`):

```json
{
  "itemId": "3638321068",
  "skuId": "124556765668",
  "sku": "3638321068_SGAMZ",
  "name": "SHILIZI | Thickened Portable Folding Yoga Mat Anti-Slip Fitness Mat Extra Large And Wide Home Gym Mat Shock Absorption Noise Reduction Womens Sports Mat",
  "price": 12.45,
  "priceText": "$12.45",
  "originalPrice": null,
  "discountPercent": null,
  "rating": 4.86,
  "reviewCount": 610,
  "sold": 2000,
  "soldText": "2.0K sold",
  "brand": "SHILIZI",
  "brandId": "127672450",
  "seller": "Outdoor Concept Store",
  "sellerId": "1153332231",
  "location": "Hong Kong",
  "inStock": true,
  "lazMall": true,
  "freeShipping": false,
  "sponsored": false,
  "image": "https://filebroker-cdn.lazada.sg/kf/S860d16f2cfd14b51a61a574eb4c8720dh.png",
  "url": "https://www.lazada.sg/products/pdp-i3638321068.html",
  "position": 1,
  "source": "search",
  "query": "yoga mat",
  "country": "sg",
  "currency": "SGD"
}
```

From a product link or item id (`source: "product"`), shortened:

```json
{
  "itemId": "3635412172",
  "skuId": "24037235214",
  "country": "sg",
  "title": "adidas | Thickened Anti-slip Shock-absorbing Yoga Mat for Home Use Non-slip Exercise Mat 15mm Unisex Fitness Mat Quiet Sound-reducing Mat for Yoga Pilates",
  "brand": "adidas",
  "categories": [
    "Sports & Outdoors Activities Equipment",
    "Exercise & Fitness Equipment"
  ],
  "price": 65.9,
  "originalPrice": 79.9,
  "discountPercent": 66,
  "currency": "SGD",
  "rating": 4.9,
  "reviewCount": 108,
  "ratingBreakdown": {
    "5": 90,
    "4": 10,
    "3": 1,
    "2": 0,
    "1": 0
  },
  "inStock": true,
  "images": [
    "https://filebroker-cdn.lazada.sg/kf/S0bf2d3afe65e4baba2b4c6f8ce08c0d5L.jpg",
    "https://filebroker-cdn.lazada.sg/kf/Sa7954b89a6044a43a7421de862551025v.jpg"
  ],
  "specifications": {
    "Brand": "adidas",
    "SKU": "3635412172_SGAMZ-24037235214",
    "Sport Features": "Tear Resistance,Foldable,Portable",
    "Material": "EVA"
  },
  "variants": [
    {
      "skuId": "24037235205",
      "attributes": {
        "Color Family": "Black   anti-slip, shock-absorbing, and silent   includes straps",
        "Size": "183x61cm",
        "Thickness": "6mm"
      },
      "price": 49.15,
      "originalPrice": 59.15,
      "image": "https://filebroker-cdn.lazada.sg/kf/S07f17d9b5a924911be71609b9bbbc06bb.jpg",
      "available": true,
      "url": "https://www.lazada.sg/products/adidas-thickened-anti-slip-shock-absorbing-yoga-mat-for-home-use-non-slip-exercise-mat-15mm-unisex-fitness-mat-quiet-sound-reducing-mat-for-yoga-pilates-i3635412172-s24037235205.html"
    },
    {
      "skuId": "24037235206",
      "attributes": {
        "Color Family": "Black   anti-slip, shock-absorbing, and silent   includes straps",
        "Size": "183x61cm",
        "Thickness": "10mm"
      },
      "price": 65.76,
      "originalPrice": 79.76,
      "image": "https://filebroker-cdn.lazada.sg/kf/S07f17d9b5a924911be71609b9bbbc06bb.jpg",
      "available": true,
      "url": "https://www.lazada.sg/products/adidas-thickened-anti-slip-shock-absorbing-yoga-mat-for-home-use-non-slip-exercise-mat-15mm-unisex-fitness-mat-quiet-sound-reducing-mat-for-yoga-pilates-i3635412172-s24037235206.html"
    }
  ],
  "seller": {
    "id": "1682272003",
    "shopId": 2073783,
    "name": "adidas sports",
    "positiveRating": "97%",
    "highlights": [
      "Oversea Selection Store",
      "Top 7 Seller for Yoga & Wellness Equipment",
      "5-Year Store in Taobao",
      "New Arrival",
      "Fast Shipping: 95% Shipped in 48 hrs",
      "25% Repurchase Rate"
    ],
    "url": "https://www.lazada.sg/shop/adidas-sports/?itemId=3635412172&channelSource=pdp"
  },
  "delivery": {
    "option": "Standard,with shipping fee $1.99",
    "estimate": "Guaranteed by 4-7 Nov"
  },
  "warranties": [
    "100% Authentic",
    "Change of Mind"
  ],
  "url": "https://www.lazada.sg/products/pdp-i3635412172-s24037235214.html",
  "source": "product",
  "input": "3635412172"
}
```

Searches or products that return nothing or cannot be read go to the `ERRORS` record in the run's key-value store, with the reason. They are not billed. Some Philippine items are listed in the Lazada app only; those come back as failed inputs too.

### Pricing

**$0.40 per 1000 products** (pay per result) - one dataset item is one product, from a search or a product page. Products read from their own page also charge the `product-details` event, **$0.70 per 1000** (so a full product costs $1.10 per 1000 in total). Failed inputs are free.

### Notes

- `sold` is Lazada's own rounded count ("1.8K sold" becomes 1800).
- Not available: review texts (the rating split only) and stock counts - Lazada shows a purchase limit (`maxQuantity`) instead.
- Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `searches` (type: `array`):

Keywords to search in the chosen Lazada market (one search each), e.g. 'yoga mat'. Each search returns up to 'Max products per search' products.

## `products` (type: `array`):

Lazada products to read in full: a product link (https://www.lazada.sg/products/...-i<itemId>.html, any market) or an item id (uses the market below). Each returns every SKU with its price, specifications, rating split, seller and delivery estimate.

## `country` (type: `string`):

Lazada market for the keyword searches and item ids. Prices come in that market's currency. Links carry their own market.

## `sort` (type: `string`):

Result order for the keyword searches.

## `minPrice` (type: `number`):

Searches: only products at or above this price, in the market's currency.

## `maxPrice` (type: `number`):

Searches: only products at or below this price, in the market's currency.

## `maxResultsPerSearch` (type: `integer`):

How many products to keep from each search (1-400). Lazada shows 40 products a page; more products read more pages.

## `concurrency` (type: `integer`):

How many searches or products to fetch at the same time (1-5).

## Actor input object example

```json
{
  "searches": [
    "yoga mat"
  ],
  "country": "sg",
  "sort": "relevance",
  "maxResultsPerSearch": 40,
  "concurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

One item per product with price, discount, rating, units sold and seller (plus SKUs, specifications and delivery for product pages)

## `errors` (type: `string`):

Searches or products that returned nothing or could not be read, with the reason (not billed)

# 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 = {
    "searches": [
        "yoga mat"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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 = { "searches": ["yoga mat"] }

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

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

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

```

## CLI example

```bash
echo '{
  "searches": [
    "yoga mat"
  ]
}' |
apify call scrapeunblocker/lazada-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/lazada-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1MzdouON2HAi9Qnsc/builds/krJUFrQBgxMiAHTEm/openapi.json
