# Taobao & Tmall Product Scraper (probe) (`kibaale/taobao-tmall-scraper`) Actor

DC smoke-test probe for the world.taobao.com SEO path.

- **URL**: https://apify.com/kibaale/taobao-tmall-scraper.md
- **Developed by:** [kibalee](https://apify.com/kibaale) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 results

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/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 Product Scraper

Scrapes **Taobao and Tmall products** — by keyword, category, shop or item URL. Pure HTTP: no browser, no login, no proxy.

### What you get

One record per product:

```json
{
  "recordType": "product",
  "itemId": 559660567175,
  "itemUrl": "https://world.taobao.com/item/M0tXcXBYZWZjc3NaaFpRdUVTMTBGQT09.htm",
  "title": "綠聯3.5英寸硬碟外接盒 支援24TB SATA固態硬碟讀取器",
  "itemType": "tmall",
  "priceCurrency": "CNY",
  "priceOriginal": 119.9,
  "pricePromotion": 119.9,
  "categoryId": 50003213,
  "rootCategoryId": 11,
  "breadcrumb": [{"name": "硬碟盒", "url": "https://world.taobao.com/category/53996073.htm"}],
  "images": ["https://img.alicdn.com/imgextra/..."],
  "location": "廣東東莞",
  "freeShipping": true,
  "shopId": 67095450,
  "shopName": "綠聯數碼旗艦店",
  "shopSince": "2011-05-30 14:37:22",
  "sellerItemCount": 1320,
  "dsr": {"post": 4.9, "serv": 4.8, "desc": 4.8},
  "reviewCount": 1,
  "sampleReviews": [{"content": "硬碟盒不錯，適合兩種尺寸sata硬碟。", "score": 5, "date": "2026.08.15 15:17", "sku": "顏色分類:USB繁星款★5Gbps★"}],
  "keywords": ["綠聯3.5英寸硬碟外接盒", "SATA固態硬碟讀取器"]
}
```

Products found through a keyword, category or shop but not opened in detail come back as `"recordType": "listing"` records, with the same identifiers plus `priceHKD`, `priceTWD`, `reviewTags` (review tag names with counts) and `sellPoints`. Set **Fetch full details** to upgrade them to complete product records.

### Input

| Field | Description |
|---|---|
| `itemUrls` | Item URLs, numeric IDs or SEO tokens — returns the full product record |
| `keywords` | Search terms, e.g. `phone case`, `手機殼` |
| `categoryIds` | Category IDs or URLs, e.g. `11` |
| `shopIds` | Shop IDs or URLs — returns the shop profile plus its catalogue |
| `fetchDetails` | Open every listed product for the complete record |
| `maxItemsPerSource` | Cap per keyword, category or shop (default 60) |
| `locale` | Storefront locale for localised prices, e.g. `en-us` |

Run it with no input at all and it returns a small default sample, so you can see the shape of the data before configuring anything.

### What it does not do

- **No SKU matrix.** Colour/size variants and their individual stock and prices are not on these pages.
- **No sales counts.** Taobao does not publish units sold on the catalogue pages this actor reads.
- **No pagination and no custom ranking.** Keyword and category pages return one page of products in Taobao's own order (shops return up to 60). Taobao serves a ranking it will not let a scraper re-sort, so results always come in the catalogue's default order — use several keywords for broader coverage.
- **One review sample per product.** The catalogue exposes a single recent review, not the full review history.
- **Prices are exactly as published.** Some sellers put a placeholder price in the millions on an item they would rather quote privately — Taobao shows that number on the public page, and so does this actor, rather than guessing which prices are real.
- **Public catalogue only.** Items not listed in the public catalogue have no page to read and are skipped with a note in the log.

### Output

All records land in the run's default dataset, ready to export as JSON, CSV or Excel.

# Actor input Schema

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

Product pages to scrape in full detail. Accepts world.taobao.com item URLs, item.taobao.com / detail.tmall.com links with an ?id= parameter, numeric item IDs, or the SEO item token. Only items present in the public catalogue are returned.

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

Search terms, e.g. "phone case" or "手機殼". Each keyword returns the products ranked on its catalogue page.

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

Category IDs from world.taobao.com/category/<id>.htm, e.g. 11 for computer hardware. Category pages list their top products.

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

Store IDs from world.taobao.com/dianpu/<id>.htm. Returns the shop profile plus up to 60 catalogue products.

## `fetchDetails` (type: `boolean`):

Also open each product from keyword, category and shop results to add the item type, description, seller age and ratings, coupon and a review sample. Slower, but gives complete records.

## `maxItemsPerSource` (type: `integer`):

Upper limit of products collected per keyword, category or shop.

## `locale` (type: `string`):

Storefront locale for localised prices, e.g. en-us (US dollars) or ru-ru. Leave empty for the default page.

## `requestDelay` (type: `number`):

Throttle applied between page requests. Lower it for faster runs, raise it if you ever see bot-check responses.

## `maxRetries` (type: `integer`):

How many times a failing page is retried before it is skipped.

## Actor input object example

```json
{
  "fetchDetails": false,
  "maxItemsPerSource": 60,
  "requestDelay": 1.2,
  "maxRetries": 3
}
```

# Actor output Schema

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

Product records stored in the run's 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kibaale/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("kibaale/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 '{}' |
apify call kibaale/taobao-tmall-scraper --silent --output-dataset

```

## MCP server setup

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