# Taobao & Tmall Scraper: Products, Prices & Shop Ratings (`moggedhq/taobao-tmall-scraper`) Actor

Get Taobao and Tmall products for phone cases, tea or clothing keywords and links: CNY prices, shop names, ratings, ship-from city and optional USD conversion. $0.0035 per product; 100 cost $0.35. No login. Public snapshots; no monthly sales or SKU stock.

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

## Pricing

from $2.80 / 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

## Taobao & Tmall Scraper: Products, Prices & Shop Ratings

For sourcing teams, product analysts and resellers who need repeatable snapshots of public Taobao and Tmall listings. A product costs **$0.0035**, so 100 distinct products cost **$0.35**, plus the $0.00005 run start fee. Tier discounts reduce the product price. No login needed.

Supply common keywords, product links, category links or shop links. Export the resulting prices and business metadata as JSON, CSV or Excel. The default example requests 20 phone-case products, costing about $0.07 plus the small start fee when 20 products are available.

This Actor reads Taobao's signed-out public pages. It is a **public snapshot product**. Monthly sales, SKU prices, variant stock and specifications are currently unavailable on this route and remain `null`. Prices can be cached by the source and can differ from checkout, a specific variant, a coupon or an account offer. These limits are included in the output and apply even with `includeDetails` enabled.

### What you get

| Field | Meaning |
|---|---|
| `summary` | A readable product-and-price summary, or an uncharged input note |
| `type` | `PRODUCT`, `NOTE` or the free final `SUMMARY` record |
| `itemId`, `url` | Stable product identifier and Taobao or Tmall product link |
| `title`, `titleTruncated` | Source title and a flag identifying shortened item-page titles |
| `price`, `originalPrice`, `currency` | Source current and original numeric prices, always retaining CNY |
| `priceConverted`, `convertedCurrency` | Optional conversion using a free daily exchange rate |
| `exchangeRate`, `exchangeRateDate`, `exchangeRateSource` | The exact conversion rate, date and source |
| `shopId`, `shopName` | Public shop identity when supplied by the page |
| `shopRating` | Item-page description, service and logistics scores, normally out of five |
| `descriptionMatchScore` | A separate numeric shop-description match score from a list page |
| `isTmall` | Verified seller type when supplied, otherwise `null` |
| `shipFrom`, `freeShipping` | Source origin city and shipping flag when supplied |
| `imageUrl`, `images` | Public main image and available image URLs |
| `categoryId`, `rootCategoryId` | Source category identifiers when supplied |
| `reviewCount` | Aggregate count only when the public item response supplies it |
| `monthlySales`, `skus`, `specs` | Currently `null`; this route does not supply them |
| `rank`, `sourceType`, `sourceQuery` | Position within the returned sample and how the item was found |
| `sourceUrl`, `detailSourceUrl` | Public pages from which the source values were read |
| `detailLevel`, `missingFields`, `notes` | What was available and any limitations affecting the row |
| `scrapedAt` | UTC time the public snapshot was observed |

Only products trigger the product fee. Notes, summaries, failures, filtered items and duplicates are free of product charges; the start fee still applies.

### Start in three steps

1. Enter a common Chinese product term such as `手机壳` (phone case), `蓝牙耳机` (Bluetooth headphones) or `连衣裙` (dress). Alternatively, paste a known product URL into `startUrls`.
2. Set `maxItems`. Keep `includeDetails` off for a fast list sample; enable it when you need the available item-page shop scores and origin fields.
3. Start the Actor, read the coverage summary and export the product rows. In an integration, select rows whose `type` equals `PRODUCT`.

```json
{
  "searchTerms": ["手机壳"],
  "maxItems": 20,
  "currency": "USD",
  "includeDetails": false
}
```

Use Chinese terms for broader coverage: `茶叶` (tea), `机械键盘` (mechanical keyboard), `咖啡` (coffee), or `书包` (school bag). English terms are accepted as typed, without automatic translation.

### Inputs

| Input | Default | Behavior |
|---|---|---|
| `searchTerms` | Empty in API input | Array of common keywords; the Console prefill supplies `手机壳` |
| `startUrls` | Empty | Array of product, keyword, category or shop links, or numeric item IDs as strings |
| `sort` | `default` | Source order, or local `priceAsc` / `priceDesc` sample order; `sales` returns source order with an explanatory note |
| `priceMin`, `priceMax` | No range | Inclusive CNY price filters applied before delivery |
| `tmallOnly` | `false` | Verifies seller type from item pages where necessary; unknown seller types are excluded |
| `maxItems` | `20` | Total distinct product limit, 1 to 5,000; it is a ceiling, not a guaranteed count |
| `includeDetails` | `false` | Adds available public item-page fields; it does not unlock SKU or stock data |
| `currency` | `USD` | Additional three-letter conversion currency, such as EUR, GBP, ZAR, HKD or CNY |
| `proxyConfiguration` | Automatic | Direct request first, then fresh US residential retries for refused pages |

Product URLs from desktop, mobile and international Taobao/Tmall pages are normalized to numeric item IDs. Some valid IDs have no public page.

```json
{
  "startUrls": [
    "https://item.taobao.com/item.htm?id=730344766230",
    "https://detail.tmall.com/item.htm?id=666640816810",
    "https://world.taobao.com/category/50008090.htm"
  ],
  "maxItems": 25,
  "currency": "EUR"
}
```

`startUrls` accepts plain string arrays in the input editor. Through the API it also tolerates objects containing a `url` property. Single string values are accepted at runtime with a note, but arrays are the documented format. Unsupported links are skipped with a free note. The Actor does not follow app short-share links, execute pasted instructions or accept account cookies.

### Product and shop monitoring

Reuse item IDs for daily monitoring and compare prices from the same source type. Search and item pages can show different snapshots.

For a shop sample, use a public shop URL such as `https://shop467290190.taobao.com/` or `https://world.taobao.com/dianpu/467290190.htm`. A shop page may contain fewer than 20 products. It is a sample, not a complete export of the shop catalogue. Shop-page list cards may omit shop identity; enable details to read the product pages when that field is needed.

```json
{
  "startUrls": ["https://world.taobao.com/dianpu/467290190.htm"],
  "maxItems": 10,
  "includeDetails": true,
  "currency": "USD"
}
```

Price filters are inclusive CNY amounts. Unknown prices are excluded when filtering. Sorting applies to the returned sample, not the entire marketplace. `discountText` preserves the source label without inferring coupon value or offer dates.

### Item-page details

`includeDetails` requests a public item page for each selected list product. It can add verified Tmall status, shop ID and name, description/service/logistics scores, origin city, available image URLs and the aggregate review count when present. This is slower than a single list request, typically requiring another network request per product plus any retries.

The original list price remains in `price`; `itemPagePrice` and `itemPageOriginalPrice` preserve the separately observed item-page values. A failed item-page request leaves the useful list row intact and adds a note. There is no detail surcharge. With `tmallOnly`, an unavailable seller-type check causes the product to be excluded rather than guessed from its title or shop name.

Item titles may be shortened; `titleTruncated` flags this. Shop scores are business ratings. Buyer names, avatars and review text are not collected.

### Measured validation

The first priced cloud prefill delivered 20 distinct products in 10 seconds. The 36-input acceptance matrix covered ten product terms, five categories, three shops, item URL formats, filtering, sorting, enrichment and five currencies. All returned products. Ten item rows matched live browser prices, shop names, images and scores. A real reboot preserved three unique products and three charges; one-product and zero-product spending caps passed.

### Example from a live public page

The following selected fields were observed on 29 October 2026. Prices and source coverage change over time; use a new run for a new observation.

```json
{
  "type": "PRODUCT",
  "itemId": "666640816810",
  "title": "白色吊帶背心女內搭2...",
  "titleTruncated": true,
  "price": 98,
  "originalPrice": 98,
  "currency": "CNY",
  "isTmall": true,
  "shopId": "546092662",
  "shopName": "歌西梵旗艦店",
  "shipFrom": "廣東廣州",
  "freeShipping": false,
  "monthlySales": null,
  "skus": null,
  "specs": null,
  "detailLevel": "public-item"
}
```

### Pricing and spending limits

| Products delivered | Base product charge |
|---:|---:|
| 1 | $0.0035 |
| 20 | $0.07 |
| 100 | $0.35 |
| 1,000 | $3.50 |

The run start fee is $0.00005, with the platform's memory-based start-event handling. Bronze receives 5% off the product price, Silver 10%, and Gold and higher tiers 20%. No separate charge applies to conversion or public item enrichment. Your plan's Store discount is displayed by Apify before the run.

The Actor checks the run's spending limit before fetching another product batch and before saving a paid row. It stops cleanly when another product cannot fit. A row is saved before its product charge. A durable result ledger and stable charge keys recover a saved row after a platform restart, so the same product is not delivered or charged again. No product fee is charged for a refusal, unavailable item, empty keyword page, excluded price or duplicate ID. Free-plan users receive the same functionality and limits; no external paid service is involved.

### Monitor prices every day

Save your input as an Apify task. In Console, create a daily schedule for that task and keep the product IDs, detail setting and conversion currency fixed. No schedule is created automatically. Compare CNY prices first, since converted prices can change because the daily currency rate changed even when the seller's price did not.

Inspect both products and `SUMMARY`. `SOURCE_REFUSED` and `UNAVAILABLE` are coverage outcomes, not proof that an item is out of stock.

Send completion webhooks to Make, Zapier or n8n. Keep item IDs, source URLs, timestamps and raw CNY amounts in your history; treat null separately from zero.

### API use

Use your own Apify token as a secret environment variable. The same JSON input works in Console, an SDK or an HTTP request.

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("moggedhq/taobao-tmall-scraper").call(
    run_input={"searchTerms": ["手机壳"], "maxItems": 20}
)
products = [row for row in client.dataset(run["defaultDatasetId"]).iterate_items()
            if row.get("type") == "PRODUCT"]
```

`SUMMARY` in the default key-value store records coverage and charges. Overview, Shops and Coverage dataset views select useful columns; JSON preserves nested scores.

### Use with AI agents (MCP)

Connect your client to the [Apify MCP server](https://mcp.apify.com). Ask it to use `moggedhq/taobao-tmall-scraper`, inspect the input schema and run a small sample. A useful request is: “Get 20 public Taobao phone-case products using 手机壳, keep the CNY price, convert it to USD, and include the shop name. Explain any missing fields.”

Ask the agent to inspect `type`, `detailLevel` and the summary before interpreting null values.

### Limits and FAQ

#### Does this return the full marketplace search?

No. Common public keyword and category pages usually contain up to 20 products, sometimes fewer. Paging is not promised. Multiple related keywords can broaden a sample, with duplicate IDs delivered only once per run. A high `maxItems` does not create more source results.

#### Are monthly sales, SKUs and stock available?

Not through the current signed-out route. They remain null, including with details enabled. Zero would incorrectly imply a known value, so the Actor never substitutes it for missing data. This product is suitable for public price and shop monitoring, not SKU inventory decisions.

#### Why is a product missing or a search empty?

Taobao does not publish an indexable page for every product or phrase. Some pages are region-restricted, removed or temporarily refused. The Actor retries transient refusals with fresh anonymous sessions and reports the final outcome without a product fee. Try a shorter Chinese term or a known public product link.

#### Do I need a proxy, login or cookies?

No account is needed. The default tries direct HTTP and uses Apify US residential retries when necessary. You may provide your own proxy configuration. Setting `useApifyProxy` to false disables automatic residential retries; this can reduce coverage. Only anonymous visitor state is retained during a run.

#### How does currency conversion work?

The Actor reads a daily CNY pair from [Frankfurter](https://frankfurter.dev/), once per run, and preserves the date and rate. It is an indicative conversion without payment-provider fees. When the rate is unavailable or the currency is unsupported, CNY prices remain usable and converted values are null.

#### How do I report a problem?

Open an issue with the run ID, input JSON and the affected item IDs. Include whether a browser showed a public page at the same time. Do not attach account cookies, private customer data or credentials. This Actor is an independent tool for public Taobao products and Tmall shop-price research.

# Actor input Schema

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

Common product keywords. Chinese works best: 手机壳 (phone case), 茶叶 (tea), 连衣裙 (dress). Public pages usually show up to 20 products; rare terms may have no page. No live marketplace search or unlimited paging.

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

Accepts string URLs, numeric item IDs as strings, and {url: ...} objects through the API. Examples: https://item.taobao.com/item.htm?id=730344766230, https://world.taobao.com/category/50008090.htm, https://shop467290190.taobao.com/. Links are normalized to public international pages. Short app share links are unsupported.

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

Price sort orders the public sample only. Sales sorting is currently unavailable and returns source order plus a free note.

## `priceMin` (type: `number`):

Keep source prices at or above this CNY amount. Unknown prices are excluded when a price filter is set.

## `priceMax` (type: `number`):

Keep source prices at or below this CNY amount. Filters run before delivery and excluded products have no product charge.

## `tmallOnly` (type: `boolean`):

Reads item pages to verify seller type when list pages omit it. Slower. Unverified products are excluded, never guessed from a shop name.

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

Total distinct products across all inputs. Default 20 costs about $0.07 plus the small start fee. A public page may supply fewer than 20. Add more independent inputs to cover more products.

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

Adds shop rating scores, verified seller type, ship-from, item-page price and available images. Usually several seconds per product. SKU price/stock and specs are currently unavailable and remain null. No detail surcharge.

## `currency` (type: `string`):

Three-letter currency code, e.g. USD, EUR, GBP, ZAR, HKD or CNY. Daily free Frankfurter rate; keeps the original CNY values and rate date. Conversion failure leaves converted values null.

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

Default: direct HTTP first, then fresh US residential sessions on refused public pages. Custom proxy URLs or a country can be supplied. useApifyProxy:false disables the automatic residential retry. No login or account cookies are accepted.

## Actor input object example

```json
{
  "searchTerms": [
    "手机壳"
  ],
  "sort": "default",
  "tmallOnly": false,
  "maxItems": 20,
  "includeDetails": false,
  "currency": "USD"
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

# 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": [
        "手机壳"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/taobao-tmall-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": ["手机壳"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/taobao-tmall-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": [
    "手机壳"
  ],
  "maxItems": 20
}' |
apify call moggedhq/taobao-tmall-scraper --silent --output-dataset

```

## MCP server setup

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