# Lazada Product Search Scraper (`devilscrapes/lazada-product-search-scraper`) Actor

Lazada Product Search Scraper: search Lazada Singapore, Malaysia and more by keyword and get clean product rows: price, discount, rating, sold count, seller, brand and product URL. Sort by popularity or price. Export to JSON or CSV. We handle the blocks and retries so your dataset stays clean.

- **URL**: https://apify.com/devilscrapes/lazada-product-search-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 73.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 result emitteds

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

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## Lazada Product Search Scraper

**$2.01 / 1 000 results** — pay only for results, no credit card to try.

*We run the gauntlet so your dataset doesn't have to.* 😈

Search Lazada by keyword and get clean product rows — price, discount, rating, seller, brand and stock — from Singapore, Malaysia and the other Lazada storefronts.

</div>

***

### 🎯 What this scrapes

Lazada is Southeast Asia's largest marketplace, and its search results are the fastest way to see what sells, at what price, from which seller. This Actor takes one or more search terms, pages through the Lazada catalog for the storefront you pick, and returns one normalized row per product.

Every row carries the numeric `price`, the price as displayed (`priceShow`), the pre-discount price, the discount label, the currency for that storefront, rating and review count, seller and brand, dispatch location, stock flag and a canonical `https://` product URL. Rows are de-duplicated by `itemId` within each search term, and each row records the term, country, page and rank that produced it.

### 🔥 Features

- 🛡️ **We rotate browser fingerprints** — real Chrome and Firefox TLS handshakes, so the target sees a browser, not a script.
- 🌐 **We rotate residential proxies** on every block — fresh session, fresh exit IP.
- 🔁 **We retry with exponential backoff** on `408 / 429 / 5xx` and network errors — up to 5 attempts per page.
- 🧱 **We detect challenge pages** before parsing. A blocked page triggers a session rotation and a retry, never a crash and never a silent empty dataset.
- 🧩 **Fault isolation** — one failed search term never stops the others, and rows already collected are kept.
- 🧊 **Clean dataset** — Pydantic-validated rows, ISO-8601 timestamps, stable item IDs.
- 💰 **You pay only for results that land.**

### 💡 Use cases

- **Price monitoring** — track price and discount movement for a keyword across Singapore and Malaysia.
- **Competitor and assortment research** — see which brands and sellers own a search term.
- **Dropshipping and sourcing** — shortlist products by rating, review count and price band.
- **Market sizing** — compare how a category looks on different storefronts.

### ⚙️ How to use it

1. Click **Try for free** at the top of the page.
2. Enter one or more search terms and pick a country storefront.
3. Click **Start**. Rows stream into the dataset as pages are fetched.
4. Export from **Storage → Dataset** as JSON, CSV or Excel, or pull it via the API.

### 📥 Input

| Field | Type | Required | Default | Notes |
|---|---|:--:|---|---|
| `queries` | `array` | yes | `["laptop"]` | Search terms, each searched separately. |
| `country` | `string` | no | `"sg"` | `sg`, `my`, `th`, `ph`, `vn`, `id`. Singapore and Malaysia are verified; Thailand, Philippines, Vietnam and Indonesia are best-effort. |
| `maxItems` | `integer` | no | `80` | Max rows per search term (1–4000). One page holds 40 products. |
| `sort` | `string` | no | `"popularity"` | `popularity`, `priceasc` or `pricedesc`. |
| `proxyConfiguration` | `object` | no | Residential | Apify Proxy settings. |

#### Example input

```json
{
  "queries": ["laptop"],
  "country": "sg",
  "maxItems": 80,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### 📤 Output

One row per product.

| Field | Type | Notes |
|---|---|---|
| `query` / `country` / `page` / `position` | mixed | The term, storefront, catalog page and 1-based rank that produced the row. |
| `itemId` / `skuId` | `string` | Lazada item and SKU ids. |
| `name` / `url` / `imageUrl` | `string` | Title, canonical `https://` product URL, main image. |
| `price` / `originalPrice` | `number` | Numeric price and pre-discount price. |
| `priceShow` / `discount` | `string` | Price as displayed and the discount label. |
| `currency` | `string` | `SGD`, `MYR`, `THB`, `PHP`, `VND` or `IDR`. |
| `ratingScore` / `reviewCount` | `number` | Average rating and review count. |
| `soldText` | `string` | Sold-count label when shown. |
| `location` | `string` | Dispatch location. |
| `sellerName` / `sellerId` / `brandName` / `brandId` | `string` | Seller and brand. |
| `categoryIds` | `array` | Lazada category ids. |
| `inStock` / `isSponsored` | `boolean` | Stock and sponsored flags. |
| `scrapedAt` | `string` | ISO-8601 UTC timestamp. |

#### Example output

```json
{
  "query": "laptop",
  "country": "sg",
  "page": 1,
  "position": 1,
  "itemId": "13746645079",
  "skuId": "124697995368",
  "name": "ACER SWIFT GO 14\" COPILOT+ PC ULTRA 7 256V SFG14-75-76G5",
  "url": "https://www.lazada.sg/products/pdp-i13746645079.html",
  "price": 1549.0,
  "priceShow": "$1,549.00",
  "originalPrice": 1899.0,
  "discount": "18% Off",
  "currency": "SGD",
  "ratingScore": 5.0,
  "reviewCount": 1,
  "location": "Singapore",
  "sellerName": "Gain City Singapore",
  "brandName": "Acer",
  "inStock": true,
  "isSponsored": false,
  "scrapedAt": "2026-10-11T10:00:00+00:00"
}
```

### 💰 Pricing

Pay-Per-Event — you pay only when these events fire:

| Event | USD | What it is |
|---|---:|---|
| `actor-start` | $0.01 | One-off warm-up charge per run |
| `result` | $0.002 | Per unique product pushed to the dataset |

Example: 1 000 results at the rates above cost about **$2.01** ($0.01 start + 1 000 × $0.002). No subscription, no minimum spend.

### 🚧 Limitations

Lazada caps each search at roughly 100 pages of 40 products, so a single term returns at most about 4,000 rows. The total Lazada reports for a search is a fixed ceiling rather than a real count, so we never surface it as a result count. Singapore and Malaysia are verified; the Thailand, Philippines, Vietnam and Indonesia storefronts are best-effort and may behave differently. The `sort` option is passed through to Lazada as requested. Product detail pages, reviews and seller pages are not covered. Rows reflect what Lazada shows for the proxy's location at run time.

### ❓ FAQ

**Do I need a Lazada account or API key?**

No. Search results are public.

**Why did my search return fewer rows than `maxItems`?**

The search ran out of products, or Lazada's own result ceiling was reached. An empty search finishes successfully with zero rows.

**Which storefronts work?**

Singapore (`sg`) and Malaysia (`my`) are verified. The others are best-effort.

**What happens when a request is blocked?**

We rotate the proxy session and fingerprint and retry. If a page cannot be fetched after all attempts, you keep the rows already collected and the run reports it in the status message.

### 💬 Your feedback

Spotted a bug, hit a weird edge case, or need a field this Actor doesn't
ship yet? Open an issue on the Actor's **Issues** tab on Apify Console —
we read every report and ship fixes.

***

<div align="center">
  <sub>Built by Devil Scrapes · https://apify.com/DevilScrapes</sub>
</div>

# Changelog

This Actor's version history is a separate document: https://apify.com/devilscrapes/lazada-product-search-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

One or more keywords to search on Lazada. Each term is searched separately and rows carry the term they matched.

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

Lazada storefront to search. Singapore and Malaysia are verified; Thailand, Philippines, Vietnam and Indonesia are best-effort.

## `maxItems` (type: `integer`):

Maximum product rows to return for each search term (1-4000).

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

Result ordering requested from Lazada.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Defaults to residential exit IPs; we rotate the proxy session and retry automatically when a request is blocked.

## Actor input object example

```json
{
  "queries": [
    "laptop"
  ],
  "country": "sg",
  "maxItems": 80,
  "sort": "popularity",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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 = {
    "queries": [
        "laptop"
    ],
    "country": "sg",
    "maxItems": 80,
    "sort": "popularity",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/lazada-product-search-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 = {
    "queries": ["laptop"],
    "country": "sg",
    "maxItems": 80,
    "sort": "popularity",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/lazada-product-search-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 '{
  "queries": [
    "laptop"
  ],
  "country": "sg",
  "maxItems": 80,
  "sort": "popularity",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call devilscrapes/lazada-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devilscrapes/lazada-product-search-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/MQmthMccCccWrWxTU/builds/o6fm4QngmCFnVNTIR/openapi.json
