# Shopee Product Details, SKU Variants & Seller Scraper (`wyle/shopee-product-details-scraper`) Actor

Extract Shopee product details, SKU-level variant stock & options, specs, media, and Seller/Mall intelligence across 8 Shopee markets (ID, SG, MY, PH, TH, VN, TW, BR).

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

## Pricing

from $0.50 / 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 Details, SKU Variants & Seller Intelligence Scraper

Extract complete product details, **per-SKU variant stock inventory (`models`)**, variation option images (`tierVariations`), product specifications (`attributes`), high-resolution media galleries, MP4 product videos, and **Official Shopee Mall seller intelligence** across **8 markets** (`ID`, `SG`, `MY`, `PH`, `TH`, `VN`, `TW`, `BR`).

Built with a **100% HTTP-only Micro-Frontend SSR (`mfe-initial-data`) + Public Seller API architecture**, this Actor bypasses Shopee's `90309999` anti-bot blocks without needing a headless browser.

***

### ✨ Key Features

- **8 Global Shopee Markets Supported**:
  - Indonesia (`shopee.co.id`), Singapore (`shopee.sg`), Malaysia (`shopee.com.my`), Philippines (`shopee.ph`), Thailand (`shopee.co.th`), Vietnam (`shopee.vn`), Taiwan (`shopee.tw`), and Brazil (`shopee.com.br`).
- **Complete SKU Variant & Inventory Matrix (`models` & `tierVariations`)**:
  - Extracts every SKU combination (e.g., `"White, 128GB"`, `"Ultramarine, 256GB"`), `modelId`, **exact available stock count (`stock`)**, total aggregated product stock (`totalStock`), pre-order status, delivery lead time, and variation option images.
  - Supports **`flattenVariants`** mode to export 1 row per SKU for instant Excel/CSV inventory analysis.
- **Technical Attributes & Full Product Descriptions**:
  - Captures structured specification tables (`Merek`, `Kapasitas`, `Masa Garansi`, `BPOM`, etc.), category breadcrumbs, service guarantees (`15 Hari Pengembalian`, `100% Original`), and full multi-paragraph descriptions.
- **Seller & Official Shopee Mall Brand Intelligence**:
  - Automatically cross-references the product's `shopId` with Shopee's Official Brand Registry and Shop Categories API to enrich `shopName` (e.g., `iBox`), `username` (`iboxofficial`), `shopUrl`, `logoUrl`, store join date (`shopCreatedAt`), and all active store product collections (`collections`).
- **High-Res Image Galleries & Direct MP4 Video Streams**:
  - Extracts all full-resolution product images, variation thumbnails, and direct `.mp4` product video URLs.

***

### 📥 Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `productUrls` | `array` | `["https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267"]` | Shopee product URLs from any of the 8 supported markets. |
| `flattenVariants` | `boolean` | `false` | Output 1 dataset row per SKU variant (`modelId`) instead of 1 row per product. |
| `includeShopCollections` | `boolean` | `true` | Enrich seller profile with active store collections and Official Shopee Mall brand registry data. |
| `shopeeCookies` | `string` | `""` | Optional Shopee session cookies. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": false}` | Optional Apify Proxy configuration. |

# Actor input Schema

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

List of Shopee product page URLs across any supported market (ID, SG, MY, PH, TH, VN, TW, BR). Supports formats like 'https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267' or 'https://shopee.co.id/product/241308147/25992970267'.

## `flattenVariants` (type: `boolean`):

When enabled, outputs one dataset row per individual SKU variant (modelId) with its specific stock, variation options, and image. When disabled (default), outputs one full product record containing the nested 'variants' array.

## `includeShopCollections` (type: `boolean`):

Enriches each product with the seller's active store collections/categories and resolves Official Shopee Mall brand profile details (username, brand name, logo, join date).

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

Optional Shopee session cookies for authenticated account-level fields. Leave empty for standard public SSR + API extraction.

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

Optional Apify Proxy configuration.

## Actor input object example

```json
{
  "productUrls": [
    "https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267",
    "https://shopee.co.id/Apple-iPhone-15-128GB-i.241308147.22483576845"
  ],
  "flattenVariants": false,
  "includeShopCollections": true,
  "shopeeCookies": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "productUrls": [
        "https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267",
        "https://shopee.co.id/Apple-iPhone-15-128GB-i.241308147.22483576845"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/shopee-product-details-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 = { "productUrls": [
        "https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267",
        "https://shopee.co.id/Apple-iPhone-15-128GB-i.241308147.22483576845",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("wyle/shopee-product-details-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 '{
  "productUrls": [
    "https://shopee.co.id/Apple-iPhone-16-i.241308147.25992970267",
    "https://shopee.co.id/Apple-iPhone-15-128GB-i.241308147.22483576845"
  ]
}' |
apify call wyle/shopee-product-details-scraper --silent --output-dataset

```

## MCP server setup

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