# Lazada Scraper — Prices, Ratings, Sold Counts & Sellers (`muhammadafzal/lazada-products-scraper`) Actor

Scrape Lazada search results and item IDs in 6 countries: price, discount, rating, reviews, units sold, seller and location. USD 2.70 per 1,000 rows.

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

## Pricing

from $2.16 / 1,000 lazada product rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 — Prices, Ratings, Sold Counts & Sellers

Lazada Scraper returns Lazada product data as JSON or CSV from all six Lazada storefronts (Singapore, Malaysia, Thailand, Philippines, Indonesia and Vietnam): search results by keyword, or one row per item ID or product link, with price, original price, discount, star rating, review count, units sold, seller, brand and ship-from location. It costs USD 2.70 per 1,000 rows on the FREE tier (USD 2.16 on GOLD) plus a USD 0.005 start fee per run, and you pay only for rows delivered.

It is built for sellers, brands and analysts who track Lazada prices, discounts and best sellers, monitor competitors' listings, or research a category across Southeast Asia. You need no Lazada API key, seller account or proxies: the Actor handles data access and gives you clean, typed rows.

### What Lazada data does the scraper return?

One dataset row per product, unique on the Lazada item ID per country across all your keywords, pages, IDs and links. `source` says how the row was found: `search` (a keyword's results page), `productId` (an item ID you gave) or `productUrl` (a product link you gave). Every row carries the same fields.

| Field | What it holds |
|---|---|
| `productId`, `skuId` | Lazada item ID (the number after `-i` in a product link) and the variant whose price is shown |
| `title`, `url`, `imageUrl` | Product title, product link and main image |
| `price`, `priceText`, `currency` | Current price as a number and as shown (`$54.99`), in SGD, MYR, THB, PHP, IDR or VND |
| `originalPrice`, `discountText`, `discountPercent` | Price before the discount, and the discount (`24% Off`); null when Lazada shows no discount |
| `rating`, `reviewCount` | Average star rating out of 5 and the number of ratings |
| `soldText`, `soldCount` | Units sold as shown (`26.2K sold`) and as a number (26200; Lazada rounds above 1,000) |
| `sellerName`, `sellerId`, `brandName`, `isLazMall` | Shop name and ID, brand, and the LazMall badge for official and brand stores |
| `location` | Ship-from location Lazada shows (a city, a region, or China/Overseas for cross-border sellers) |
| `inStock`, `isSponsored`, `highlights` | Stock flag, ad flag and the short selling points shown with the result |
| `country`, `storefront`, `searchQuery`, `page`, `position`, `input`, `scrapedAt` | Where and when the row was read, and which of your inputs produced it |

Prices are the ones Lazada shows in its search results: the listing's cheapest variant, before vouchers. The `OUTPUT` record holds the run summary: status, the result of each input (`ok`, `empty`, `not-found`, `blocked`, `rejected`, `failed`, `skipped`), entries skipped before any request, the stop reason and request counters.

### How do I scrape Lazada search results?

Put keywords in **Search keywords** and pick a **Country**. Each results page holds up to 40 products in Lazada's own order; **Result pages per keyword** (default 3, up to 10) sets how deep each keyword goes, and **Maximum rows** (default 20, up to 1,000) caps the run.

```json
{
  "searchQueries": ["usb c charger", "power bank 20000mah"],
  "country": "MY",
  "maxPagesPerQuery": 3,
  "maxResults": 200
}
```

Keywords work in any language the storefront uses, for example `ที่ชาร์จ` on Thailand or `sạc nhanh` on Vietnam. A Lazada search link (`https://www.lazada.sg/catalog/?q=…`) on the chosen storefront also works. Lazada fills every search with its closest matches, so when no title on a page mentions any word of your keyword, the Actor drops that page and reports the keyword as `empty`, without charging for it.

### How do I track Lazada prices by item ID or product link?

Put item IDs in **Item IDs** (read on the storefront chosen in **Country**) or product links in **Product links** (read on the storefront each link names). Each one gives one row, usually in 3 to 15 seconds.

```json
{
  "productIds": ["1964583675"],
  "productUrls": ["https://www.lazada.co.th/products/pdp-i5274137864.html"],
  "country": "SG"
}
```

The item ID is the number after `-i` in a product link: `…-i1964583675-s10688515455.html` is item `1964583675`. The forms `i1964583675` and `1964583675_SGAMZ-10688515455` work too. IDs that are not 6 to 13 digits, and links that are not Lazada product links on one of the six storefronts, are skipped before any request. An item Lazada no longer lists comes back as `not-found` in `OUTPUT`, uncharged. Save the input as a task and schedule it to build your own Lazada price history.

### How much does it cost to scrape Lazada?

You pay per product row delivered, plus a start fee per run. Prices depend on your Apify plan:

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Product row (per 1,000 rows) | USD 2.70 | USD 2.633 | USD 2.565 | USD 2.16 |
| Run start (once per started GB of memory; one event at the default 256 MB) | USD 0.005 | USD 0.005 | USD 0.005 | USD 0.005 |

Discounts are 0%, 2.5%, 5% and 20%. Examples on the FREE tier: one item ID costs USD 0.0077 (start fee plus one row); 100 search rows cost USD 0.275; 1,000 rows cost USD 2.705. Products repeated across keywords or pages, item IDs Lazada does not list, unrelated search pages and pages that could not be read are never charged. Set a maximum charge on the run to cap the spend; the run stops cleanly when it is reached.

### What does a result look like?

```json
{
  "productId": "1964583675",
  "skuId": "10688515455",
  "country": "SG",
  "storefront": "lazada.sg",
  "source": "search",
  "input": "usb c charger",
  "searchQuery": "usb c charger",
  "page": 1,
  "position": 1,
  "title": "UGREEN 100W GaN 4-Port Fast Charger 3C1A 3 Type C 1 USB A Charger for Thinkpad T14 MacBook Pro/MacBook Air …",
  "url": "https://www.lazada.sg/products/pdp-i1964583675.html",
  "imageUrl": "https://sg-live-01.slatic.net/p/7375eb11a9fed2a6caa45a936b5e2c21.jpg",
  "price": 54.99,
  "priceText": "$54.99",
  "originalPrice": 71.99,
  "currency": "SGD",
  "discountText": "24% Off",
  "discountPercent": 24,
  "rating": 4.96,
  "reviewCount": 6989,
  "soldText": "26.2K sold",
  "soldCount": 26200,
  "sellerName": "UGREEN",
  "sellerId": "12580",
  "brandName": "UGREEN",
  "location": null,
  "inStock": true,
  "isSponsored": false,
  "isLazMall": true,
  "highlights": ["Mind: Do Not Support Charging Your Apple Watch!!! …"],
  "scrapedAt": "2026-11-08T16:02:11.000Z"
}
```

### When should I use Lazada Scraper, and when not?

**Use it when** you need Lazada prices, discounts, ratings, units sold and sellers for a list of keywords or known products, on demand or on a schedule, as rows you can filter in a spreadsheet or feed to another tool.

**Use another tool when:**

- You need review text, every variant's price, product descriptions or specifications. This Actor returns what Lazada's search results show: one price per listing (the cheapest variant), the rating and the review count.
- You need a seller's whole shop or a category page. Search by keyword instead, or give the item IDs.
- You need other marketplaces: [AliExpress Scraper](https://apify.com/muhammadafzal/aliexpress-products-reviews-sellers), [Daraz Product Scraper](https://apify.com/muhammadafzal/daraz-product-scraper) for South Asia, [TikTok Shop Products Scraper](https://apify.com/muhammadafzal/tiktok-shop-product-scraper), [Amazon Scraper](https://apify.com/muhammadafzal/amazon-product-offers-bestsellers-scraper) or [eBay Scraper](https://apify.com/muhammadafzal/ebay-scraper).

### Use it from an AI assistant

The Actor works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add `https://mcp.apify.com/?tools=muhammadafzal/lazada-products-scraper` as an MCP server, then ask, for example: "Find the 20 best-selling 20000 mAh power banks on Lazada Malaysia under RM 80 with at least 4.8 stars." The assistant fills in the input, runs the Actor and reads the rows.

You can also call it from the Apify API, the JavaScript or Python client, Make, Zapier or n8n, and export results as JSON, CSV or Excel.

### FAQ

**Is there a Lazada API for product data?**
Lazada's Open Platform API is for sellers managing their own shop, and it needs an approved app and a seller account. This Actor reads the public search results instead, so you can get any product's price, rating and units sold without an API key or seller account.

**Is it legal to scrape Lazada?**
The Actor reads public search results that anyone can open without logging in, and returns product and shop facts only, no buyer data or reviewer names. Check that your own use of the data follows the laws and terms that apply to you.

**Which Lazada countries are supported?**
Singapore (lazada.sg), Malaysia (lazada.com.my), Thailand (lazada.co.th), the Philippines (lazada.com.ph), Indonesia (lazada.co.id) and Vietnam (lazada.vn). Prices are in each storefront's own currency.

**Why does a search return fewer rows than pages × 40?**
Lazada's ranking shifts slightly between reads, so a later page can repeat products already delivered from an earlier page; repeats are dropped and not charged. Lazada also shows fewer than 40 products on some pages (in a test on 2026-11-08, page 1 of "power bank" on Malaysia held a single product while pages 2 and 3 held 40 each); the Actor still reads the following pages. A keyword stops when Lazada has no more pages, or when Maximum rows or the maximum charge is reached.

**Why did an item ID return nothing?**
`OUTPUT` lists it as `not-found` when Lazada lists no product with that ID on that storefront: the product was removed, or the ID belongs to another country's storefront. It is not charged.

**What happens when Lazada blocks a page?**
A page that fails or comes back as an anti-bot check is read again after a pause, up to three times. Pages the Actor cannot read are reported in `OUTPUT`, rows already found are kept, and nothing is charged for those pages.

**How fresh is the data?**
Every run reads Lazada live; `scrapedAt` records when. Schedule the Actor to keep a price or sales history.

Last verified: 2026-11-08

# Actor input Schema

## `searchQueries` (type: `array`):

Use this to find products the way a shopper searches Lazada, for example usb c charger or sạc nhanh. Each results page gives up to 40 products in Lazada's own order. Up to 20 keywords per run, all on the storefront chosen in Country. A Lazada search link (…/catalog/?q=…) on that storefront also works. Leave empty when you only track known products.

## `productIds` (type: `array`):

Use this to track known products on the storefront chosen in Country: the item ID is the number after -i in a product link (…-i1964583675-s10688515455.html gives 1964583675). Each ID gives one row with the price Lazada shows in its search results (the listing's cheapest variant), rating, reviews, units sold and seller. IDs that are not 6 to 13 digits are skipped before any request. Up to 200 IDs and links together per run.

## `productUrls` (type: `array`):

Use this when you have Lazada product links, for example https://www.lazada.co.th/products/pdp-i5274137864.html. Each link is read on the storefront it names, whatever Country says, and gives the same row as an item ID. Search, shop and category links, and links outside the six Lazada storefronts, are skipped before any request.

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

Use this to pick the Lazada storefront for search keywords and item IDs. Prices come in that storefront's currency (SGD, MYR, THB, PHP, IDR or VND). Product links always use the storefront in the link.

## `maxResults` (type: `integer`):

Use this to cap the size and cost of a run: it stops cleanly after this many product rows. Default 20, at most 1,000. The run's maximum charge also stops it.

## `maxPagesPerQuery` (type: `integer`):

Use this to read deeper into each keyword's results: each page holds up to 40 products. 1 to 10, default 3. A keyword stops early when Lazada has no more pages or when Maximum rows is reached. Applies to search keywords only.

## Actor input object example

```json
{
  "productIds": [
    "1964583675"
  ],
  "country": "SG",
  "maxResults": 20,
  "maxPagesPerQuery": 3
}
```

# Actor output Schema

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

Dataset rows: one per product per country, from search results, item IDs or product links.

## `summary` (type: `string`):

The OUTPUT record: status, per-input results, skipped entries, stop reason, warnings and request counters.

# 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 = {
    "productIds": [
        "1964583675"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/lazada-products-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 = { "productIds": ["1964583675"] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/lazada-products-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 '{
  "productIds": [
    "1964583675"
  ]
}' |
apify call muhammadafzal/lazada-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/lazada-products-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/0rCMWL3EBhosEcQpK/builds/XfWnxqOEj7xkpnVNm/openapi.json
