# Taobao Scraper: Thousands of Products per Keyword (`alexmorain/taobao-scraper`) Actor

Scrape Taobao products by keyword, far beyond the 20 results per page: thousands of unique products on one keyword (6,942 on 蓝牙耳机 in a test). Prices in CNY, HKD and TWD, shop, images, review tags, optional product page. No login, no browser.

- **URL**: https://apify.com/alexmorain/taobao-scraper.md
- **Developed by:** [Alexis Morain](https://apify.com/alexmorain) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

### What does Taobao Scraper do?

Taobao Scraper exports **the products of a [Taobao](https://www.taobao.com) keyword search**, not only the 20 that one result page shows. Give it a keyword such as `蓝牙耳机` (bluetooth earphones) and you get one row per product: title, price in yuan (plus the Hong Kong and Taiwan dollar prices Taobao shows), shop, images, category, free shipping flag. If you ask for it, each row also carries the product page details: promotion price, where the item ships from, Taobao or Tmall, the shop's credit level and scores, and the first reviews.

It works as a **Taobao API** for the public search pages: it reads the pages that Taobao shows to any visitor, over plain HTTP. No Taobao login, no cookies, no browser.

It does not return sales counts, the SKU list or the full product description: those need a logged-in session, and this actor does not use one. See the limits below.

#### One Taobao page shows 20 products. This actor reads thousands.

The public Taobao search page returns **20 products and ignores the page number**: page 2 is the same 20 products. A scraper that reads one page per keyword gets 20 rows, however many products Taobao announces (41,000 for `蓝牙耳机`).

In **deep coverage**, the actor rereads the keyword under every sort order, then under every property filter that Taobao offers for it (brand, type, material, connection...), then under pairs of filters. Each combination shows a different 20, and the actor removes the products that appear twice. It reads the combinations in parallel and stops when the announced total is reached, when nothing new shows up, or when your limit is reached.

Measured on 21 November 2026 on the Apify platform, keyword `蓝牙耳机` (Taobao announces about 41,600 products):

| What reads the keyword | Unique products |
|---|---|
| One result page (what a basic scraper gets) | 20 |
| The six sort orders only | 83 |
| Sorts and every single filter | 1,854 |
| **Deep coverage, read to the end** | **6,942** |

Two earlier test versions, stopped by a request limit, returned 8,008 and 4,933 products on the same keyword the same day. The count changes from run to run because Taobao's own results move. Expect several thousand products for a broad keyword, a few hundred for a narrow one. All 4,933 titles of one run were checked: every one matches the keyword, from 2,166 different shops.

A deep read of a broad keyword takes about 6 minutes with the default 8 sessions.

### Why use Taobao Scraper?

- **Sourcing and dropshipping.** Find every supplier listing for a product type, with the yuan price and the shop, in one export instead of 20 rows at a time.
- **Price and market research.** Count products and read price ranges by keyword, brand filter or category. A median price rests on thousands of products, not on a page of 20.
- **Catalog and category mapping.** Each row carries Taobao's category ids and the shop id, so you can group a market by category and by shop.
- **Monitoring.** Run it on a schedule in **New products only** mode and pay only for the products that were not in an earlier run.
- **Apify platform.** Scheduling, API access, webhooks, integrations with Make, Zapier, n8n and Google Sheets, run history and monitoring come with it.

### What data can Taobao Scraper extract?

| Field | Type | What it is |
|---|---|---|
| `id` | number | Taobao item id, unique, use it to deduplicate |
| `title` | string | Full product title, in Chinese |
| `price` / `discountPrice` | number | List price and price after the shop discount, in yuan |
| `currency` | string | Always `CNY` for `price` and `discountPrice` |
| `priceHKD` / `priceTWD` | number | The discounted price in Hong Kong and Taiwan dollars, as Taobao converts it |
| `freeShipping` | boolean | Free shipping shown on the listing |
| `shopId` / `shopName` | number / string | The shop |
| `imageUrl` / `imageUrls` | string / array | Product images |
| `categoryId` / `rootCategoryId` | number | Taobao leaf and top-level category |
| `url` | string | Link to the item on item.taobao.com |
| `seoUrl` | string | Public product page on www.taobao.com, opens without login |
| `searchKeyword` | string | The keyword that found the product |
| `scrapedAt` | string | UTC time of the scrape |

With **Add product page details**, these fields are filled too: `originalPrice`, `promotionPrice`, `hasPriceRange`, `location` (where the item ships from), `sellerType` (`tmall` or `taobao`), `shopItemCount`, `shopCreditLevel`, `shopOpenedAt`, `descriptionScore`, `serviceScore`, `shippingScore`, `reviewsHaveMore` and `reviews` (the first reviews, each with score, date, text and the option bought). Without details they are `null`, and `detailsFetched` is `false`.

### How to scrape Taobao

1. Open the Actor and go to the **Input** tab.
2. Type one or more **Keywords**, one per line. Chinese keywords return the most products.
3. Pick the **Coverage**: Deep for thousands of products per keyword, Quick for the first 20.
4. Set **Maximum products per keyword**, or `0` for no limit.
5. Press **Start**. The log shows, for each keyword, the total Taobao announces and the number of unique products read.
6. Open the **Output** tab and export the dataset as JSON, CSV, Excel or HTML.

### How much will it cost to scrape Taobao?

The Actor is pay per event: a small charge when a run starts, then a charge per product delivered, and a higher one for a product delivered with its page details. The price per 1,000 products drops with your Apify plan. Products you already received in an earlier run of **New products only** are not charged again, and a failed product page is charged as a plain product. You can set a maximum charge per run in the run options, and the actor stops cleanly when it is reached.

### Input

See the **Input** tab for the full list. The main fields:

| Field | What it does |
|---|---|
| `keywords` | One search per keyword. Keywords with `/ \ ? # %` are refused |
| `coverage` | `quick` (first page, 20 products) or `deep` (every sort and filter) |
| `maxItemsPerKeyword` | Stops each keyword at this number of delivered products. `0` = no limit. Default 100 |
| `includeDetails` | Opens each product page for the extra fields |
| `proxyCountry` | `SG` (default), `HK`, `JP`, `MY` or `KR`. Only these five let Taobao apply sorts and filters |
| `newOnly`, `registryKey` | Monitoring: deliver only products not delivered before |
| `webhookUrl` | Receives a JSON summary at the end of the run |
| `maxConcurrency` | Parallel sessions, 1 to 12. Default 8 |

Example input:

```json
{
  "keywords": ["蓝牙耳机", "手机壳"],
  "coverage": "deep",
  "maxItemsPerKeyword": 2000,
  "includeDetails": false,
  "proxyCountry": "SG"
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. One row looks like this (shortened):

```json
{
  "id": 1078907312106,
  "url": "https://item.taobao.com/item.htm?id=1078907312106",
  "title": "【新款18勃艮第红色】图拉斯雪雾适用iPhone18ProMax手机壳苹果17磁吸外壳16pm高级磨砂15Pro保护套14P全包13",
  "price": 116,
  "discountPrice": 116,
  "currency": "CNY",
  "priceHKD": 137.7,
  "priceTWD": 579.48,
  "freeShipping": false,
  "shopId": 72104903,
  "shopName": "图拉斯数码旗舰店",
  "categoryId": 150704,
  "rootCategoryId": 50008090,
  "searchKeyword": "手机壳",
  "detailsFetched": true,
  "location": "广东东莞",
  "sellerType": "tmall",
  "shopItemCount": 263,
  "shopCreditLevel": 20,
  "descriptionScore": 4.7,
  "serviceScore": 4.8,
  "shippingScore": 4.8,
  "reviews": [{"score": 5, "date": "2026.11.03 10:24", "text": "与手机颜色浑然一体，轻便磨砂感，磁吸强", "variant": "适用手机型号:iPhone 18 Pro;颜色分类:【雪雾 | 酒红色 | 磁吸款】"}]
}
```

#### The run report

Besides the dataset, the run stores an `OUTPUT` record in its key-value store. For each keyword it lists the total Taobao announced, the unique products read, the products delivered, the requests made, why the keyword stopped, and the cumulative count after each step (sorts, filters, filter pairs). The announced total is Taobao's own count: it is always larger than what the filters can reach.

#### Run it from your code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("alexmorain/taobao-scraper").call(run_input={
    "keywords": ["蓝牙耳机"], "coverage": "deep", "maxItemsPerKeyword": 3000,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["id"], item["title"], item["price"])
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('alexmorain/taobao-scraper').call({
    keywords: ['蓝牙耳机'], coverage: 'deep', maxItemsPerKeyword: 3000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~taobao-scraper/runs?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["蓝牙耳机"], "coverage": "deep", "maxItemsPerKeyword": 3000}'
```

### Tips

- **Keep the limit low while you test.** Use `maxItemsPerKeyword` of 100: the run ends in about 15 seconds.
- **Use Quick for a price check.** One page, 20 products, a few seconds.
- **Add details only when you need them.** Every product page is one more request, and the details event costs more than a plain product.
- **Run several narrow keywords** rather than one very broad keyword: `蓝牙耳机 入耳式` reaches a larger share of its results than `耳机`.

#### Monitoring with New products only

Switch on **New products only** and schedule the run. Each run reads the keywords in full, then delivers only the products that no earlier run of the same keywords delivered. Give the runs a **Monitoring name** to keep the list when you change the keywords.

#### Webhook

Set a **Webhook URL** and the actor posts a JSON summary at the end of the run: run id, dataset id, status, number of keywords, number of new products and whether the charge limit was reached. The URL is stored as a secret and never appears in the log.

### FAQ

#### How do I get more than 20 products per keyword on Taobao?

Use **Deep** coverage. Taobao's public search page ignores the page number, so the actor reads the keyword under each sort order and each property filter and merges the results.

#### Why is the number of products lower than the total Taobao announces?

Taobao announces about 41,600 products for `蓝牙耳机`, but its page only ever shows 20 per sort and filter combination. The actor reaches several thousand through combinations; it cannot reach products that no combination puts in the top 20. The run report shows both numbers.

#### Why do two runs of the same keyword return different counts?

Taobao's results move, and some requests are refused and replayed from another address. On the same day, three deep runs of `蓝牙耳机` returned 6,942, 8,008 and 4,933 products (the last two from test versions stopped by a request limit).

#### Which prices are these?

`price` and `discountPrice` are in yuan (CNY), whatever the proxy country. `priceHKD` and `priceTWD` are Taobao's own conversions of the discounted price.

#### Does it return sales counts, SKUs or the full description?

No. Taobao shows these only to logged-in visitors or in its app interface, and this actor does not log in. With details on, you get the product page's price fields, shop data and the first reviews.

#### Do keywords have to be in Chinese?

Chinese keywords return the most products. English keywords work only when Taobao has a matching page: in a test, `iphone case` returned products (Taobao announced 13,495) and `bluetooth earphones` returned none. A keyword with no result ends with zero rows, without error.

#### Why only Singapore, Hong Kong, Japan, Malaysia and South Korea?

Only addresses in these five countries let Taobao apply sort orders and filters. Addresses in mainland China, Taiwan and Australia get a defence page, and datacenter or US addresses always get the same 20 products.

#### What happens if my run is migrated to another server?

Apify can move a run to another server. The actor then restarts, skips the products it already delivered and does not charge them twice.

#### What does a failed product page do?

With details on, a product whose page is gone or unreachable is delivered with `detailsFetched` set to `false` and charged as a plain product.

#### Is it legal to scrape Taobao?

The actor reads public search pages that anyone can open without an account. Taobao's terms of use restrict automated access to its site, so check them against your use. Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

Reviews carry a masked user name only. Shop names are business names.

#### What if Taobao changes?

The actor reads the data embedded in Taobao's public pages, which can change without notice. If a run starts failing or returning less, open the Issues tab and report it with the keyword you ran.

#### Support

Questions, a field you miss, a keyword that comes back short: use the **Issues** tab of this Actor. The **API** tab has the endpoints to start and read runs from your own code.

### Guide and use cases

Use cases, the output fields, pricing and common questions are on the [Taobao Scraper page](https://alexis.morain.fr/en/scrapers/taobao-scraper/) of my site. The [E-commerce family page](https://alexis.morain.fr/en/scrapers/families/ecommerce/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

## `keywords` (type: `array`):

One search per keyword, such as <code>蓝牙耳机</code> (bluetooth earphones) or <code>手机壳</code> (phone case). Chinese keywords return the most products. Keywords with / \ ? # or % are refused.

## `coverage` (type: `string`):

<b>Quick</b> reads one page: 20 products, a few seconds. <b>Deep</b> rereads the keyword under 6 sort orders, then every property filter (brand, type, material...) and pairs of filters, until the total announced by Taobao is reached, nothing new shows up, or the limit below is hit.

## `maxItemsPerKeyword` (type: `integer`):

Stops each keyword once this many products are delivered. <code>0</code> = no limit (a broad keyword can reach several thousand products). A product found under two keywords is delivered once.

## `includeDetails` (type: `boolean`):

Opens each product page and adds the original and promotion price, the item location, the seller type (Taobao or Tmall), the shop's item count, credit level, opening date and description / service / shipping scores, and the first reviews with their option. Billed as a separate, higher event. Not included: sales count, SKU list, full description.

## `proxyCountry` (type: `string`):

Country of the residential IP. Only these five let Taobao apply sort orders and filters, which deep coverage needs. China, Taiwan and Australia are blocked, the US and datacenter IPs only ever return the same 20 products.

## `newOnly` (type: `boolean`):

Delivers, and charges, only the products an earlier run of the same keywords did not deliver. The keywords are still read in full every time, so a new product is found wherever it ranks. Schedule the run to watch a category.

## `registryKey` (type: `string`):

Optional. Runs that share this name share their list of delivered products, even if the keywords change. Empty = the registry follows the keywords.

## `webhookUrl` (type: `string`):

Optional. Receives a JSON summary (run id, dataset id, status, number of new products) when the run ends. Slack, Zapier, Make and n8n URLs work.

## `maxConcurrency` (type: `integer`):

Residential sessions reading in parallel, each on its own IP. More sessions finish a deep read sooner.

## Actor input object example

```json
{
  "keywords": [
    "蓝牙耳机"
  ],
  "coverage": "deep",
  "maxItemsPerKeyword": 100,
  "includeDetails": false,
  "proxyCountry": "SG",
  "newOnly": false,
  "maxConcurrency": 8
}
```

# Actor output Schema

## `products` (type: `string`):

One row per product

## `dataset` (type: `string`):

Every product with all fields

## `report` (type: `string`):

Per keyword: total announced by Taobao, unique products retrieved, products delivered, requests made and why the keyword stopped

# 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 = {
    "keywords": [
        "蓝牙耳机"
    ],
    "maxItemsPerKeyword": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/taobao-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 = {
    "keywords": ["蓝牙耳机"],
    "maxItemsPerKeyword": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/taobao-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 '{
  "keywords": [
    "蓝牙耳机"
  ],
  "maxItemsPerKeyword": 100
}' |
apify call alexmorain/taobao-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexmorain/taobao-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/mReZ4ezAn5TIxtJgY/builds/qdwALf6hgSUk1sKzF/openapi.json
