# Shopee Shop Scraper (`xtracto/shopee-shop-scraper`) Actor

Extract product listings from a Shopee shop by username, shop ID, or shop URL. Optionally enrich each product with full detail data (variants, stock, images, attributes, and seller information) across multiple countries. Fast, lightweight, and no browser or account required

- **URL**: https://apify.com/xtracto/shopee-shop-scraper.md
- **Developed by:** [Xtractoo](https://apify.com/xtracto) (community)
- **Categories:** E-commerce, Lead generation, Other
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.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/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 Shop Scraper

Extract **product listings from a Shopee shop** by username, shop ID, or shop URL. Optionally enrich each product with full detail data (variants, stock, images, attributes, seller info).

---

### Why This Actor?

Use this to:
- **Audit a competitor's full catalog** — get every listed product from a specific seller
- **Monitor a shop's pricing** — track price changes across a shop's entire inventory
- **Collect product data with seller context** — includes shop rating, follower count, response rate
- **Build a dataset of a shop's products** — with optional full detail enrichment per product

---

### Supported Countries

| Code | Domain |
|------|--------|
| `id` | shopee.co.id (Indonesia) |
| `sg` | shopee.sg (Singapore) |
| `my` | shopee.com.my (Malaysia) |
| `th` | shopee.co.th (Thailand) |
| `ph` | shopee.ph (Philippines) |
| `vn` | shopee.vn (Vietnam) |
| `br` | shopee.com.br (Brazil) |
| `tw` | shopee.tw (Taiwan) |
| `mx` | shopee.com.mx (Mexico) |
| `co` | shopee.com.co (Colombia) |
| `cl` | shopee.cl (Chile) |

---

### Where the request comes from matters

Listing a shop's products works for **every country** regardless of where
your request comes from — no proxy is needed for the default mode.

What changes per location is `fetchDetail: true`: to receive the full
detail for each product (description, brand, all variants, attributes,
image gallery), the request must originate inside the target country. On
Apify Cloud this is handled automatically for `id`/`sg`/`my`/`th`/`ph` via
residential proxy.

#### What you get per country

| Country | Shop listing (default) | `fetchDetail: true` on Apify Cloud | `fetchDetail: true` running locally |
|---------|:----------------------:|:----------------------------------:|:------------------------------------:|
| `id` | ✅ Product cards | ✅ Full detail | ✅ Full detail |
| `sg` | ✅ | ✅ Full detail | ⚠️ Light only |
| `my` | ✅ | ✅ Full detail | ⚠️ Light only |
| `th` | ✅ | ✅ Full detail | ⚠️ Light only |
| `ph` | ✅ | ✅ Full detail | ⚠️ Light only |
| `vn` | ✅ | ⚠️ Light only | ⚠️ Light only |
| `br` | ✅ | ⚠️ Light only | ⚠️ Light only |
| `tw` | ✅ | ⚠️ Light only | ⚠️ Light only |
| `mx` | ✅ | ⚠️ Light only | ⚠️ Light only |
| `co` | ✅ | ⚠️ Light only | ⚠️ Light only |
| `cl` | ✅ | ⚠️ Light only | ⚠️ Light only |

**Full detail** = title, price range, description, brand, all variant
names, all attributes, all images, full categories, breadcrumb, seller
info.

**Light only** = title, price, primary image, rating, sold count, seller
info.

> **Recommendation:** Default mode (without `fetchDetail`) works
> everywhere. For `fetchDetail: true` on `sg`/`my`/`th`/`ph`, **run this
> actor on Apify Cloud**.

---

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | select | No (default: `id`) | Shopee regional domain |
| `shop` | string | **Yes** | Shop identifier — username, numeric ID, or full shop URL |
| `maxProducts` | integer | No (default: `40`) | Maximum products to return |
| `fetchDetail` | boolean | No (default: `false`) | If `true`, each product is enriched with full detail data |
| `delay` | number | No (default: `1.0`) | Delay between HTTP requests (seconds) |

#### How to Identify a Shop

| Format | Example |
|--------|---------|
| Username | `rasyidjaya_computer` |
| Numeric shop ID | `196846900` |
| Full shop URL | `https://shopee.co.id/rasyidjaya_computer` |

---

### Output Modes

#### Default — ProductCard (fast)

Returns lightweight product cards: name, price, discount, rating, sold count, location, image.

```json
{
  "shop_id": 196846900,
  "item_id": 11089699432,
  "name": "Laptop Lenovo Thinkpad X1 Carbon 6th Intel Core i5",
  "url": "https://shopee.co.id/Laptop-Lenovo-i.196846900.11089699432",
  "image_url": "https://down-id.img.susercontent.com/file/id-11134207-xxx",
  "price": 3570000,
  "original_price": null,
  "discount_pct": null,
  "rating": 4.87,
  "rating_count": 55,
  "sold_count": null,
  "location": "KOTA BANDUNG",
  "is_mall": false,
  "currency": "IDR"
}
````

#### fetchDetail: true — ProductDetail (rich)

Each product is additionally fetched for full data:

```json
{
  "shop_id": 196846900,
  "item_id": 11089699432,
  "title": "Laptop Lenovo Thinkpad X1 Carbon 6th Intel Core i5",
  "currency": "IDR",
  "description": "Laptop bekas kualitas premium...",
  "brand": "Lenovo",
  "price": 3570000.0,
  "price_min": 3200000.0,
  "price_max": 8370000.0,
  "availability": "InStock",
  "stock": 31,
  "rating_star": 4.87,
  "total_ratings": 55,
  "images": ["https://down-id.img.susercontent.com/file/..."],
  "models": [
    { "model_id": 227787022248, "name": "i5 Gen8 16GB/256GB", "has_stock": true }
  ],
  "attributes": [
    { "name": "Ukuran Layar", "value": "14 inci" }
  ],
  "shop": {
    "name": "RASYIDJAYA COMPUTER",
    "rating_star": 4.84,
    "item_count": 39,
    "follower_count": 2251,
    "response_rate": 98
  }
}
```

***

### Sample Input

#### Basic shop crawl

```json
{
  "country": "id",
  "shop": "rasyidjaya_computer",
  "maxProducts": 40
}
```

#### With full detail enrichment

```json
{
  "country": "id",
  "shop": "rasyidjaya_computer",
  "maxProducts": 20,
  "fetchDetail": true
}
```

#### By shop ID

```json
{
  "country": "sg",
  "shop": "196846900",
  "maxProducts": 40
}
```

#### By shop URL

```json
{
  "shop": "https://shopee.co.id/rasyidjaya_computer",
  "maxProducts": 40
}
```

***

### Speed & Cost

| `fetchDetail` | Products | Approx. time | Requests |
|---------------|----------|--------------|----------|
| `false` | 40 | ~40–60 sec | ~2 |
| `true` | 10 | ~2–3 min | ~22 |
| `true` | 40 | ~6–10 min | ~82 |

> With `fetchDetail: true`, each product requires two extra requests.
> Residential proxy latency on Apify Cloud adds ~5–10 seconds per product.
>
> **Recommendation:** For a full catalog audit, run with
> `fetchDetail: false` first to get the complete product list, then
> selectively enrich specific products using the **Shopee Product Detail**
> actor.

***

### Known Limitations

- **About 40 products per shop page.** The actor pages through more
  results to reach `maxProducts`. Shopee eventually starts returning a
  generic "you may also like" block once the real catalog ends, typically
  after roughly 150–200 unique items per shop.
- **Per-variant prices and stock are hidden by Shopee.** With
  `fetchDetail: true`, every variant entry will have `price: null` and
  `stock: null`. Use the overall `price_min` / `price_max` and the
  total `stock` field instead.
- **`fetchDetail: true` returns less data outside `id`/`sg`/`my`/`th`/`ph`.**
  For `vn`, `br`, `tw`, `mx`, `co`, `cl` you receive a lighter set: title,
  price, primary image, rating, sold count, seller info. Description,
  brand, variants, attributes, breadcrumb, and image gallery are not
  available for these countries.
- **Running locally from a mismatched IP** (e.g. from Indonesia for
  `country=sg`) also returns the lighter data set for `fetchDetail: true`.
  Deploy to Apify Cloud for full detail.
- **"Sold count" is missing for most products.** Shopee hides this number;
  the actor recovers it on a best-effort basis (~30–50% of products).

# Actor input Schema

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

Shopee regional site. Listing a shop's products works for ALL 11 countries. fetchDetail=true returns full product information (description, brand, all variants, attributes, image gallery) only for id/sg/my/th/ph when running on Apify Cloud (residential proxy is used automatically); for other countries you receive a lighter set (title, price, primary image, rating, sold count, seller info).

## `shop` (type: `string`):

How to identify the shop:

- Username: rasyidjaya\_computer
- Numeric shop ID: 196846900
- Full URL: https://shopee.co.id/rasyidjaya\_computer

## `maxProducts` (type: `integer`):

Maximum number of products to retrieve from this shop.

## `fetchDetail` (type: `boolean`):

If enabled, each product is enriched with full detail: description, brand, all variants, attributes, image gallery, seller info, and more. Slower — recommended for small batches (≤20 products). Detail richness varies by country (see the country field for details).

## `delay` (type: `number`):

Delay between HTTP requests.

## Actor input object example

```json
{
  "country": "id",
  "shop": "rasyidjaya_computer",
  "maxProducts": 40,
  "fetchDetail": false,
  "delay": 1
}
```

# 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 = {
    "country": "id",
    "shop": "rasyidjaya_computer",
    "maxProducts": 40,
    "fetchDetail": false,
    "delay": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/shopee-shop-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 = {
    "country": "id",
    "shop": "rasyidjaya_computer",
    "maxProducts": 40,
    "fetchDetail": False,
    "delay": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/shopee-shop-scraper").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 '{
  "country": "id",
  "shop": "rasyidjaya_computer",
  "maxProducts": 40,
  "fetchDetail": false,
  "delay": 1
}' |
apify call xtracto/shopee-shop-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopee Shop Scraper",
        "description": "Extract product listings from a Shopee shop by username, shop ID, or shop URL. Optionally enrich each product with full detail data (variants, stock, images, attributes, and seller information) across multiple countries. Fast, lightweight, and no browser or account required",
        "version": "0.1",
        "x-build-id": "dIpFEcMaheFlnso35"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~shopee-shop-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-shopee-shop-scraper",
                "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/xtracto~shopee-shop-scraper/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-shopee-shop-scraper",
                "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/xtracto~shopee-shop-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-shopee-shop-scraper",
                "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": [
                    "shop"
                ],
                "properties": {
                    "country": {
                        "title": "Country",
                        "enum": [
                            "id",
                            "sg",
                            "my",
                            "th",
                            "ph",
                            "vn",
                            "br",
                            "tw",
                            "mx",
                            "co",
                            "cl"
                        ],
                        "type": "string",
                        "description": "Shopee regional site. Listing a shop's products works for ALL 11 countries. fetchDetail=true returns full product information (description, brand, all variants, attributes, image gallery) only for id/sg/my/th/ph when running on Apify Cloud (residential proxy is used automatically); for other countries you receive a lighter set (title, price, primary image, rating, sold count, seller info).",
                        "default": "id"
                    },
                    "shop": {
                        "title": "Shop (username / ID / URL)",
                        "type": "string",
                        "description": "How to identify the shop:\n- Username: rasyidjaya_computer\n- Numeric shop ID: 196846900\n- Full URL: https://shopee.co.id/rasyidjaya_computer"
                    },
                    "maxProducts": {
                        "title": "Max products",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of products to retrieve from this shop.",
                        "default": 40
                    },
                    "fetchDetail": {
                        "title": "Fetch full product detail",
                        "type": "boolean",
                        "description": "If enabled, each product is enriched with full detail: description, brand, all variants, attributes, image gallery, seller info, and more. Slower — recommended for small batches (≤20 products). Detail richness varies by country (see the country field for details).",
                        "default": false
                    },
                    "delay": {
                        "title": "Request delay (seconds)",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "number",
                        "description": "Delay between HTTP requests.",
                        "default": 1
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
