# Shopee Scraper (`jistudio/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/jistudio/shopee-scraper.md
- **Developed by:** [Ji Studio](https://apify.com/jistudio) (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**.

### ✨ 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=apify_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"
}
```

### 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.

***

### How to Scrape Shopee (8 Countries)

#### Step-by-Step in Apify Console

1. Open **shopee-scraper** in Apify Console and select your desired mode (`mode` or `action`).
2. Enter your search keywords, product URLs, or target IDs (or use the prefilled example input to test immediately).
3. Click **Start** — runs typically complete in **5 to 25 seconds** at just **256 MB** memory.
4. Preview structured records in the **Output** tab and export to **JSON, CSV, Excel, or XML**.

#### Programmatic API & SDK Integration

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

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run_input = {
  "action": "auto_start_urls",
  "country": "vn",
  "startUrls": [
    "https://shopee.vn/product/37251933/41412722725",
    "https://shopee.vn/product/37251933/23289211015"
  ],
  "maxItems": 15
}

run = client.actor("jistudio/shopee-scraper").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Extracted {len(items)} items")
```

##### JavaScript / Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });

const run = await client.actor('jistudio/shopee-scraper').call({
  "action": "auto_start_urls",
  "country": "vn",
  "startUrls": [
    "https://shopee.vn/product/37251933/41412722725",
    "https://shopee.vn/product/37251933/23289211015"
  ],
  "maxItems": 15
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} items`);
```

### Input Parameters Reference

All inputs below match the Actor's live schema (`input_schema.json`) and require **zero login cookies**:

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `action` | `string` | `"auto_start_urls"` | Choose which Shopee extraction mode to run. 'auto_start_urls' automatically detects Shopee product URLs, shop IDs, an... |
| `country` | `string` | `"vn"` | Select the target Shopee marketplace (or auto-detected from URL domain). |
| `startUrls` | `array` | `["https://shopee.vn/product/3725...` | Paste Shopee product URLs (e.g. https://shopee.vn/product/37251933/41412722725 or https://shopee.vn/...-i.37251933.41... |
| `productUrl` | `string` | `"https://shopee.vn/product/37251...` | Shopee product URL or shop_id/item_id pair. |
| `shopId` | `string` | `"37251933"` | Numeric Shopee shop_id (e.g. 37251933 for Unilever Official Mall). |
| `itemId` | `string` | `"41412722725"` | Numeric Shopee item_id (e.g. 41412722725). |
| `keyword` | `string` | `"iphone"` | Keyword for Shopee search autocomplete, top item IDs, and ads revenue / PC2 USD scores. |
| `categoryPreset` | `string` | `"beauty_hair"` | Category vertical preset for Shopee Hot Picks bestsellers. |
| `liveRoomId` | `string` | `"44060946"` | Numeric Shopee Live broadcast room ID or share URL (leave default to use active country live room). |
| `affiliateId` | `string` | `"17321010010"` | Your Shopee Affiliate ID (e.g. 17321010010) to embed into generated Universal & Deep Tracking Links. |
| `maxItems` | `integer` | `10` | Maximum number of items to return (1 - 5,000). |

#### Quick-Start JSON Input

```json
{
  "action": "auto_start_urls",
  "country": "vn",
  "startUrls": [
    "https://shopee.vn/product/37251933/41412722725",
    "https://shopee.vn/product/37251933/23289211015"
  ],
  "maxItems": 15
}
```

### Output Fields Reference

Every run writes clean, normalized records to your default Apify Dataset (`overview` view):

| Field | Label | Format |
| :--- | :--- | :---: |
| `type` | Type | `text` |
| `id` | Item/Session ID | `text` |
| `shop_id` | Shop ID | `text` |
| `title` | Product / Title | `text` |
| `shop_name` | Shop / Host | `text` |
| `price` | Price | `number` |
| `original_price` | Original Price | `number` |
| `currency` | Currency | `text` |
| `discount_pct` | Discount % | `number` |
| `sold_count` | Exact Sold (All-Time) | `number` |
| `monthly_sold` | Monthly Sold | `number` |
| `stock` | Stock | `number` |
| `rating_star` | Rating | `number` |
| `review_count` | Reviews | `number` |
| `category_path` | Category | `text` |
| `is_official_shop` | Shopee Mall | `boolean` |
| `commission_rate_pct` | Affiliate % | `number` |
| `commission_amount` | Est. Commission | `number` |

#### Verified Sample Dataset Record

```json
{
  "type": "product_detail",
  "id": "41412722725",
  "shop_id": "37251933",
  "title": "Dove Exfoliating Body Polish 280g Official Mall",
  "shop_name": "Unilever Official Store",
  "price": 152000,
  "original_price": 255000,
  "currency": "VND",
  "discount_pct": 40,
  "sold_count": 1096067,
  "monthly_sold": 28654,
  "is_official_shop": true,
  "country": "VN",
  "url": "https://shopee.vn/product/37251933/41412722725"
}
```

### How Much Does It Cost to Scrape Shopee (8 Countries)?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with **no hidden proxy surcharges** and a minimal **256 MB** default memory footprint:

| Event | Price | Example Cost (1,000 Items) |
| :--- | :---: | :---: |
| **Actor Start** (`apify-actor-start`) | `$0.02` / run | `$0.02` |
| **Standard Dataset Result** (`apify-default-dataset-item`) | `$0.0001` (`$0.10 / 1K`) | `$0.10` |
| **Total for 1,000 Standard Results** | — | **`$0.12` total** |

#### Subscription Tier Discounts

Paid Apify plans (**Bronze, Silver, Gold, Platinum, Diamond**) automatically receive volume discounts on enriched add-on events (deep SKU detail, verified reviews, affiliate intelligence). With Apify's **$5.00/month Free plan credit**, you can extract **40,000+ standard records per month** for free.

### Performance & Architecture

- **Zero Headless Browser Overhead**: Direct protocol calls eliminate Chromium boot time, reducing memory usage to **256 MB** and run duration to **5–25 seconds**.
- **Limited Permissions Security**: Runs strictly under Apify's **Limited Permissions** model — accessing only its own run storages.
- **Automated Quality & Fail-Safe**: Built-in error handling ensures clean status reporting if an upstream target temporarily rate-limits or returns empty results.

### FAQ

#### Why does this Shopee Scraper return exact sold numbers like 1,096,067 instead of '10k+'?

It queries Shopee's mobile endpoints directly, returning unrounded historical sold counts and monthly sales velocity rather than rounded desktop UI labels.

#### Which 8 Shopee countries are supported?

Vietnam (`vn`), Indonesia (`id`), Thailand (`th`), Philippines (`ph`), Malaysia (`my`), Singapore (`sg`), Taiwan (`tw`), and Brazil (`br`).

#### Do I need Shopee login cookies or proxies to run it?

No. Zero cookies and zero Shopee accounts are needed; default runs finish in 5–10 seconds at 256 MB memory.

#### Can I scrape Shopee Live shopping bags and active livestream rooms?

Yes. Use `action: live_discover_rooms` or `action: live_bag_items` with a numeric `liveRoomId` to inspect live flash-sale products and stream metadata.

#### Can I pull Shopee Mall bestsellers without providing product URLs?

Yes. Set `action` to `hot_picks_bestsellers` and choose a `categoryPreset` (`beauty_hair`, `beauty_skin`, `home_living`, `kitchen_appliance`, `tools_hardware`, or `sports_outdoor`).

### More Scrapers by JiStudio

Explore our full suite of direct-protocol, zero-browser data extraction Actors on Apify Store:

| Actor | Target Platform | Best For |
| :--- | :--- | :--- |
| [Shopee Scraper](https://apify.com/jistudio/shopee-scraper) | Shopee (8 Countries) | Exact unrounded sold counts, prices, vouchers, Shopee Live bags |
| [TikTok Shop Scraper](https://apify.com/jistudio/tiktok-shop-scraper) | TikTok & TikTok Shop (22+ Regions) | Trending feeds, HD no-watermark MP4, SKUs, KOL affiliates |
| [TikTok Transcript Scraper](https://apify.com/jistudio/tiktok-transcript-scraper) | TikTok Audio / Captions | Verbatim speech transcripts & WebVTT subtitles for LLM RAG |
| [Lazada Scraper](https://apify.com/jistudio/lazada-scraper) | Lazada (6 SEA Countries) | Search listings, LazMall bestsellers, verified buyer reviews |
| [Goofish Xianyu Scraper](https://apify.com/jistudio/goofish-xianyu-scraper) | Goofish / Xianyu (闲鱼) | China C2C resale arbitrage, seller credit & price comps |
| [AliExpress Scraper](https://apify.com/jistudio/aliexpress-scraper) | AliExpress Global | Dropshipping SKUs, localized shipping, verified buyer reviews |
| [1688 Wholesale Scraper](https://apify.com/jistudio/1688-wholesale-scraper) | 1688.com Factories | Direct Chinese factory pricing, MOQ tiers & SKU matrices |
| [Twitter Scraper](https://apify.com/jistudio/twitter-scraper) | X (Twitter) & Crypto | Single tweets, threads, HD videos & Solana/Base token X-intel |

### Support & Legal Compliance

#### Support & Feature Requests

Need help with a specific URL, custom field mapping, or edge case? Open a ticket on the **Issues** tab of this Actor on Apify Console — we actively monitor and ship patches rapidly.

#### Legal & Ethical Scraping Notice

This Actor accesses **only publicly available data** visible to unauthenticated visitors and does not bypass login screens or extract private personal data (PII). You are responsible for ensuring your data collection and usage comply with applicable laws (including GDPR/CCPA) and target website terms.

# 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.

## `categoryPreset` (type: `string`):

Category vertical preset for Shopee Hot Picks bestsellers.

## `liveRoomId` (type: `string`):

Numeric Shopee Live broadcast room ID or share URL (leave default to use active country live room).

## `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 - 5,000).

## 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",
  "categoryPreset": "beauty_hair",
  "liveRoomId": "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("jistudio/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("jistudio/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 jistudio/shopee-scraper --silent --output-dataset

```

## MCP server setup

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