# Taobao & Tmall Scraper - Products, Prices, Sellers & Reviews (`scrapesage/taobao-scraper`) Actor

Scrape Taobao and Tmall by keyword, category, product ID or shop. Prices in 13 currencies, seller DSR scores and credit level, buyer-rating breakdown, real reviews and full category paths. Shop mode builds seller lead lists. No login, no browser - pay per result.

- **URL**: https://apify.com/scrapesage/taobao-scraper.md
- **Developed by:** [Scrape Sage](https://apify.com/scrapesage) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 16 total users, 11 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 product 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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Taobao & Tmall Scraper - Products, Prices, Sellers & Reviews

Scrape **Taobao** and **Tmall** - China's largest consumer marketplaces - by keyword, category, product ID or shop. Get prices in **13 currencies**, full seller profiles with **DSR service scores**, buyer-rating breakdowns, real customer reviews and complete category paths.

**No login. No cookies. No browser.** Pure HTTP against Taobao's own server-rendered catalogue, so runs are fast, cheap and don't depend on a headless browser that can break overnight.

***

### Why this actor exists

Taobao is the hardest large marketplace on the web to scrape. Its consumer pages sit behind Alibaba's `x5sec` / baxia wall: `s.taobao.com/search` serves a client-only shell with zero product data, and `item.taobao.com`, `detail.tmall.com` and `list.tmall.com` answer with a punish interstitial. That is why the leading Taobao actor on Apify runs at roughly **two-thirds success** - buyers are already paying for something that fails one run in three.

This actor doesn't fight that wall. Taobao publishes the **same catalogue, fully server-rendered, for search engines** on `world.taobao.com` and its country hosts, and its own `robots.txt` explicitly allows crawlers on `/product/`, `/category/`, `/item/` and `/dianpu/`. Reading that surface measured **100% success across 24 consecutive requests** on four different lanes.

***

### What you get

#### Products (`search`, `category`, `item` modes)

| Group | Fields |
|---|---|
| **Identity** | `itemId`, `title`, `url`, `taobaoUrl`, `platform` (taobao / tmall), `itemIdStr` |
| **Pricing** | `price` + `currency` in your region's money, `priceCny`, `priceHkd`, `priceTwd`, `originalPrice`, `promotionPrice`, `discountPrice`, `discountType`, `hasRangePrice`, `priceNote` |
| **Seller** | `shopId`, `shopName`, `sellerId`, `sellerType` + `sellerTypeLabel` (individual vs business), `sellerCreditLevel`, `shopOpenedAt`, `shopItemCount`, `shopNewItemCount`, `shopUrl`, `shopIcon` |
| **Seller quality (DSR)** | `dsrDescription`, `dsrService`, `dsrDelivery` - Taobao's three published 1-5 seller scores |
| **Ratings & reviews** | `reviews[]` (rating, text, date, variant bought, reviewer), `reviewTags[]` (aggregated sentiment tags with counts), and — **on Taobao listings only, see the note below** — `ratingGoodPercent`, `ratingBadPercent`, `ratingNeutralPercent`, `ratingGoodCount`, `ratingBadCount`, `reviewCount` |
| **Classification** | `categoryId`, `rootCategoryId`, `categoryName`, `categoryPath`, `breadcrumbs[]`, `descriptionMatchScore` |
| **Logistics** | `location` (ships-from), `freeShipping`, `areaLimit`, `paymentMethods[]` |
| **Media** | `mainImage`, `images[]`, `imageCount` |

> ### ⚠️ Read this before you buy: the rating breakdown is Taobao-only
>
> **Tmall listings do not publish the buyer-rating breakdown.** Taobao does. This is Tmall's own
> decision about what it exposes publicly - not a gap in this scraper - and no tool can return those
> numbers for a Tmall listing without a logged-in session.
>
> Measured on a real 30-product run: the `ratingGoodPercent` / `ratingBadPercent` /
> `ratingNeutralPercent` / `ratingGoodCount` / `ratingBadCount` / `reviewCount` fields came back on
> **12 of 12 Taobao listings and 0 of 10 Tmall listings.** Roughly **a third to a half** of a mixed
> keyword search is typically Tmall, and more in brand-heavy categories, so expect those six fields
> to be empty on a meaningful share of rows.
>
> **What you still get on every Tmall row** (same run, 10 of 10): a sample customer `review` with its
> star rating, all three seller **DSR scores** (`dsrDescription`, `dsrService`, `dsrDelivery`) and
> `descriptionMatchScore`. So you can still rank and filter Tmall sellers on quality - just not on a
> per-item positive-review percentage.
>
> Use the `platform` field (`taobao` / `tmall`) to tell the two apart in your own filters.

#### Shops (`shop` mode)

`shopId`, `shopName`, `sellerId`, `logo`, all three DSR scores plus `dsrAverage`, the shop's listed products with prices, `categoryPath`, and a 0-100 `leadScore` - a ready-made seller-prospecting list.

***

### Modes

| Mode | Give it | Use it for |
|---|---|---|
| **Search by keyword** | `keywords` | Product research, price benchmarking, finding suppliers |
| **Browse a category** | `categoryIds` | Full-category sweeps; sub-categories are followed automatically |
| **Specific products** | `itemUrls` (IDs or any Taobao/Tmall URL) | Price monitoring on a watchlist |
| **Shops / seller leads** | `shopIds` | Building a seller list for sourcing or outreach |

Paste any Taobao, Tmall or `world.taobao.com` URL into **Product IDs / URLs** and it is routed to the right mode automatically.

***

### Regions and currency

Pick the storefront you sell or buy in and prices come back in that currency, with the yuan price always alongside in `priceCny`:

**Singapore (SGD)** · Global/HK (CNY) · Malaysia (MYR) · Thailand (THB) · Vietnam (VND) · Philippines (PHP) · Cambodia (KHR) · Macau (MOP) · Australia (AUD) · New Zealand (NZD) · South Korea (KRW) · Japan (JPY) · Canada (CAD)

***

### Example input

```json
{
  "mode": "search",
  "keywords": ["手机", "connector"],
  "region": "sg",
  "maxItems": 200,
  "scrapeDetails": true,
  "deepScan": true
}
```

Chinese keywords return the most results - Taobao is a Chinese-language catalogue - but English terms work too.

### Example output (one product)

```json
{
  "type": "product",
  "itemId": "1010692564493",
  "title": "新款老人机2026年5G全网通4G老年人手机大字大声超长待机备用学生",
  "url": "https://world.taobao.com/item/1010692564493.htm",
  "platform": "taobao",
  "price": 35.8,
  "currency": "SGD",
  "priceCny": 185,
  "priceHkd": 216.47,
  "discountType": "百億補貼",
  "shopName": "十三手機通訊",
  "sellerTypeLabel": "Individual seller",
  "sellerCreditLevel": 18,
  "dsrDescription": 4.8,
  "dsrService": 4.9,
  "dsrDelivery": 4.9,
  "ratingGoodPercent": 99,
  "reviews": [
    { "rating": 5, "content": "寶貝收到，快遞迅速，品質不錯，下次再買。", "date": "2026.02.07 08:53", "sku": "顏色:黑色", "user": "***" }
  ],
  "categoryPath": "首頁 > 手機通訊 > 手機 > 老人手機",
  "location": "廣東深圳",
  "freeShipping": true
}
```

***

### How deep can it go?

Taobao's crawlable surface serves **one page of ~40 results per query** - there is no deep pagination on it. Rather than pretend otherwise, **Deep scan** re-queries each keyword across sort orders and price bands to assemble a much larger unique set: measured **279 unique products from a single keyword** versus 40 for one page. Turn on **Follow related keywords** to widen further via the related searches Taobao links from each page, or use **category** mode, which walks the sub-category tree.

### Honest limits

- **Tmall listings do not publish the buyer-rating breakdown** - measured 12/12 on Taobao rows vs 0/10 on Tmall rows. Full explanation and what you still get on Tmall rows is in the callout above. Filter on `platform` to separate them.
- **One primary image and one sample review per listing.** The full gallery and full review pagination are only behind Taobao's browser-only API. `imageCount` reflects what is genuinely there.
- **Review counts are approximate** where Taobao itself publishes them rounded ("10,000+").
- Use the **RESIDENTIAL** proxy. Taobao rate-limits single IPs hard; datacenter measured 33-67% on the keyword lane against 100% on residential. Every retry automatically rotates to a new IP.

***

### Use with AI assistants (MCP)

This actor works as a tool for AI assistants and agents through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) - ask Claude, ChatGPT or your own agent to pull Taobao pricing, seller quality or category data and it can call this scraper directly.

### Agent-ready: autonomous payments (x402 & Skyfire)

This actor is **agent-ready** — AI agents can discover it, run it, and **pay for it autonomously**, with no Apify account and no human in the loop. It uses [pay-per-event](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event) pricing and [limited permissions](https://docs.apify.com/platform/actors/development/permissions), so it qualifies for Apify's agentic-payment standards:

- **[x402](https://docs.apify.com/platform/integrations/x402)** — an open, HTTP-native payment protocol. Agents pay per run in USDC on the Base network directly through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) — no account, no API key.
- **[Skyfire](https://docs.apify.com/platform/integrations/skyfire)** — agent-to-service payments for fully autonomous AI-agent workflows.

Building an AI agent, MCP tool, or autonomous data pipeline? This scraper is ready to plug in and pay as it goes.

***

### Pricing

Pay per result, no monthly platform fee and no start fee:

| Event | Price |
|---|---|
| Product scraped (listing fields) | **$0.003** |
| Product with full detail (seller profile, ratings, reviews, breadcrumbs, location) | **$0.006** |
| Shop / seller lead | **$0.008** |

A product is charged **either** as a listing **or** as a full-detail record - never both.

### Legal

Scrapes only publicly available pages that Taobao itself serves to search-engine crawlers, on the exact paths its `robots.txt` allows them. No login, no personal data behind an account wall. You are responsible for how you use the data, including compliance with applicable terms and data-protection law.

# Actor input Schema

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

Search = find products by keyword. Category = scrape a Taobao category id. Item = scrape specific product IDs or URLs. Shop = scrape sellers/shops by shop id (returns shop records, not products).

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

Search terms. Chinese terms return the most results (Taobao is a Chinese-language catalogue), but English terms work too. Used in Search mode.

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

Taobao category ids (e.g. 50064014) or full category URLs like https://world.taobao.com/category/50064014.htm. Used in Category mode. Sub-categories found on the page are followed automatically.

## `itemUrls` (type: `array`):

Product ids (e.g. 730344766230) or any Taobao/Tmall product URL - item.taobao.com, detail.tmall.com and world.taobao.com links are all accepted. Used in Item mode.

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

Taobao shop ids (e.g. 188555483). Every scraped product carries its shopId, so you can feed those back here to build a seller list. Used in Shop mode.

## `region` (type: `string`):

Which Taobao overseas storefront to read. This sets the currency prices are quoted in and the localised listing selection. The yuan price is always returned as well, in priceCny.

## `maxItems` (type: `integer`):

Stop after this many records. Keep it modest for a first run - every record is billed per result.

## `scrapeDetails` (type: `boolean`):

Open each product page to add the seller profile (DSR scores, credit level, shop age, catalogue size), the rating breakdown, customer reviews, the full category path and the item location. Turn off for a faster, cheaper listing-only scrape.

## `deepScan` (type: `boolean`):

Taobao's crawlable surface serves one page of ~40 results per query. Deep scan re-queries each keyword across sort orders and price bands to reach several hundred unique products instead. Turn off to fetch just the first page.

## `expandKeywords` (type: `boolean`):

Also scrape the related search terms Taobao links from each results page. Widens coverage a lot; results drift further from your original keyword.

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

Only keep products at or above this yuan price.

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

Only keep products at or below this yuan price.

## `freeShippingOnly` (type: `boolean`):

Restrict search results to items Taobao flags as free shipping.

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

Taobao rate-limits single IPs hard, so RESIDENTIAL proxy is strongly recommended - it measured 100% success against 33-67% on datacenter. Every retry automatically rotates to a new IP.

## `urlsFromFile` (type: `string`):

Paste a list of URLs (one per line), OR one link to a .txt/.csv file, Google Sheet or Google Drive file containing them. Lets you import many Start URLs at once instead of typing each. Google Sheet/Drive share links are handled automatically.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "手机"
  ],
  "categoryIds": [
    "50064014"
  ],
  "itemUrls": [
    "730344766230"
  ],
  "shopIds": [
    "188555483"
  ],
  "region": "sg",
  "maxItems": 40,
  "scrapeDetails": true,
  "deepScan": true,
  "expandKeywords": false,
  "freeShippingOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped Taobao and Tmall records as JSON items in the default dataset.

# 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 = {
    "mode": "search",
    "keywords": [
        "手机"
    ],
    "categoryIds": [
        "50064014"
    ],
    "itemUrls": [
        "730344766230"
    ],
    "shopIds": [
        "188555483"
    ],
    "region": "sg",
    "maxItems": 40,
    "scrapeDetails": true,
    "deepScan": true,
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "urlsFromFile": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesage/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 = {
    "mode": "search",
    "keywords": ["手机"],
    "categoryIds": ["50064014"],
    "itemUrls": ["730344766230"],
    "shopIds": ["188555483"],
    "region": "sg",
    "maxItems": 40,
    "scrapeDetails": True,
    "deepScan": True,
    "proxyConfiguration": { "useApifyProxy": True },
    "urlsFromFile": "",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapesage/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 '{
  "mode": "search",
  "keywords": [
    "手机"
  ],
  "categoryIds": [
    "50064014"
  ],
  "itemUrls": [
    "730344766230"
  ],
  "shopIds": [
    "188555483"
  ],
  "region": "sg",
  "maxItems": 40,
  "scrapeDetails": true,
  "deepScan": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "urlsFromFile": ""
}' |
apify call scrapesage/taobao-scraper --silent --output-dataset

```

## MCP server setup

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