# Shopee & Lazada SEA Product, Price & Velocity API (`coherent_edelweiss/shopee-lazada-sea-ecommerce-api`) Actor

- **URL**: https://apify.com/coherent_edelweiss/shopee-lazada-sea-ecommerce-api.md
- **Developed by:** [harrison clough](https://apify.com/coherent_edelweiss) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 primary lead / record scrapeds

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

## Shopee & Lazada SEA Product, Price & Velocity API

Extract Southeast Asia e-commerce product listings, **multi-currency USD-normalized pricing**, **discount percentages**, **seller ratings**, **30-day sales velocity**, and **estimated 30-day GMV/revenue** across **Singapore (`SG`), Malaysia (`MY`), Indonesia (`ID`), Thailand (`TH`), Philippines (`PH`), and Vietnam (`VN`)** without headless browser timeouts.

Built for **brand protection teams**, **CPG market intelligence**, **n8n**, **Make.com**, and **AI Agents (MCP)** with **guaranteed structured JSON output** and **Pay-Per-Result ($0 on Empty)** billing.

***

### Why Use This SEA E-Commerce API Instead of Browser Scrapers?

| Feature | Legacy Shopee/Lazada Browser Scrapers | `coherent_edelweiss/shopee-lazada-sea-ecommerce-api` |
| :--- | :--- | :--- |
| **Marketplace Coverage** | Single-country browser scrapers | **All 6 Southeast Asia regions (`SG`, `MY`, `ID`, `TH`, `PH`, `VN`) in one API** |
| **Multi-Currency Normalization** | Dumps raw `IDR`, `VND`, `THB`, `MYR`, `PHP`, `SGD` strings | **Automatic real-time `price_usd` & `estimated_30d_revenue_usd` normalization** |
| **Reliability & Speed** | Frequent Playwright CAPTCHA timeouts | **4–6 second structured JSON extraction** |
| **Pricing Model** | $30–$45/mo rental | **Pay-Per-Event ($0.002–$0.007/SKU)** — **$0 on empty results** |
| **Merchandising AI** | Raw product dump | **Built-in `ai_merchandising_insight`** for competitive price positioning |

***

### Transparent Pay-Per-Event Pricing (Zero-Charge on Empty)

- **`result-scraped` ($0.002):** Charged only when a valid product listing with price and seller data is extracted.
- **`verified-contact-enriched` ($0.003):** Charged only when normalized USD pricing, stock status, and 30-day sales velocity metrics are attached.
- **`ai-structured-summary` ($0.002):** Charged only when `includeMerchandisingInsight: true` generates a competitive merchandising brief.

***

### 1-Click Integrations: n8n, Make.com, Clay & Python

#### cURL / n8n / Make.com HTTP Request

```bash
curl -X POST "https://api.apify.com/v2/acts/coherent_edelweiss~shopee-lazada-sea-ecommerce-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "keywords": ["wireless earbuds", "ceramide moisturizer"],
    "region": "SG",
    "maxItemsPerKeyword": 10,
    "includeMerchandisingInsight": true
  }'
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("coherent_edelweiss/shopee-lazada-sea-ecommerce-api").call(
    run_input={
        "keywords": ["wireless earbuds"],
        "region": "SG",
        "maxItemsPerKeyword": 5,
        "includeMerchandisingInsight": True,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["platform"], item["title"], f"${item['price_usd']} USD", f"30d Rev: ${item['estimated_30d_revenue_usd']}")
```

***

### Sample Enriched Output

```json
{
  "platform": "Shopee",
  "region": "SG",
  "keyword": "wireless earbuds",
  "item_id": "sp-sg-1001",
  "title": "Pro ANC Wireless Earbuds Bluetooth 5.3 Low Latency",
  "product_url": "https://shopee.sg/search?keyword=wireless+earbuds",
  "currency": "SGD",
  "price_local": 39.9,
  "price_usd": 29.73,
  "discount_pct": 33.0,
  "monthly_sold": 420,
  "historical_sold": 3180,
  "estimated_30d_revenue_usd": 12486.6,
  "rating": 4.9,
  "reviews_count": 845,
  "shop_name": "Official Audio Mall SG",
  "shop_location": "Singapore",
  "is_official_store": true,
  "in_stock": true,
  "ai_merchandising_insight": "Strong velocity (420 units/30d, ~$12.5k USD GMV) at a 33% discount anchor; Official Mall badge sustains a 4.9 rating premium."
}
```

***

### Connect to Claude Desktop, Cursor & AI Agents (MCP)

You can call this Actor directly from **Claude Desktop**, **Cursor**, or any **Model Context Protocol (MCP)** client:

```json
{
  "mcpServers": {
    "shopee-lazada-sea-ecommerce-api": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "coherent_edelweiss/shopee-lazada-sea-ecommerce-api"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

***

### UK GDPR, EU GDPR & PECR Compliance Notice (Safe-by-Design)

- **Public E-Commerce Catalog Telemetry Only:** This Actor extracts strictly non-personal public product catalog metadata (SKU titles, prices, currency conversions, and aggregate store ratings). It does **not** extract buyer personal data or private user profiles.

# Actor input Schema

## `keywords` (type: `array`):

Product search keywords to extract across Shopee / Lazada SEA marketplaces.

## `region` (type: `string`):

Target Southeast Asia marketplace country code.

## `maxItemsPerKeyword` (type: `integer`):

Maximum product listings to extract per keyword.

## `includeMerchandisingInsight` (type: `boolean`):

Synthesizes a competitive price-positioning & velocity note for each product.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "region": "SG",
  "maxItemsPerKeyword": 3,
  "includeMerchandisingInsight": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

Southeast Asia e-commerce product listings, USD normalized pricing, seller ratings, and estimated 30-day sales velocity.

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

JSON summary of records extracted and PAY_PER_EVENT billing telemetry

# 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 = {
    "keywords": [
        "wireless earbuds"
    ],
    "region": "SG",
    "maxItemsPerKeyword": 3,
    "includeMerchandisingInsight": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("coherent_edelweiss/shopee-lazada-sea-ecommerce-api").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 = {
    "keywords": ["wireless earbuds"],
    "region": "SG",
    "maxItemsPerKeyword": 3,
    "includeMerchandisingInsight": True,
}

# Run the Actor and wait for it to finish
run = client.actor("coherent_edelweiss/shopee-lazada-sea-ecommerce-api").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 '{
  "keywords": [
    "wireless earbuds"
  ],
  "region": "SG",
  "maxItemsPerKeyword": 3,
  "includeMerchandisingInsight": true
}' |
apify call coherent_edelweiss/shopee-lazada-sea-ecommerce-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coherent_edelweiss/shopee-lazada-sea-ecommerce-api"
        }
    }
}
```

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/gmjnsd2BOyem7revm/builds/vmRz4wGCffUqlBqwU/openapi.json
