# Shopee Search & Category Scraper - Cheapest (`axery/shopee-search`) Actor

Search Shopee products by keyword, category URL, or any Shopee listing URL. Optionally enrich each result with full product detail (price variants, stock, images, attributes, seller info) across multiple countries. Fast, lightweight, and no browser or account required.

- **URL**: https://apify.com/axery/shopee-search.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Categories:** E-commerce, Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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.

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 Search & Category Scraper - Cheapest

Search Shopee products by keyword, category URL, or any Shopee listing URL across 11 countries. Returns lightweight product cards by default, or fully enriched product detail when `fetchDetail: true`. Fast, lightweight, and no browser or account required.

***

### Features

- **Multi-country support**: Indonesia (`id`), Singapore (`sg`), Malaysia (`my`), Thailand (`th`), Philippines (`ph`), Vietnam (`vn`), Brazil (`br`), Taiwan (`tw`), Mexico (`mx`), Colombia (`co`), and Chile (`cl`).
- **3 Search modes**:
  - `keyword`: Search by any product keyword (e.g., `laptop gaming`, `sepatu lari`).
  - `category`: Browse category pages (e.g., `/Laptop-cat.11044364.11044440`).
  - `url`: Paste any Shopee search or category URL, country is automatically detected!
- **Rich Sort Options**: Relevancy, Best Sales, Newest, Price: Low to High, Price: High to Low.
- **Price Filters**: Filter results by `minPrice` and `maxPrice` in local currency.
- **Optional Full Detail Enrichment (`fetchDetail: true`)**: Get full product description, SKU variants, stock, images gallery, and brand attributes.
- **Cost Effective**: Pay-per-event pricing ($0.009 / result) with platform usage charged to the user.

***

### Supported Countries

| Code | Country | Domain | Currency |
| :--- | :--- | :--- | :--- |
| `id` | Indonesia | shopee.co.id | IDR |
| `sg` | Singapore | shopee.sg | SGD |
| `my` | Malaysia | shopee.com.my | MYR |
| `th` | Thailand | shopee.co.th | THB |
| `ph` | Philippines | shopee.ph | PHP |
| `vn` | Vietnam | shopee.vn | VND |
| `br` | Brazil | shopee.com.br | BRL |
| `tw` | Taiwan | shopee.tw | TWD |
| `mx` | Mexico | shopee.com.mx | MXN |
| `co` | Colombia | shopee.com.co | COP |
| `cl` | Chile | shopee.cl | CLP |

***

### Input Example

#### 1. Keyword Search

```json
{
  "country": "id",
  "mode": "keyword",
  "keyword": "laptop gaming",
  "sort": "sales",
  "maxProducts": 50,
  "minPrice": 5000000,
  "maxPrice": 25000000,
  "fetchDetail": false
}
```

#### 2. URL Search

```json
{
  "mode": "url",
  "url": "https://shopee.co.id/search?keyword=sepatu%20pria",
  "maxProducts": 20
}
```

***

### Output Example

```json
{
  "shop_id": 196846900,
  "item_id": 11089699432,
  "name": "ASUS TUF Gaming A15 FA506NF - Ryzen 5 7535HS RTX 2050 8GB 512GB SSD",
  "url": "https://shopee.co.id/ASUS-TUF-Gaming-A15-i.196846900.11089699432",
  "image_url": "https://down-id.img.susercontent.com/file/id-11134207-7r98o-lst1",
  "price": 10499000.0,
  "original_price": 11999000.0,
  "discount_pct": 13,
  "rating": 4.9,
  "rating_count": 1420,
  "sold_count": 3500,
  "location": "Jakarta Pusat",
  "is_mall": true,
  "currency": "IDR"
}
```

***

### Proxy & Anti-Bot Protection

Shopee aggressively protects its pages against datacenter IPs. The Actor comes configured with **Apify Residential Proxy** support enabled by default when running on Apify Cloud, ensuring reliable extraction without blocking or CAPTCHAs.

# Actor input Schema

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

Shopee regional site. Notes: (1) mode=category is NOT available for Colombia (co) and Chile (cl) — these regions do not expose category pages publicly; the actor will stop early with a clear message. (2) fetchDetail=true returns full product data (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.

## `mode` (type: `string`):

How to search for products.

## `keyword` (type: `string`):

Search keyword. Required for mode=keyword. Example: 'laptop gaming'

## `category` (type: `string`):

Category slug or full URL. Required for mode=category. Example: /Laptop-cat.11044364.11044440

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

Any Shopee search/category URL. Required for mode=url. Country is auto-detected. Example: https://shopee.co.id/search?keyword=laptop

## `sort` (type: `string`):

Sort order for search results.

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

Maximum number of products to return.

## `minPrice` (type: `integer`):

Minimum price in local currency. Only for mode=keyword.

## `maxPrice` (type: `integer`):

Maximum price in local currency. Only for mode=keyword.

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

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

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

Delay between HTTP requests.

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

Apify Residential Proxy is strongly recommended for seamless extraction.

## Actor input object example

```json
{
  "country": "id",
  "mode": "keyword",
  "keyword": "laptop gaming",
  "category": "/Laptop-cat.11044364.11044440",
  "url": "https://shopee.co.id/search?keyword=laptop",
  "sort": "relevancy",
  "maxProducts": 40,
  "fetchDetail": false,
  "delay": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset containing scraped Shopee products.

# 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",
    "mode": "keyword",
    "keyword": "laptop gaming",
    "category": "/Laptop-cat.11044364.11044440",
    "url": "https://shopee.co.id/search?keyword=laptop",
    "sort": "relevancy",
    "maxProducts": 40,
    "fetchDetail": false,
    "delay": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/shopee-search").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",
    "mode": "keyword",
    "keyword": "laptop gaming",
    "category": "/Laptop-cat.11044364.11044440",
    "url": "https://shopee.co.id/search?keyword=laptop",
    "sort": "relevancy",
    "maxProducts": 40,
    "fetchDetail": False,
    "delay": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("axery/shopee-search").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 '{
  "country": "id",
  "mode": "keyword",
  "keyword": "laptop gaming",
  "category": "/Laptop-cat.11044364.11044440",
  "url": "https://shopee.co.id/search?keyword=laptop",
  "sort": "relevancy",
  "maxProducts": 40,
  "fetchDetail": false,
  "delay": 1
}' |
apify call axery/shopee-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axery/shopee-search"
        }
    }
}
```

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/rjwtXmN1xWoodGfec/builds/K3qPR450MP3w9ElL0/openapi.json
