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

Scrape Shopee product listings by keyword, category, or URL across Brazil, Singapore, Malaysia, Vietnam, Thailand, and Philippines. Returns price, discount, seller, ratings, stock, shipping. Ideal for price monitoring, seller intelligence, and market research.

- **URL**: https://apify.com/gio21/shopee-scraper.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** E-commerce, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 3,318 total users, 293 monthly users, 100.0% runs succeeded, 31 bookmarks
- **User rating**: 4.33 out of 5 stars

## Pricing

from $5.00 / 1,000 product scrapeds

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, Prices, Sold Count & Sellers

**Shopee Scraper** extracts product data from [Shopee](https://shopee.com) by keyword or category: name, price, discount, sold-volume estimate, rating, reviews, seller and images. It works across **8 marketplaces** — Brazil, Indonesia, Thailand, Malaysia, Singapore, Mexico, Philippines and Vietnam — with **no login, no cookies and no setup**.

Export to **JSON, CSV or Excel**, pull it through the **API**, schedule it, or feed it straight to an **AI agent**. Think of it as a Shopee API for product data the official one doesn't give you.

### What can you do with it?

- **💰 Price monitoring & competitor tracking** — watch prices, discounts and stock signals across sellers and react to changes.
- **📊 Market & product research** — measure demand with sold-volume estimates, ratings and review counts; find gaps and bestsellers in any niche.
- **🛒 Dropshipping & product sourcing** — discover trending products and winning listings by keyword or category.
- **🎯 Lead generation** — collect seller names and shops to build prospect lists.
- **🤖 AI / LLM datasets** — produce clean, structured product JSON for RAG pipelines, agents and analysis.

### What data does it extract?

| Field | Description |
|-------|-------------|
| `name` | Product title |
| `price` / `priceMax` | Current price (and upper bound for variant ranges) |
| `currency` | Local currency (BRL, IDR, THB, …) |
| `originalPrice` / `discountPercent` / `isOnSale` | Discount signals |
| `historicalSoldEstimated` | Estimated sold-volume bracket (`100+`, `1k+`, `10k+`, …) |
| `rating` / `reviewCount` / `favorites` | Social proof |
| `shopName` / `location` / `brand` | Seller info |
| `images` | Up to 5 product image URLs |
| `itemId` / `shopId` / `url` | Identifiers and canonical link |

### ⚠️ Free vs. paid Apify plans

Live scraping at volume runs on infrastructure the author pays for, so the free Apify plan gets a sample and paid plans get full volume.

- **Free plan:** up to 20 real products per run (a live sample), enough to check the output shape and data quality.
- **Paid plan:** real, live Shopee data. The Starter plan ($49/mo) includes $49 in platform credits — roughly 10,000 real products.

Upgrade at <https://apify.com/pricing> and re-run — the actor detects your plan automatically, no input change needed.

### Input

Provide a keyword (or several) or a category URL. The most reliable mode is **keyword search**.

| Field | Type | Description |
|-------|------|-------------|
| `keywords` | Array | One or more search keywords. Each yields up to ~150 unique items. Combine 10–30 keywords to scrape thousands of products. |
| `location` | String | A single keyword (e.g. `"tênis nike"`) — shorthand for one-off runs. |
| `categoryUrls` | Array | Shopee category URLs (e.g. `https://shopee.com.br/Celulares-e-Dispositivos-cat.11059988`). |
| `priceSlicing` | Boolean | Run each keyword/category across 6 price buckets to bypass Shopee's per-search dedup cap (~6× bandwidth). |
| `country` | String | `BR`, `SG`, `MY`, `TH`, `ID`, `MX`, `PH`, `VN`. Auto-detected from URLs. |
| `maxItems` | Integer | Hard cap on total items. Default 100, max 10,000. |

> **Shop/seller URLs:** pass `https://shopee.XX/username` or `https://shopee.XX/shop/SHOPID`. The actor returns the shop's listing across five sort orders (up to ~200 items per shop). For a seller's catalog beyond that, add 5-10 keywords for their niche.

### Output

One record per product (real data on paid plans; mock sample on free plans):

```json
{
  "itemId": 1234567890,
  "shopId": 987654321,
  "name": "Tênis Nike Air Max",
  "price": 299.90,
  "priceMax": null,
  "currency": "BRL",
  "originalPrice": 399.90,
  "discountPercent": 25,
  "isOnSale": true,
  "historicalSoldEstimated": "5k+",
  "favorites": 1820,
  "reviewCount": 312,
  "rating": 4.85,
  "shopName": "Nike Official Store",
  "brand": "Nike",
  "location": "São Paulo",
  "images": ["https://cf.shopee.com.br/file/..."],
  "url": "https://shopee.com.br/tenis-nike-air-max-i.987654321.1234567890"
}
```

#### Field notes

- `historicalSoldEstimated`: an estimated sold-volume bracket. Shopee does not expose the exact sold count to automated requests, so this is an approximation returned as a bucket using `k`/`m`/`b` (`100+`, `1k+`, `10k+`, …). Low-volume listings return `"<100"`; `null` when no sold or review signal is available for that listing.
- `originalPrice` / `discountPercent` / `isOnSale`: discount signals. `originalPrice` is `null` when the item is not on sale; `isOnSale === true` filters discounted items.
- `priceMax`: only set when the listing has a price range across variants (not a pre-discount price).
- `brand` / `location` / `shopName` / `reviewCount`: `null` when Shopee doesn't expose them for that item.

### How many results per keyword?

The actor paginates each keyword across five sort orders (relevancy, sales, newest, price ascending, price descending) and deduplicates by item ID: several hundred unique items per keyword are typical. For broad coverage, run several specific keywords or use `categoryUrls`.

Set `timeoutSecs` to match `maxItems` (≈10 items/s safe pace): up to 500 → 120s, 2k → 200s, 5k → 500s, 10k → 1000s. If your config is undersized the actor still runs and pushes a `config_undersized` warning with suggested values.

### Integrations

- **API** — start runs and fetch the dataset via the [Apify API](https://docs.apify.com/api/v2) (REST/JSON) or the JS/Python clients. A Shopee API for the data the official one doesn't expose.
- **Schedule & monitor** — run on a [schedule](https://docs.apify.com/platform/schedules) for recurring price monitoring; get notified on failures.
- **AI agents / MCP** — expose this actor to ChatGPT, Claude and other assistants through the [Apify MCP server](https://mcp.apify.com) so an AI can pull live Shopee data on demand.
- **No-code** — pipe results into Make, Zapier, Google Sheets, Slack or your database with Apify [integrations](https://docs.apify.com/platform/integrations) and webhooks.

### FAQ

**How does Shopee Scraper work?**
It searches Shopee exactly as a shopper would, opens each product, copies the visible data and organizes it into a structured dataset — only much faster, and at scale.

**Is it legal to scrape Shopee?**
The actor collects only **publicly available** product information (no login, no personal data). As with any scraping, you are responsible for how you use the data and for complying with applicable laws and terms. See [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Do I need a Shopee account or login?**
No. No account, cookies or credentials — proxy and unblocking are handled automatically.

**Why is the sold count an estimate?**
Shopee redacts the exact sold/“terjual” figure for automated requests, so `historicalSoldEstimated` returns a conservative volume **bracket** rather than a fabricated exact number.

**Can I scrape a specific Shopee shop or seller?**
Yes. Pass the shop URL (`https://shopee.XX/username` or `https://shopee.XX/shop/SHOPID`) in `shopUrls`; the actor lists the shop across five sort orders (up to ~200 items per shop).

**Can I scrape a whole Shopee category?**
Yes — pass a category URL in `categoryUrls`. The actor rotates sort orders for maximum coverage.

**Which countries are supported?**
Brazil, Indonesia, Thailand, Malaysia, Singapore, Mexico, Philippines and Vietnam. Set `country` or let it auto-detect from a URL.

**Can I get the data through an API or connect it to AI?**
Yes — run it via the Apify API/clients, or expose it to AI assistants through the Apify MCP server. See **Integrations** above.

**How much does it cost?**
Pay only for what you scrape on a paid Apify plan; the Starter plan's monthly credits cover ~10,000 products. Free plans get a mock sample only.

### Related Actors

Building a data pipeline? Pair Shopee Scraper with:

- **[Shopee Product Detail](https://apify.com/gio21/shopee-product-detail)** — full product page by URL: variants, real price range, reviews and stock signals.
- **[Temu Scraper](https://apify.com/gio21/temu-scraper)** — products and prices from Temu.
- **[1688 Product Scraper](https://apify.com/gio21/1688-product-scraper)** — wholesale product data from 1688 (Alibaba).
- **[Goofish (Xianyu) Scraper](https://apify.com/gio21/goofish-scraper)** — second-hand listings from Xianyu / Goofish.
- **[Mercado Livre Scraper](https://apify.com/gio21/mercado-livre-scraper)** — products and prices from Mercado Livre.

***

### ⭐ Like this actor?

Trusted by 1,200+ users. If it saved you time, please take 30 seconds to [leave a review on the Apify Store](https://apify.com/gio21/shopee-scraper) — it's the single biggest way to support continued development.

# Actor input Schema

## `location` (type: `string`):

Shorthand for one-off runs: a single product keyword, Shopee search URL, shop URL, or category URL. Example: 'tênis nike'. For batch scraping use the 'keywords', 'categoryUrls', or 'shopUrls' arrays instead.

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

List of search keywords (most reliable mode). Each keyword yields up to ~150 unique items (Shopee API cap). Combine 10–30 specific keywords to scrape thousands of products. Example: \["tênis nike", "camiseta dry fit", "fone bluetooth"].

## `shopUrls` (type: `array`):

Shopee shop/seller URLs. Example: \["https://shopee.com.br/lojaname", "https://shopee.co.id/shop/250649369"]. Returns the shop's listing (up to ~200 items per shop across sort orders). For a seller's full catalog beyond that, add 5-10 niche keywords.

## `categoryUrls` (type: `array`):

Shopee category URLs. Example: \["https://shopee.com.br/Tenis-cat.11013548"]. Yields more items than keyword search; the actor rotates 4 sort orders for maximum coverage.

## `priceSlicing` (type: `boolean`):

When true, runs each keyword/category 6× across price buckets in the country's local currency (BRL for BR, THB for TH, IDR for ID, …) to bypass Shopee's per-search dedup cap and pull more unique items. Multiplies bandwidth and runtime ~6×. Example: false.

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

Country code selecting the Shopee domain. Auto-detected from URLs when present. Example: 'BR' (shopee.com.br).

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

Hard cap on total items returned across all inputs combined. Per-keyword cap is ~150; multi-keyword + category URLs scale to thousands. Example: 100. Range 10–10000.

## `debug` (type: `boolean`):

Enable verbose logging for troubleshooting. Leave off for normal runs. Example: false.

## Actor input object example

```json
{
  "location": "tênis",
  "keywords": [],
  "shopUrls": [],
  "categoryUrls": [],
  "priceSlicing": false,
  "country": "BR",
  "maxItems": 100,
  "debug": false
}
```

# Actor output Schema

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

All scraped Shopee products: name, price, priceMax, hasVariations, variationOptions, currency, historicalSoldEstimated, favorites, reviewCount, rating, shopName, brand, location, images, itemId, shopId, url. priceMax is only set when the listing itself exposes a range; for multi-variation items the listing carries only the lead model price, so hasVariations and variationOptions flag that a full per-variation range is available via the Shopee Product Detail actor. historicalSoldEstimated is an estimated sold-count bucket using k/m/b (e.g. 500+, 10k+, 100k+), not Shopee's on-page sold figure. On free plans every record also has \_mock:true and an \_notice upgrade message.

# 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 = {
    "location": "tênis",
    "keywords": [],
    "shopUrls": [],
    "categoryUrls": [],
    "priceSlicing": false,
    "country": "BR",
    "maxItems": 100,
    "debug": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/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 = {
    "location": "tênis",
    "keywords": [],
    "shopUrls": [],
    "categoryUrls": [],
    "priceSlicing": False,
    "country": "BR",
    "maxItems": 100,
    "debug": False,
}

# Run the Actor and wait for it to finish
run = client.actor("gio21/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 '{
  "location": "tênis",
  "keywords": [],
  "shopUrls": [],
  "categoryUrls": [],
  "priceSlicing": false,
  "country": "BR",
  "maxItems": 100,
  "debug": false
}' |
apify call gio21/shopee-scraper --silent --output-dataset

```

## MCP server setup

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