# Shopee Scraper (`nghianguyen2/shopee-scraper`) Actor

⚡ From $0.10/1K — No-Login 8-Country Shopee Scraper (VN, ID, TH, PH, MY, SG, TW, BR): Exact Unrounded Sold Count, Live Prices, Stock, Vouchers, Official Shops, Shopee Live Bag & Affiliate Commission Links. MCP-ready. Zero cookies.

- **URL**: https://apify.com/nghianguyen2/shopee-scraper.md
- **Developed by:** [Nghia Nguyen](https://apify.com/nghianguyen2) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 standard dataset results

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

## Shopee Scraper: Products, Exact Sold, Live Bag & Affiliate (8 Countries) | $0.10/1K

Extract **Shopee products, unrounded exact historical sold counts, monthly sales velocity, live prices, stock, shop & platform vouchers, category breadcrumb trees, Hot Picks bestsellers, Daily Discover feeds, search keyword revenue scores, Official Mall seller profiles, Shopee Live shopping bags, active livestream HLS/FLV rooms, and Affiliate Universal tracking links** across all **8 Shopee marketplaces**: **Vietnam (`vn`)**, **Indonesia (`id`)**, **Thailand (`th`)**, **Philippines (`ph`)**, **Malaysia (`my`)**, **Singapore (`sg`)**, **Taiwan (`tw`)**, and **Brazil (`br`)** — **no Shopee login or cookies required**.

> 🚀 **Need sub-250ms Direct REST API Access for High-Frequency Bots & Dashboards?**
>
> - **RapidAPI Hub (Free Tier Available)**: [Shopee E-Commerce, Live & Affiliate Intelligence API (13 Endpoints)](https://rapidapi.com/Techssss/api/shopee-e-commerce-live-affiliate-intelligence)

***

### ✨ Why Choose This Shopee Scraper?

Most legacy web scrapers fail on Shopee due to desktop anti-bot walls (`90309999` / CAPTCHA) or only return rounded sales text (`"10k+ sold"`). This Actor uses **Shopee's Native Android Mobile Protocol (`v3.70.29` / `opalp` & `live` edge endpoints)** to deliver:

1. **Exact Unrounded Historical & Monthly Sold Counts**: Get `1,095,695` exact all-time units sold and `28,654` monthly units sold instead of rounded `"1000k+"` strings.
2. **All 8 Shopee Marketplaces Supported Out-of-the-Box**:
   - 🇻🇳 **Vietnam** (`shopee.vn` — `VND`)
   - 🇮🇩 **Indonesia** (`shopee.co.id` — `IDR`)
   - 🇹🇭 **Thailand** (`shopee.co.th` — `THB`)
   - 🇵🇭 **Philippines** (`shopee.ph` — `PHP`)
   - 🇲🇾 **Malaysia** (`shopee.com.my` — `MYR`)
   - 🇸🇬 **Singapore** (`shopee.sg` — `SGD`)
   - 🇹🇼 **Taiwan** (`shopee.tw` — `TWD`)
   - 🇧🇷 **Brazil** (`shopee.com.br` — `BRL`)
3. **13 Specialized Extraction Modes in 1 Actor**:
   - `auto_start_urls`: Paste a mix of Shopee product URLs (`https://shopee.vn/product/37251933/41412722725` or `-i.37251933.41412722725`), `shop_id/item_id` pairs, or Shopee Live session links.
   - `product_detail`: Full PDP extraction (exact sold count, price, original price, discount %, stock, rating, review count, shop & platform vouchers, category breadcrumb tree, and affiliate commission estimate).
   - `batch_products`: Scrape up to 20 Shopee products simultaneously in a single request.
   - `product_categories`: Full multi-level category breadcrumb hierarchy (`Sắc Đẹp > Chăm sóc tóc > Dầu gội`).
   - `hot_picks_bestsellers`: High-velocity Shopee Mall bestsellers by category preset (`beauty_hair`, `beauty_skin`, `home_living`, `kitchen_appliance`, `tools_hardware`, `sports_outdoor`).
   - `daily_discover_feed`: Real-time Shopee homepage Daily Discover trending products.
   - `search_keywords`: Autocomplete keyword suggestions enriched with internal `ads_revenue_score`, `pc2_usd_score`, and `top_item_id`.
   - `shop_profile`: Official Mall / Preferred+ seller profile, rating star, review volume, sales velocity, and featured product.
   - `live_bag_items`: Real-time **Shopee Live Shopping Bag** items, livestream flash-sale prices vs out-of-live prices, warehouse stock, and live-exclusive vouchers.
   - `live_discover_rooms`: Discover active Shopee Live streaming rooms & replays with viewer counts and direct HLS/M3U8 video stream URLs.
   - `live_stream_info`: Extract direct HLS/FLV stream URLs and preset chat messages for any Shopee Live session ID.
   - `live_host_status`: Check if a Shopee seller or host UID is currently live streaming.
   - `affiliate_link_generator`: Convert any Shopee product URL into high-converting Universal Affiliate Links (`universal-link`, `opaanlp`, `shopeevn://` app deeplink) + exact Base & Xtra commission calculations.

***

### 📊 Sample Output (`product_detail` / `auto_start_urls`)

```json
{
  "type": "product_detail",
  "id": "41412722725",
  "shop_id": "37251933",
  "title": "[CHÍNH HÃNG ĐỘC QUYỀN] Tẩy Tế Bào Chết Body Dove Chăm Da Sáng Mịn 280G",
  "shop_name": "Unilever - Chăm Sóc Cá Nhân",
  "price": 162000,
  "original_price": 255000,
  "currency": "VND",
  "discount_pct": 36,
  "sold_count": 1095695,
  "monthly_sold": 28654,
  "stock": 100,
  "rating_star": 4.92,
  "review_count": 203409,
  "category_path": "Sắc Đẹp > Chăm sóc tóc > Dầu gội",
  "is_official_shop": true,
  "commission_rate_pct": 17.5,
  "commission_amount": 28350,
  "affiliate_universal_link": "https://shopee.vn/universal-link/product/37251933/41412722725?deep_and_deferred=1&utm_source=an_17321010010&utm_medium=affiliates&utm_campaign=-&utm_content=rapidapi_shopee",
  "image_url": "https://down-vn.img.susercontent.com/file/vn-11134207-81ztc-mvvox9mjl9twf7",
  "stream_url": null,
  "country": "VN",
  "url": "https://shopee.vn/product/37251933/41412722725"
}
```

***

### 🔗 Sister Scrapers & Direct APIs by Techssss

- 🛍️ **[Shopee E-Commerce, Live & Affiliate REST API (RapidAPI)](https://rapidapi.com/Techssss/api/shopee-e-commerce-live-affiliate-intelligence)**
- 🎵 **[TikTok & TikTok Shop Scraper, Video & Transcript Actor](https://apify.com/nghianguyen2/tiktok-shop-scraper-no-watermark-video-transcript)**
- 🐦 **[Twitter (X) Tweet Scraper, Video & Crypto X-Intel Actor](https://apify.com/nghianguyen2/twitter-x-tweet-scraper-solana-crypto)**

### Use Cases

- **Find resale and arbitrage deals** across 8 Shopee marketplaces (VN, ID, TH, PH, MY, SG, TW, BR) with exact unrounded sold counts.
- **Get deal and restock alerts** on Shopee flash deals, price drops, voucher updates, and live inventory stock.
- **Collect reviews and ratings** & product sourcing intelligence from Official Mall and Preferred Shopee sellers.

***

### AI Agents, MCP Server & Automation Integrations

- **Native MCP Server Ready**: Connect directly as a remote tool in **Claude Desktop**, **Cursor IDE**, **ChatGPT**, **LangChain**, and **CrewAI** via Apify MCP (`https://mcp.apify.com`) — **No Login & No Cookies required**.
- **No-Code Workflows**: Plug straight into **n8n**, **Make (Integromat)**, **Zapier**, and webhooks for automated 24/7 price monitoring, deal & restock alerts, and competitor intelligence.

### High-Volume Enterprise API & Custom Scrapers

Need **unlimited throughput**, dedicated raw REST endpoints (zero platform overhead), custom anti-bot scrapers, or private data pipelines for your e-commerce / trading team?

- **Direct Telegram (Fastest — Same-Day Response)**: [**@WinJ_sui**](https://t.me/WinJ_sui) (for dedicated high-speed API keys, custom scrapers, bulk volume discounts & USDT/Bank invoicing)
- Or click **"Message Creator"** on our Apify profile (`nghianguyen2`).

# Actor input Schema

## `action` (type: `string`):

Choose which Shopee extraction mode to run. 'auto_start_urls' automatically detects Shopee product URLs, shop IDs, and Shopee Live session IDs.

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

Select the target Shopee marketplace (or auto-detected from URL domain).

## `startUrls` (type: `array`):

Paste Shopee product URLs (e.g. https://shopee.vn/product/37251933/41412722725 or https://shopee.vn/...-i.37251933.41412722725), shop_id/item_id pairs ('37251933/41412722725'), or Shopee Live session URLs.

## `productUrl` (type: `string`):

Shopee product URL or shop_id/item_id pair.

## `shopId` (type: `string`):

Numeric Shopee shop_id (e.g. 37251933 for Unilever Official Mall).

## `itemId` (type: `string`):

Numeric Shopee item_id (e.g. 41412722725).

## `keyword` (type: `string`):

Keyword for Shopee search autocomplete, top item IDs, and ads revenue / PC2 USD scores.

## `presetKey` (type: `string`):

Category vertical preset for Shopee Hot Picks bestsellers.

## `sessionId` (type: `string`):

Numeric Shopee Live session_id or share URL (leave default to use active country seed session).

## `affiliateId` (type: `string`):

Your Shopee Affiliate ID (e.g. 17321010010) to embed into generated Universal & Deep Tracking Links.

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

Maximum number of items to return (1 - 50).

## `rapidapiKey` (type: `string`):

Optional RapidAPI key from https://rapidapi.com/Techssss/api/shopee-e-commerce-live-affiliate-intelligence for dedicated edge routing.

## Actor input object example

```json
{
  "action": "auto_start_urls",
  "country": "vn",
  "startUrls": [
    "https://shopee.vn/product/37251933/41412722725",
    "https://shopee.vn/product/37251933/23289211015"
  ],
  "productUrl": "https://shopee.vn/product/37251933/41412722725",
  "shopId": "37251933",
  "itemId": "41412722725",
  "keyword": "iphone",
  "presetKey": "beauty_hair",
  "sessionId": "44060946",
  "affiliateId": "17321010010",
  "maxItems": 10
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        "https://shopee.vn/product/37251933/41412722725",
        "https://shopee.vn/product/37251933/23289211015"
    ],
    "productUrl": "https://shopee.vn/product/37251933/41412722725",
    "shopId": "37251933",
    "keyword": "iphone"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nghianguyen2/shopee-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 = {
    "startUrls": [
        "https://shopee.vn/product/37251933/41412722725",
        "https://shopee.vn/product/37251933/23289211015",
    ],
    "productUrl": "https://shopee.vn/product/37251933/41412722725",
    "shopId": "37251933",
    "keyword": "iphone",
}

# Run the Actor and wait for it to finish
run = client.actor("nghianguyen2/shopee-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 '{
  "startUrls": [
    "https://shopee.vn/product/37251933/41412722725",
    "https://shopee.vn/product/37251933/23289211015"
  ],
  "productUrl": "https://shopee.vn/product/37251933/41412722725",
  "shopId": "37251933",
  "keyword": "iphone"
}' |
apify call nghianguyen2/shopee-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nghianguyen2/shopee-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/Ohy1wvE8O9dpAhh9M/builds/qDhHaZK91pmYVik8D/openapi.json
