# Shopee Product Detail (`gio21/shopee-product-detail`) Actor

Give it Shopee product URLs, get full product detail back: name, description, price, variants/SKUs, full image gallery, seller info, reviews, ratings. Supports Brazil, Indonesia, Thailand, Malaysia, Singapore, Philippines, Vietnam, Mexico.

- **URL**: https://apify.com/gio21/shopee-product-detail.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** E-commerce, Developer tools, AI
- **Stats:** 15 total users, 11 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $5.00 / 1,000 product detail scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Shopee Product Detail - Scrape Products by URL

Give it Shopee product URLs, get back the full product detail page (PDP) data for each one: name, description, price, variants/SKUs, full image gallery, seller info, ratings, reviews. Supports Brazil, Indonesia, Thailand, Malaysia, Singapore, Philippines, Vietnam and Mexico.

No login, no cookies, no setup. Works out of the box on a paid Apify plan.

### Why a dedicated PDP actor?

The companion [Shopee Scraper](https://apify.com/gio21/shopee-scraper) is built for **discovery** (keyword / category / shop searches that return many products with light card-level fields). This actor is built for **detail** (you already know which products you want; you need the rich PDP fields: description, variants, full image gallery, seller profile, reviews).

If you paste a product URL into the discovery actor, it falls back to a keyword search and returns related items. This actor does what you actually want with a product URL: one URL in, one product detail record out.

### ⚠️ Free vs. paid Apify plans

This actor relies on a premium unblocking backend that the actor author pays for. **Free Apify accounts cannot pull live Shopee data.**

- **Free plan:** returns a clearly-labelled **MOCK sample** (every record has `_mock: true` and a `_notice` field) so you can inspect the exact output shape before committing.
- **Paid plan:** real, live Shopee data.

Upgrade at <https://apify.com/pricing> and re-run.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | Array (required) | List of Shopee product URLs. Accepts **both** formats. |
| `country` | String | `BR`, `SG`, `MY`, `TH`, `ID`, `MX`, `PH`, `VN`. Auto-detected from URLs. |
| `includeReviews` | Boolean | When ON, also fetches up to 6 most-recent reviews per product. Default `false`. |
| `debug` | Boolean | Verbose logs. |

#### Supported URL formats

Both of these point at the same product and both work:

````

https://shopee.com.br/-i.1337417367.23493715512        ← canonical
https://shopee.com.br/product/1337417367/23493715512   ← newer / app-share format
https://shopee.com.br/any-slug-here-i.1337417367.23493715512   ← slug variant

````

### Output

One record per URL:

```json
{
  "itemId": 23493715512,
  "shopId": 1337417367,
  "name": "Sample Product Name",
  "description": "Full product description as listed on Shopee...",
  "brand": "BrandName",
  "categoryPath": ["Clothing", "Men", "Shoes"],
  "attributes": [
    { "name": "Material", "value": "Cotton" },
    { "name": "Color",    "value": "Black"  }
  ],
  "price": 79.90,
  "priceMin": null,
  "priceMax": null,
  "originalPrice": 209.90,
  "discountPercent": 62,
  "isOnSale": true,
  "currency": "BRL",
  "stock": 124,
  "rating": 4.87,
  "ratingCounts": [3, 5, 12, 88, 412],
  "reviewCount": 520,
  "historicalSold": 18430,
  "favorites": 9120,
  "shopName": "Official Store BR",
  "shopRating": 4.92,
  "shopFollowerCount": 184000,
  "shopResponseRate": 0.98,
  "shopResponseTime": "within hours",
  "shopLocation": "São Paulo",
  "modelsCount": 4,
  "models": [
    { "name": "Black / M",  "price": 79.90, "stock": 40, "imageUrl": "https://cf.shopee.com.br/file/..." },
    { "name": "Black / L",  "price": 79.90, "stock": 35, "imageUrl": "https://cf.shopee.com.br/file/..." },
    { "name": "White / M",  "price": 79.90, "stock": 25, "imageUrl": "https://cf.shopee.com.br/file/..." },
    { "name": "White / L",  "price": 79.90, "stock": 24, "imageUrl": "https://cf.shopee.com.br/file/..." }
  ],
  "imagesCount": 8,
  "images": ["https://cf.shopee.com.br/file/...", "..."],
  "videoUrl": "https://cvf.shopee.com.br/file/...",
  "recentReviews": [
    { "rating": 5, "author": "a***a", "date": "2026-04-15", "comment": "Adorei!", "images": [] }
  ],
  "url": "https://shopee.com.br/-i.1337417367.23493715512"
}
````

On a **free plan**, every record additionally carries `_mock: true` and an `_notice` upgrade message.

#### Field notes

- `price`: current sale price.
- `originalPrice`: listed price before discount. `null` when not on sale.
- `discountPercent`: integer percent off as reported by Shopee, with a computed fallback. `null` when not on sale.
- `isOnSale`: boolean. `true` only when `originalPrice > price`.
- `priceMin` / `priceMax`: only set when the listing has a price range across variants; otherwise `null`.
- `stock`: total available stock across all models when the API exposes it.
- `models[]`: each variant/SKU with its own price, stock and (when available) image.
- `images[]`: full gallery, not just the thumbnail. Usually 4–10 images.
- `videoUrl`: first promotional video URL when the listing has one.
- `recentReviews`: only populated when `includeReviews=true`. Up to 6 most-recent reviews.
- `historicalSold`: total all-time sold count when Shopee exposes it (typically an integer, sometimes redacted to `null` for datacenter IPs).
- `shopRating`, `shopFollowerCount`, `shopResponseRate`, `shopResponseTime`: seller profile signals.

### Pricing

This actor is billed **per dataset item returned**. One URL processed successfully = one billed record. URLs that fail to scrape (404, removed listing, captcha) emit an `error` record and are **not** billed as a product.

### How fast?

Each product takes roughly 8–15 seconds (one PDP navigation + payload capture). 100 URLs ≈ 15–20 minutes. Reviews add ~1 second per product when `includeReviews=true`.

### Companion actor

Need to **find** products by keyword, category or shop instead of scraping a known URL? Use [Shopee Scraper](https://apify.com/gio21/shopee-scraper).

### Limitations

- Shopee may rate-limit aggressive runs. The actor retries the backend connection up to 3 times before failing.
- Some seller fields (`shopResponseRate`, `shopResponseTime`) are `null` when Shopee doesn't expose them for that shop.
- `historicalSold` may be `null` for datacenter traffic. This is inherent to Shopee redaction, not a bug.

### Support

If you hit an issue, open an issue on the Apify Store. Include the input URL, the run ID and the error message.

If this actor helped you, please leave a review on the Apify Store. 🙏

# Actor input Schema

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

List of Shopee product URLs. Accepts BOTH formats: the canonical 'https://shopee.com.br/-i.SHOPID.ITEMID' and the newer 'https://shopee.com.br/product/SHOPID/ITEMID'. Each URL returns ONE product record with full PDP data (description, variants, images, seller, reviews).

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

Country code for Shopee domain (auto-detected from URLs when present).

## `includeReviews` (type: `boolean`):

When ON, also fetches up to 6 most-recent customer reviews per product (rating, comment text, author name, date, photos). Adds one extra API call per product.

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

Enable verbose logging.

## Actor input object example

```json
{
  "productUrls": [
    "https://shopee.com.br/product/1337417367/23493715512"
  ],
  "country": "BR",
  "includeReviews": false,
  "debug": false
}
```

# Actor output Schema

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

Full PDP record per URL: name, description, price, originalPrice, discountPercent, isOnSale, currency, stock, rating, reviewCount, historicalSold, shopName, shopId, shopRating, shopFollowerCount, shopResponseRate, brand, categoryPath, attributes, models (variants/SKUs), images, videoUrl, recentReviews, itemId, url. 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 = {
    "productUrls": [
        "https://shopee.com.br/product/1337417367/23493715512"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/shopee-product-detail").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.com.br/product/1337417367/23493715512"] }

# Run the Actor and wait for it to finish
run = client.actor("gio21/shopee-product-detail").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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.com.br/product/1337417367/23493715512"
  ]
}' |
apify call gio21/shopee-product-detail --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gio21/shopee-product-detail",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopee Product Detail",
        "description": "Give it Shopee product URLs, get full product detail back: name, description, price, variants/SKUs, full image gallery, seller info, reviews, ratings. Supports Brazil, Indonesia, Thailand, Malaysia, Singapore, Philippines, Vietnam, Mexico.",
        "version": "0.0",
        "x-build-id": "KWxud5xdleckMZ66p"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gio21~shopee-product-detail/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gio21-shopee-product-detail",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gio21~shopee-product-detail/runs": {
            "post": {
                "operationId": "runs-sync-gio21-shopee-product-detail",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gio21~shopee-product-detail/run-sync": {
            "post": {
                "operationId": "run-sync-gio21-shopee-product-detail",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "productUrls"
                ],
                "properties": {
                    "productUrls": {
                        "title": "Product URLs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "List of Shopee product URLs. Accepts BOTH formats: the canonical 'https://shopee.com.br/-i.SHOPID.ITEMID' and the newer 'https://shopee.com.br/product/SHOPID/ITEMID'. Each URL returns ONE product record with full PDP data (description, variants, images, seller, reviews).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "country": {
                        "title": "Country",
                        "enum": [
                            "BR",
                            "ID",
                            "TH",
                            "MY",
                            "SG",
                            "PH",
                            "VN",
                            "MX"
                        ],
                        "type": "string",
                        "description": "Country code for Shopee domain (auto-detected from URLs when present).",
                        "default": "BR"
                    },
                    "includeReviews": {
                        "title": "Include recent reviews",
                        "type": "boolean",
                        "description": "When ON, also fetches up to 6 most-recent customer reviews per product (rating, comment text, author name, date, photos). Adds one extra API call per product.",
                        "default": false
                    },
                    "debug": {
                        "title": "Debug logs",
                        "type": "boolean",
                        "description": "Enable verbose logging.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
