# Shopee Product Reviews Scraper: Full History & Filters (`wyle/shopee-product-reviews-scraper`) Actor

Scrape complete Shopee product reviews by URL: star ratings, review text, buyer photos and videos, purchased variant, and seller replies across 7 Shopee markets.

- **URL**: https://apify.com/wyle/shopee-product-reviews-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Product Reviews Scraper: Full History & Filters

A high-performance, HTTP-only Apify Actor for scraping complete Shopee product reviews, sub-ratings, buyer photos and videos, purchased variants, and seller responses across 7 Southeast Asian and Latin American markets.

***

### Key Features

- **Fast & Lightweight**: Pure HTTP requests using TLS impersonation (`curl_cffi` with `chrome124`) — zero headless browser or Puppeteer overhead.
- **27 Fields per Review**: Star rating, aspect sub-ratings (Product Quality, Seller Service, Delivery, Driver), review text, high-res photos, buyer videos, variant purchased, seller replies, buyer tags, and likes.
- **Per-Product Rating Summary**: Dedicated aggregated summary row per product (star breakdown `[1★, 2★, 3★, 4★, 5★]`, review counts with media/comments, local vs oversea buyers) delivered to the default dataset and a companion `summary` dataset.
- **Star & Content Filters**: Filter by star rating (`1` to `5` or `all`) and content type (`with comments`, `with media`, `local`, or `all`).
- **Resilient Dual-Tier Architecture**: First extracts rich product metadata directly from Shopee's Server-Side Rendered (SSR) Micro-Frontend (`text/mfe-initial-data`), followed by the paginated reviews API stream. If Shopee Server Gateway (SGW) challenges the stream, the Actor outputs the product summary profile without failing or crashing.
- **Multi-Market SEA Support**: Auto-detects marketplace from URL: Indonesia (`shopee.co.id`), Singapore (`shopee.sg`), Malaysia (`shopee.com.my`), Philippines (`shopee.ph`), Thailand (`shopee.co.th`), Vietnam (`shopee.vn`), and Brazil (`shopee.com.br`).

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `["https://shopee.co.id/product-i.241308147.25992970267"]` | Shopee product page URLs containing `-i.<shop>.<item>` or `/product/<shop>/<item>`. |
| `maxReviewsPerProduct` | Integer | `1000` | How many reviews to collect per product. Set to `0` to collect all available reviews. |
| `starFilter` | String | `"all"` | Collect only reviews with this star rating: `"all"`, `"5"`, `"4"`, `"3"`, `"2"`, or `"1"`. |
| `contentFilter` | String | `"all"` | Filter by review content: `"all"`, `"with comments"`, `"with media"`, or `"local"`. |
| `includeSummary` | Boolean | `true` | Include a per-product rating summary row. |
| `requestDelayMs` | Integer | `350` | Politeness delay in milliseconds between pagination requests. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": false }` | Apify Residential proxy configuration (recommended for high volume). |
| `shopeeCookies` | String | `""` | Optional raw Cookie header string or session cookies for authenticated requests. |
| `extraHeaders` | Object | `{}` | Optional dictionary of dynamic headers (e.g. `af-ac-enc-dat`). |

***

### Sample Output

#### Review Record (`recordType: "review"`)

```json
{
  "recordType": "review",
  "reviewId": 41823956710,
  "itemId": 6646421738,
  "shopId": 131198971,
  "ratingStar": 5,
  "comment": "Sound quality is great and fits comfortably. Battery life is amazing. Packaging was neat and delivery was fast.",
  "createdAt": "2026-05-14T13:22:08+00:00",
  "editedAt": "2026-05-15T07:04:31+00:00",
  "author": "s*****n",
  "authorId": 2048193746,
  "authorPortrait": "https://down-sg.img.susercontent.com/file/sg-11134233-7s4b1-mprq9a1vxk7e2c",
  "authorLoyaltyTier": "Member Silver",
  "isAnonymous": false,
  "isRepeatPurchase": true,
  "likeCount": 34,
  "status": 2,
  "region": "SG",
  "detailedRating": {
    "productQuality": 5,
    "sellerService": 5,
    "deliveryService": 5,
    "driverService": null
  },
  "variations": [
    {
      "name": "Colors",
      "options": ["White"],
      "modelId": 50598177670,
      "image": "https://down-sg.img.susercontent.com/file/cn-11134207-7ras8-m98i19fzx5zm92"
    }
  ],
  "images": [
    "https://down-sg.img.susercontent.com/file/sg-11134103-7s5qa-mq8bn0yztpft19"
  ],
  "videos": [
    {
      "id": "sg-11110103-7s4b1-mprqoakbz1wf8c",
      "url": "https://down-tx-sg.vod.susercontent.com/api/v4/11110103/mms/sg-11110103-7s4b1-mprqoakbz1wf8c.mp4",
      "coverUrl": "https://down-zl-sg.img.susercontent.com/sg-11110103-7s4b1-mprqoakbz1wf8c_cover",
      "durationMs": 18450
    }
  ],
  "shopReply": {
    "comment": "Thank you for your detailed feedback! We are glad you love the product.",
    "createdAt": "2026-05-15T02:18:00+00:00"
  },
  "followUp": null,
  "templateTags": ["Product Quality", "Packaging"],
  "overallFit": 0,
  "sizeInfoTags": [],
  "authorMeasurements": [],
  "scrapedAt": "2026-09-23T13:10:09+00:00"
}
```

#### Product Summary Record (`recordType: "summary"`)

```json
{
  "recordType": "summary",
  "total": 4201,
  "starBreakdown": [18, 4, 8, 54, 4117],
  "withComment": 966,
  "withImage": 603,
  "withMedia": 737,
  "localReviews": 4201,
  "overseaReviews": 0,
  "repeatPurchases": 0,
  "fitBreakdown": { "fit": 0, "large": 0, "small": 0 },
  "fitPercent": { "fit": null, "large": null, "small": null },
  "itemId": 25992970267,
  "shopId": 241308147,
  "region": "ID",
  "title": "Apple iPhone 16",
  "url": "https://shopee.co.id/product-i.241308147.25992970267",
  "ratingStar": 4.95,
  "historicalSold": 1540,
  "scrapedAt": "2026-09-23T13:10:09+00:00"
}
```

***

### Anti-Bot & WAF Considerations

Shopee uses a proprietary Server Gateway (SGW) protection layer that challenges API calls when client-side JavaScript telemetry headers (`af-ac-enc-dat`, `x-sap-sec`) are absent or when calling from datacenter IPs:

- **Apify Residential Proxies**: Set `proxyConfiguration: { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` with the target country code.
- **Dual-Tier Resilient Fallback**: The scraper automatically parses the product page SSR micro-frontend (`text/mfe-initial-data`) to extract core product details and rating metrics even if the live stream is challenged.

# Actor input Schema

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

Shopee product page URLs containing `-i.<shop>.<item>` or `/product/<shop>/<item>`. Market is auto-detected from each URL (ID, SG, MY, PH, TH, VN, BR).

## `maxReviewsPerProduct` (type: `integer`):

Maximum number of reviews to collect per product. Set to 0 to collect all available reviews.

## `starFilter` (type: `string`):

Collect only reviews with this star rating, or all.

## `contentFilter` (type: `string`):

Collect only reviews matching this content type, or all.

## `includeSummary` (type: `boolean`):

Writes an aggregated rating breakdown and product summary record.

## `requestDelayMs` (type: `integer`):

Delay in milliseconds between pagination requests to avoid rate limits.

## `proxyConfiguration` (type: `object`):

Residential proxy is recommended for high-volume review scraping across Shopee markets.

## `shopeeCookies` (type: `string`):

Optional raw Cookie header string or session cookies for authenticated requests.

## `extraHeaders` (type: `object`):

Optional key-value pairs for additional request headers.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://shopee.co.id/product-i.241308147.25992970267"
    }
  ],
  "maxReviewsPerProduct": 1000,
  "starFilter": "all",
  "contentFilter": "all",
  "includeSummary": true,
  "requestDelayMs": 350,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Shopee product review records including text, sub-ratings, buyer photos/videos, variant purchased, and seller replies.

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

Aggregated rating breakdown and performance metrics per product.

# 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": [
        {
            "url": "https://shopee.co.id/product-i.241308147.25992970267"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/shopee-product-reviews-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": [{ "url": "https://shopee.co.id/product-i.241308147.25992970267" }] }

# Run the Actor and wait for it to finish
run = client.actor("wyle/shopee-product-reviews-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": [
    {
      "url": "https://shopee.co.id/product-i.241308147.25992970267"
    }
  ]
}' |
apify call wyle/shopee-product-reviews-scraper --silent --output-dataset

```

## MCP server setup

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