# Taobao Scraper: Taobao & Tmall Products in USD (`lavidarossi.bv/taobao-tmall-product-scraper`) Actor

Taobao scraper for Taobao and Tmall products by keyword, category, shop or product link: title, price in CNY and USD, promo label, images, category, shop and ships-from city. Public data, no Taobao account needed.

- **URL**: https://apify.com/lavidarossi.bv/taobao-tmall-product-scraper.md
- **Developed by:** [Lavida Data](https://apify.com/lavidarossi.bv) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

Learn more: https://docs.apify.com/actors/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

## Taobao Scraper: Taobao & Tmall Products in USD

Taobao scraper for Taobao and Tmall products. Give keywords (Chinese or English), category IDs, shop IDs or Taobao catalogue links; the Actor returns one row per product with the full title, the price in CNY and in USD, the promo label, free shipping, the main image, the category and the shop. Turn on details to add the image gallery, the category path, the ships-from city, Tmall or Taobao, and the review count. Prices are converted with the European Central Bank reference rate of the day, and every row says which rate and date it used.

### What it does

- Keywords, category IDs, shop IDs and catalogue links in one run, as lists; duplicates are removed.
- Prices in CNY and USD on every row, with the exchange rate, its source and its date.
- Best sellers or cheapest first, and on shop pages also newest first: each sort order adds more products.
- Optional product details: image gallery, category path, ships-from city, Tmall or Taobao, review count and positive rating.
- No Taobao account, no cookies and no captcha solving: the Actor reads Taobao's public catalogue pages.

### Use cases

- Find the best-selling Taobao and Tmall products for a keyword and compare their USD prices with Amazon or your own shop.
- Watch the prices and promo labels of a Taobao shop every week.
- Build a product research sheet per Taobao category with images and links.
- Feed Taobao prices in USD into a sourcing or margin calculation.

### How to use it

1. Fill in the input (or keep the example).
2. Click Start.
3. Download the results from the Output tab, or connect them to your tools with the Apify API or integrations.

The prefilled input is a small test: it stops after 10 results, so the first run costs at most $0.04.

### Input

| Field | Type | Required | Default | Example | Description |
| --- | --- | --- | --- | --- | --- |
| `searchTerms` | array | no |  | \["蓝牙耳机"] | Keywords as you would type them on Taobao, in Chinese or English, for example 蓝牙耳机 or earbuds. Each keyword returns Taobao's top 20 products per sort order. Chinese keywords match more products. |
| `categoryIds` | array | no |  | \["56228007"] | Taobao category IDs, the number in www.taobao.com/list/category/<ID>.htm, for example 56228007 (headphones). Up to 20 products per category and sort order. |
| `shopIds` | array | no |  | \["503709453"] | Taobao shop IDs, the number in world.taobao.com/dianpu/<ID>.htm, for example 503709453. Up to 60 products per shop and sort order. |
| `startUrls` | array | no |  | \["https://www.taobao.com/list/category/56228007.htm"] | Links to Taobao catalogue pages: www.taobao.com/list/product/..., /list/category/<ID>.htm, /list/item/<code>.htm, or world.taobao.com/dianpu/<ID>.htm and /item/<code>.htm. Numeric item links (item.taobao.com/item.htm?id=..., detail.tmall.com) do not work: Taobao sends signed-out visitors to its 404 page. |
| `sortOrders` | array | no | \["sales-des"] | \["sales-des"] | One or more of: sales-des (best sellers), price-asc (cheapest first). Shop pages also take new-des (newest first). Each sort order adds up to 20 products per keyword or category (60 per shop); duplicates are removed. |
| `includeDetails` | boolean | no | false | false | Open each product page for the image gallery, the category path, the ships-from city, Tmall or Taobao, the review count and the positive rating. One extra request per product, charged as a product detail. |
| `proxyConfiguration` | object | no | {"useApifyProxy":true,"apifyProxyGroups":\["RESIDENTIAL"],"apifyProxyCountry":"US"} | {"useApifyProxy":true,"apifyProxyGroups":\["RESIDENTIAL"],... | Taobao serves these pages to visitors outside mainland China. Residential Apify Proxy in the US is the default; other proxies can get blocked. |
| `maxResults` | integer | no | 100 | 10 | The run stops after this many results. You pay per result. |

Example input:

```json
{
  "searchTerms": [
    "蓝牙耳机",
    "earbuds"
  ],
  "shopIds": [
    "503709453"
  ],
  "sortOrders": [
    "sales-des",
    "price-asc"
  ],
  "includeDetails": true,
  "maxResults": 100
}
```

### Output

Each result is one row in the dataset. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API.

| Field | Type | Description |
| --- | --- | --- |
| `itemId` | string | Taobao item ID (the id in item.taobao.com/item.htm?id=...) |
| `title` | string | Product title as Taobao shows it |
| `url` | string | Taobao product link; Taobao forwards Tmall items to detail.tmall.com |
| `catalogueUrl` | string | Public catalogue page of the product (www.taobao.com/list/item/...), readable without an account |
| `catalogueCode` | string | Code Taobao uses for the product in catalogue links; pass it back as a /list/item/<code>.htm link |
| `platform` | string | tmall or taobao. Null when details are off |
| `priceCny` | number | Current price in Chinese yuan, promo included |
| `originalPriceCny` | number | Price before the promo in Chinese yuan |
| `priceUsd` | number | priceCny converted to US dollars with fxRateCnyToUsd, rounded to cents |
| `originalPriceUsd` | number | originalPriceCny in US dollars |
| `promoLabel` | string | Promo label Taobao shows, for example 特价秒杀 (flash sale). Null when there is none |
| `freeShipping` | boolean | True when Taobao marks the product as free shipping |
| `imageUrl` | string | Main product image |
| `images` | array | All product images. Null when details are off |
| `categoryId` | string | Taobao category ID of the product |
| `rootCategoryId` | string | Top-level Taobao category ID |
| `categoryPath` | array | Category names from top to bottom. Null when details are off |
| `shipsFrom` | string | City or province the product ships from, for example 广东深圳. Null when details are off |
| `shopId` | string | Public Taobao shop ID |
| `shopName` | string | Public shop name |
| `reviewCountLabel` | string | Review count band Taobao shows, for example 5000+ or 7万+ (7万 = 70,000). Null when details are off or Taobao shows none |
| `positiveRatingPct` | number | Share of positive ratings Taobao shows. Null when details are off or Taobao shows none |
| `position` | integer | Position on the Taobao page it was found on (1 = first) |
| `matchingProducts` | integer | Products Taobao counts for the keyword, category or shop |
| `sourceType` | string | keyword, category, shop or item |
| `sourceInput` | string | The keyword, category ID, shop ID or link the row was found with |
| `sortOrder` | string | Sort order of the page the row was found on. Null for item links |
| `fxRateCnyToUsd` | number | US dollars per Chinese yuan used for the USD prices |
| `fxSource` | string | Where the exchange rate comes from |
| `fxDate` | string | Date of the exchange rate (YYYY-MM-DD) |
| `detailFetched` | boolean | True when the product page was read for this row (charged as a product detail) |
| `scrapedAt` | string | When the row was fetched (ISO 8601) |

#### Example output

| Title | Price (USD) | Price (CNY) | Promo | Free shipping | Shop |
| --- | --- | --- | --- | --- | --- |
| 爱国者蓝牙耳机半入耳式2026新款降噪高音质无线运动超长续航游戏 | 17.72 | 118 |  | false | 腔调会员精选旗舰店 |

Example result:

```json
{
  "itemId": "1079352038299",
  "title": "爱国者蓝牙耳机半入耳式2026新款降噪高音质无线运动超长续航游戏",
  "url": "https://item.taobao.com/item.htm?id=1079352038299",
  "catalogueUrl": "https://www.taobao.com/list/item/RjRZL1NqR2pVTkxHOTFNTUIvZU8wZz09.htm",
  "catalogueCode": "RjRZL1NqR2pVTkxHOTFNTUIvZU8wZz09",
  "platform": "tmall",
  "priceCny": 118,
  "originalPriceCny": null,
  "priceUsd": 17.72,
  "originalPriceUsd": null,
  "promoLabel": null,
  "freeShipping": false,
  "imageUrl": "https://img.alicdn.com/imgextra/i3/2215824413675/O1CN01E5GhXKqZBrE1chua_!!4611686018427384811-0-item_pic.jpg",
  "images": [
    "https://img.alicdn.com/imgextra/i3/2215824413675/O1CN01E5GhXKqZBrE1chua_!!4611686018427384811-0-item_pic.jpg"
  ],
  "categoryId": "50005050",
  "rootCategoryId": "50011972",
  "categoryPath": [
    "影音视听",
    "耳机耳放",
    "耳机"
  ],
  "shipsFrom": "上海",
  "shopId": "503709453",
  "shopName": "腔调会员精选旗舰店",
  "reviewCountLabel": "5000+",
  "positiveRatingPct": null,
  "position": 1,
  "matchingProducts": 38716,
  "sourceType": "keyword",
  "sourceInput": "蓝牙耳机",
  "sortOrder": "sales-des",
  "fxRateCnyToUsd": 0.150145,
  "fxSource": "European Central Bank euro reference rates (cross rate USD/CNY)",
  "fxDate": "2026-11-26",
  "detailFetched": true,
  "scrapedAt": "2026-11-27T12:00:00.000Z"
}
```

### Pricing

This Actor uses pay-per-event pricing. You pay for results, not for compute time or proxies.

| Event | When it is charged | Price | Per 1,000 |
| --- | --- | --- | --- |
| Product | One product written to the dataset | $0.0025 | $2.50 |
| Product detail | One product page read for details (only with Include product details on, or for product links) | $0.0015 | $1.50 |
| Actor start | Charged by Apify once per run, plus once per GB of memory above 1 GB | $0.00005 | $0.05 |

Example: 1,000 results cost $2.50 in total for one run.
Set "Maximum cost per run" in the run options to cap spending; the Actor stops cleanly when the cap is reached.

### Use it from an AI agent or the API

**MCP (Claude, Cursor, ChatGPT and other MCP clients):** add the Apify MCP server with this Actor as a tool: `https://mcp.apify.com?tools=lavidarossi.bv/taobao-tmall-product-scraper`. The agent sees it as the tool `lavidarossi-dot-bv--taobao-tmall-product-scraper` with the input fields above. Without the parameter, agents can still find it with the `search-actors` tool.

**API:** run it and get the rows in one call (replace `<APIFY_TOKEN>` with your token):

```bash
curl -X POST "https://api.apify.com/v2/acts/lavidarossi.bv~taobao-tmall-product-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"searchTerms":["蓝牙耳机"],"sortOrders":["sales-des"],"includeDetails":false,"proxyConfiguration":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"],"apifyProxyCountry":"US"},"maxResults":10}'
```

### FAQ

**Where does the data come from?**

From Taobao's public catalogue pages (www.taobao.com/list/... and world.taobao.com), which Taobao serves to visitors outside mainland China without a login. The Actor does not log in, sends no account cookies and does not solve captchas.

**How are prices converted to USD?**

With the euro reference rates the European Central Bank publishes every working day: USD per CNY is the USD rate divided by the CNY rate. Each row shows the rate (fxRateCnyToUsd), its source and its date. USD prices are rounded to cents.

**What is the run success rate?**

This is a new Actor. Apify shows its 30-day run success rate on the Store page, counted from all public runs, and we copy that figure here after the first week. In our own test on 2026-11-27, 7 of 7 catalogue page requests (keyword, category, shop and product pages) from outside China returned products.

**Why at most 20 products per keyword?**

Taobao shows signed-out visitors the first page of each keyword, category or shop: 20 products, or 60 for a shop. Add sort orders (best sellers, cheapest first) or more keywords to get more products; the Actor removes duplicates.

**Can I use item.taobao.com or detail.tmall.com links?**

No. Since November 2026 Taobao sends signed-out visitors who open a product by its numeric ID to its 404 page. Use the catalogue link instead (www.taobao.com/list/item/<code>.htm); every row has it in catalogueUrl.

**Do I get SKU variants, stock or monthly sales?**

No. Those come from Taobao's app interface, which answers signed-out requests with a bot check. The Actor returns only what the public pages show.

**What happens when a request fails?**

Each request is retried up to 4 times. If a request still fails, the run ends with status Failed and the RUN_SUMMARY record in the key-value store lists the failed URLs. Results saved before that stay in the dataset.

**Can I run it on a schedule?**

Yes. Create a task with your input and add a schedule in Apify Console. Each run is charged per result.

### Limits

- Up to 20 products per keyword or category and sort order, and up to 60 per shop and sort order (Taobao's page for signed-out visitors).
- No SKU variants, stock, monthly sales or review texts.
- Numeric item IDs and item.taobao.com or detail.tmall.com links are not accepted.
- Taobao shortens some titles on product pages; rows from keyword, category and shop pages keep the full title.
- Shop pages on world.taobao.com show titles in traditional Chinese.
- Prices are the prices Taobao shows; coupons and promos can change the price at checkout.
- Taobao can change these pages at any time. The run then fails with a clear error and we fix it.

### Related Actors

- [1688 Image Search](https://apify.com/lavidarossi.bv/1688-image-search-margin): 1688 suppliers for a product photo, with landed cost and margin.
- [TikTok Shop Scraper](https://apify.com/lavidarossi.bv/tiktok-shop-scraper): TikTok Shop products, prices and units sold.
- [Keyword Suggestions Scraper](https://apify.com/lavidarossi.bv/keyword-suggestions-scraper): autocomplete keyword ideas from Google, YouTube, Bing and Amazon.

### Data

- The Actor returns product data only. The only seller fields are the public shop ID and shop name: no owner names, phone numbers, addresses, reviewer names or review texts.
- Product images belong to the sellers. Use them for research in line with Taobao's terms.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords as you would type them on Taobao, in Chinese or English, for example 蓝牙耳机 or earbuds. Each keyword returns Taobao's top 20 products per sort order. Chinese keywords match more products.

## `categoryIds` (type: `array`):

Taobao category IDs, the number in www.taobao.com/list/category/<ID>.htm, for example 56228007 (headphones). Up to 20 products per category and sort order.

## `shopIds` (type: `array`):

Taobao shop IDs, the number in world.taobao.com/dianpu/<ID>.htm, for example 503709453. Up to 60 products per shop and sort order.

## `startUrls` (type: `array`):

Links to Taobao catalogue pages: www.taobao.com/list/product/..., /list/category/<ID>.htm, /list/item/<code>.htm, or world.taobao.com/dianpu/<ID>.htm and /item/<code>.htm. Numeric item links (item.taobao.com/item.htm?id=..., detail.tmall.com) do not work: Taobao sends signed-out visitors to its 404 page.

## `sortOrders` (type: `array`):

One or more of: sales-des (best sellers), price-asc (cheapest first). Shop pages also take new-des (newest first). Each sort order adds up to 20 products per keyword or category (60 per shop); duplicates are removed.

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

Open each product page for the image gallery, the category path, the ships-from city, Tmall or Taobao, the review count and the positive rating. One extra request per product, charged as a product detail.

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

Taobao serves these pages to visitors outside mainland China. Residential Apify Proxy in the US is the default; other proxies can get blocked.

## `maxResults` (type: `integer`):

The run stops after this many results. You pay per result.

## Actor input object example

```json
{
  "searchTerms": [
    "蓝牙耳机"
  ],
  "categoryIds": [
    "56228007"
  ],
  "shopIds": [
    "503709453"
  ],
  "startUrls": [
    "https://www.taobao.com/list/category/56228007.htm"
  ],
  "sortOrders": [
    "sales-des"
  ],
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "maxResults": 10
}
```

# Actor output Schema

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

One dataset item per result, with every field described in the dataset schema.

## `runSummary` (type: `string`):

Counts of results, finished, failed and skipped requests, and whether the charge limit was reached.

# 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 = {
    "searchTerms": [
        "蓝牙耳机"
    ],
    "sortOrders": [
        "sales-des"
    ],
    "includeDetails": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    },
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lavidarossi.bv/taobao-tmall-product-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 = {
    "searchTerms": ["蓝牙耳机"],
    "sortOrders": ["sales-des"],
    "includeDetails": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lavidarossi.bv/taobao-tmall-product-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 '{
  "searchTerms": [
    "蓝牙耳机"
  ],
  "sortOrders": [
    "sales-des"
  ],
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "maxResults": 10
}' |
apify call lavidarossi.bv/taobao-tmall-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lavidarossi.bv/taobao-tmall-product-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/iiWfOvx3hydtdacyC/builds/HiDZ4M0koSVfVRD37/openapi.json
