# Shopee Product Detail Scraper (`axery/shopee-product-detail-scraper`) Actor

Scrape full product details from Shopee by Shop ID + Item ID or product URL. Rich data: price variants, stock, images, attributes & seller info.

- **URL**: https://apify.com/axery/shopee-product-detail-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Stats:** 3 total users, 2 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product detail results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Detail Scraper

Extract **rich, structured product specifications, SKU variants, stock, pricing ranges, image galleries, and seller metadata** from Shopee across 11 countries (Indonesia, Singapore, Malaysia, Thailand, Philippines, Vietnam, Brazil, Taiwan, Mexico, Colombia, Chile).

Accepts either a **Shopee Product URL** or **Shop ID + Item ID**.

***

### ✨ Features

- 🔍 **Deep Product Extraction**: Title, description, brand, brand ID, availability, total stock, and category hierarchy.
- 💵 **Price Analysis**: Base price, minimum variant price (`price_min`), maximum variant price (`price_max`), and original pre-discount price.
- 🎨 **All SKU Variants & Models**: Sub-models (e.g. Size, Color, Capacity) with individual price and stock status.
- 🖼️ **High-Resolution Image Galleries**: Direct URLs to every uploaded product photo and variant thumbnail.
- 📊 **Rating & Sales Data**: 5-star rating breakdown, total reviews count, and historical sold units.
- 🌍 **11 Regional Domains**: `id`, `sg`, `my`, `th`, `ph`, `vn`, `br`, `tw`, `mx`, `co`, `cl`.

***

### 📥 Input Parameters

| Field | Type | Required | Default | Description |
|---|---|:---:|:---:|---|
| `url` | `string` | Optional\* | — | Full Shopee product URL (e.g. `https://shopee.co.id/product/30203584/11089699432`). |
| `shopId` | `integer` | Optional\* | — | Seller's numeric shop ID from the product URL. |
| `itemId` | `integer` | Optional\* | — | Product's numeric item ID from the product URL. |
| `country` | `string` | No | `"id"` | Shopee country domain (`id`, `sg`, `my`, `th`, `ph`, etc.). Auto-detected if URL is provided. |
| `proxyConfiguration` | `object` | No | `{"useApifyProxy": false}` | Optional Apify proxy settings. |

*\*Provide either `url` OR `shopId` + `itemId`.*

***

### 📤 Output Structure

```json
{
  "shop_id": 30203584,
  "item_id": 11089699432,
  "title": "Erigo T-Shirt Basic Cotton Combed Oversize Black",
  "url": "https://shopee.co.id/Erigo-T-Shirt-Basic-i.30203584.11089699432",
  "currency": "IDR",
  "description": "Erigo T-shirt Oversize terbuat dari bahan 100% cotton combed 24s...",
  "brand": "Erigo",
  "brand_id": 1052,
  "price": 85000,
  "price_min": 75000,
  "price_max": 95000,
  "original_price": 150000,
  "availability": "InStock",
  "stock": 420,
  "rating_star": 4.88,
  "total_ratings": 1250,
  "historical_sold": 10500,
  "images": [
    "https://down-id.img.susercontent.com/file/id-11134207-xxx"
  ],
  "models": [
    { "model_id": 101, "name": "Size M", "price": 85000, "has_stock": true },
    { "model_id": 102, "name": "Size L", "price": 85000, "has_stock": true }
  ],
  "attributes": [
    { "name": "Bahan", "value": "Katun Combed 24s" },
    { "name": "Motif", "value": "Polos" }
  ],
  "categories": [
    { "id": 100017, "name": "Pakaian Pria" },
    { "id": 100222, "name": "Kaos" }
  ],
  "is_mall": true
}
```

***

### 💻 Integration Examples

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

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run_input = {
    "url": "https://shopee.co.id/Erigo-T-Shirt-Basic-i.30203584.11089699432"
}

run = client.actor("axery/shopee-product-detail-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['title']}: {item['currency']} {item['price']:,} - {item['stock']} in stock")
```

# Actor input Schema

## `url` (type: `string`):

Full Shopee product URL (e.g. 'https://shopee.co.id/Laptop-Lenovo-Thinkpad-i.196846900.11089699432'). Alternative to shopId + itemId.

## `shopId` (type: `integer`):

Seller's numeric shop ID from the product URL.

## `itemId` (type: `integer`):

Product's numeric item ID from the product URL.

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

Target regional Shopee marketplace.

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

Optional proxy settings.

## Actor input object example

```json
{
  "country": "id",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `product` (type: `string`):

Full product data including description, variants, attributes, images, stock, and seller information.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/shopee-product-detail-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("axery/shopee-product-detail-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 '{}' |
apify call axery/shopee-product-detail-scraper --silent --output-dataset

```

## MCP server setup

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