# Shopee Scraper: prices, discounts, reviews (ID VN PH TH MY) (`bonpleincapital/shopee-scraper-pompon`) Actor

Shopee scraper for ID, VN, PH, TH, MY: product prices, discounts, ratings, sold counts, price-drop tracking and reviews. Public pages, no login. AI-made.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/shopee-scraper-pompon.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (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 $0.60 / 1,000 product 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 Pompon

**Shopee scraper Pompon** reads public Shopee pages in Indonesia, Vietnam, the Philippines, Thailand and Malaysia and
returns price, struck-through price, discount, currency, rating, location and units sold for each product. It also
tracks price drops between two runs and exports product reviews. Built for charities and fair-trade shops that compare
handmade products across Southeast Asia. Export to JSON, CSV or Excel, or use the Apify API. No login, no cookie.

### What can this Actor do? (the miniature Atelier)

Welcome to a tiny Atelier where four Pompons work for you:

- **The Pompon with the tape measure** measures prices: price, price before discount, discount (computed by the Actor), currency (IDR, VND, PHP, THB, MYR), rating, location, units sold and URL.
- **The Pompon with round glasses** reads reviews: stars, text, date, variant, photos and seller reply. Buyer names are pseudonymised (`a***4f2c`).
- **The Pompon with the green visor** watches price drops: in `track` mode only products whose price dropped or whose stock changed are returned and billed.
- **The Pompon with the pencil** notes the exports: JSON, CSV, Excel, HTML.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Choose a **mode** (`products`, `track`, `reviews`) and a **country** (`id`, `vn`, `ph`, `th`, `my`).
3. Add keywords, category URLs, shop URLs or product URLs. Optional: min and max price, minimum rating, sort by sales.
4. Click **Start**. For `track`, run it twice or schedule it: the first run saves the state in the named key-value store `shopee-pompon-state`.
5. Download the dataset in your preferred format.

### Input

```json
{
  "mode": "products",
  "country": "my",
  "keywords": ["handmade batik"],
  "sortBy": "sales",
  "maxItems": 5
}
```

### Output

```json
{
  "status": "ok",
  "country": "my",
  "itemId": 123456,
  "shopId": 98765,
  "title": "Handmade batik scarf",
  "price": 25.9,
  "priceBeforeDiscount": 39.0,
  "discountPercent": 33.6,
  "currency": "MYR",
  "rating": 4.9,
  "location": "Kuala Lumpur",
  "sold": 812,
  "stock": 40,
  "url": "https://shopee.com.my/product/98765/123456"
}
```

### How much does it cost?

**Pay per event.** Starting price: about **$1.00 per 1,000 products** (`result` event, the season's minimum price) and about **$2.50 per 1,000
reviews** (`review` event). In `track` mode only changed products are billed. Empty runs are never billed. The Apify
free plan gives monthly credits to try it.

### Known limits

- Shopee sometimes blocks robots or answers with errors. The Actor retries, never bypasses a captcha, and tells you when nothing came back (`status: no_results`). Results are not guaranteed.
- Only public data is read. Fields can be missing if Shopee does not publish them.
- Photos and reviews depend on what the public endpoint returns.

### FAQ

#### Is it legal?

The Actor reads public data only and stores no buyer personal data (names are pseudonymised). You are responsible for
your use, including the GDPR. This is not legal advice.

#### Why did my run return no_results?

Shopee may have blocked the request, or in `track` mode nothing changed since the last run. Nothing is billed.

#### Can I use the API?

Yes, with the Apify API, Python and JavaScript clients, Make, Zapier or n8n.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/shopee-scraper-pompon/changelog.md

# Actor input Schema

## `mode` (type: `string`):

products: list products. track: only products whose price dropped or stock changed since the last run. reviews: export reviews of product URLs.

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

Shopee market to read.

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

Search terms, for example handmade batik.

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

Public Shopee category URLs (containing cat.123).

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

Public shop URLs.

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

Public product URLs (required for reviews mode).

## `minPrice` (type: `number`):

In the local currency of the country.

## `maxPrice` (type: `number`):

In the local currency of the country.

## `minRating` (type: `number`):

From 0 to 5.

## `sortBy` (type: `string`):

Sort order of products.

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

Stop after this many results. Keep it low to test cheaply.

## Actor input object example

```json
{
  "mode": "products",
  "country": "my",
  "keywords": [
    "handmade batik"
  ],
  "sortBy": "sales",
  "maxItems": 5
}
```

# Actor output Schema

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

One dataset item per result, shown in the Overview view.

# 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 = {
    "mode": "products",
    "country": "my",
    "keywords": [
        "handmade batik"
    ],
    "sortBy": "sales",
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/shopee-scraper-pompon").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 = {
    "mode": "products",
    "country": "my",
    "keywords": ["handmade batik"],
    "sortBy": "sales",
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/shopee-scraper-pompon").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 '{
  "mode": "products",
  "country": "my",
  "keywords": [
    "handmade batik"
  ],
  "sortBy": "sales",
  "maxItems": 5
}' |
apify call bonpleincapital/shopee-scraper-pompon --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/shopee-scraper-pompon"
        }
    }
}
```

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/0Dut5z9MdtMXb2vDw/builds/eRmRL86quBvWVChOr/openapi.json
