# Taobao Price Monitor - Keyword & Shop Products, Price Changes (`magenta_courser/taobao-price-monitor`) Actor

Enter Taobao/Tmall keywords or shop IDs and get one row per product: item ID, title, price in CNY, original price, shop, image and URL, plus what changed since your last run: price changes, new products and removed products. Public pages only, no login or cookies.

- **URL**: https://apify.com/magenta_courser/taobao-price-monitor.md
- **Developed by:** [SUNGHWAN CHO](https://apify.com/magenta_courser) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 items

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 Price Monitor: Keyword & Shop Products with Price Changes

**Languages:** English · [한국어](#korean) · [中文](#chinese)

> **Free plan:** Apify's $5 monthly credit covers about 2,500 products with this Actor (basic product rows; item page details are a separate event).

Enter Taobao/Tmall keywords or shop IDs and get one flat row per product (item ID, title, price in CNY, shop, image, URL) plus what changed since your last run: price changes, new products and products that are no longer listed. This Actor is a Taobao scraper built for repeat runs: sourcing sellers, dropshippers and purchasing agents schedule it on the shops and keywords they follow and get the differences instead of comparing spreadsheets by hand.

- **Changes, not just a snapshot.** Each run is compared with the previous run of the same keyword or shop: `isNew`, `priceChanged`, `previousPriceCny`, `priceDeltaCny`, `priceChangePercent`, and free rows for removed products.
- **Pay for changes only, if you want.** With `outputMode: "changesOnly"` a scheduled run saves only the rows that changed.
- **Public pages only.** It reads the public server-rendered pages of `world.taobao.com` with plain requests. No login, no cookies, no browser, no captcha solving.
- **Honest failures.** A refused or missing page becomes a free status row that says what to do next. The run summary is in the free `RUN_SUMMARY` record.

**Not included:** SKU/variant prices, stock, sales volume, full review lists, further images, and lookups by product ID or `item.taobao.com` link. The public pages do not show them. See [Limits](#limits).

### What you get

One row per product. Every field is always present; a value the page does not show is `null`.

| Field | Type | Description |
|---|---|---|
| `query`, `queryType` | string | The keyword or shop ID of this row, and `keyword` or `shop` |
| `position` | integer | Position in the keyword or shop list (Taobao's default order) |
| `itemId` | integer | Taobao numeric item ID (use this as the key) |
| `itemCode` | string | Item code used in `world.taobao.com` item URLs |
| `title` | string | Product title as shown on world.taobao.com (Chinese, not translated) |
| `priceCny` | number | Current list price in CNY. One price per product, no SKU prices |
| `originalPriceCny`, `discountPercent` | number | Price before discount and discount in percent. The public pages rarely show a different original price, so `discountPercent` is usually `null` |
| `priceLocal`, `priceLocalCurrency` | number, string | The price converted by Taobao for the proxy's country, when provided (e.g. KRW with a South Korean proxy); otherwise `null` |
| `shopId`, `shopName` | integer, string | Shop |
| `imageUrl` | string | Main image (one image) |
| `categoryId` | integer | Taobao category ID |
| `itemUrl` | string | Public product page on world.taobao.com |
| `freeShipping` | boolean | Free-shipping flag of the list |
| `shopRatingDescription`, `shopRatingService`, `shopRatingLogistics` | number | Shop ratings (0-5). Keyword rows have the first one; shop rows and `includeItemPage` rows have all three |
| `platform` | string | `taobao` or `tmall` (with `includeItemPage`) |
| `shipsFrom` | string | Ships-from province/city (with `includeItemPage`) |
| `category` | string | Category path (with `includeItemPage`) |
| `reviewCountApprox`, `reviewCountRaw` | integer, string | Approximate review count, e.g. `3000` and `"3000+"` (with `includeItemPage`). No review texts or reviewers |
| `itemPageStatus` | string | With `includeItemPage`: `ok`, `notFound`, `blocked`, `failed` |
| `changeType` | string | `baseline` (first run of the query), `new`, `priceChanged`, `unchanged`, `reappeared`, `removed` |
| `isNew` | boolean | Not seen in any earlier run of this query |
| `priceChanged` | boolean | `priceCny` differs from the previous run |
| `previousPriceCny`, `priceDeltaCny`, `priceChangePercent` | number | Previous price, difference (negative = cheaper) and percent |
| `isRemoved` | boolean | `true` on free rows for products no longer in the list |
| `firstSeenAt`, `lastSeenAt` | ISO string | When this Actor first and last saw the product for this query |
| `status`, `errorMessage` | string | `ok`, `removed`, or a free status row: `blocked`, `notFound`, `empty`, `failed`, `invalidInput` with what to do next |
| `queryUrl`, `scrapedAt` | string | The page that was read and the collection time (UTC) |

### Sample output

**Second run and later (changes filled).** One real row from a run of this Actor (keyword `连衣裙`, `includeItemPage` on, third run of the same keyword):

```json
{
  "query": "连衣裙",
  "queryType": "keyword",
  "position": 1,
  "itemId": 828861769635,
  "itemCode": "SG8zRWQ3TVNLZ0tmMHRJcmZOS05jZz09",
  "title": "林妍兒V領針織洋裝女秋冬季修身氣質內搭打底毛衣包臀魚尾裙春",
  "priceCny": 222,
  "originalPriceCny": 222,
  "discountPercent": null,
  "priceLocal": null,
  "priceLocalCurrency": null,
  "shopId": 70186190,
  "shopName": "LINYANER 林妍兒",
  "imageUrl": "https://img.alicdn.com/imgextra/i2/396024549/O1CN0140hNkM1jTUrDGq5gy_!!396024549.jpg",
  "categoryId": 50010850,
  "category": "品牌女裝 > 洋裝 > 氣質洋裝",
  "itemUrl": "https://world.taobao.com/item/SG8zRWQ3TVNLZ0tmMHRJcmZOS05jZz09.htm",
  "freeShipping": false,
  "platform": "taobao",
  "shipsFrom": "浙江杭州",
  "shopRatingDescription": 4.7,
  "shopRatingService": 4.7,
  "shopRatingLogistics": 4.8,
  "reviewCountApprox": 500,
  "reviewCountRaw": "500+",
  "itemPageStatus": "ok",
  "changeType": "unchanged",
  "isNew": false,
  "priceChanged": false,
  "previousPriceCny": 222,
  "priceDeltaCny": null,
  "priceChangePercent": null,
  "isRemoved": false,
  "firstSeenAt": "2026-11-11T15:12:59.594Z",
  "lastSeenAt": "2026-11-11T15:21:18.189Z",
  "status": "ok",
  "errorMessage": null,
  "queryUrl": "https://world.taobao.com/product/%E8%BF%9E%E8%A1%A3%E8%A3%99.htm",
  "scrapedAt": "2026-11-11T15:27:02.711Z"
}
```

When a price moves, the same row carries for example `"changeType": "priceChanged", "priceChanged": true, "previousPriceCny": 24.9, "priceDeltaCny": -5, "priceChangePercent": -20.1`.

### Use cases

1. **Competitor shop price tracking for sourcing sellers.** A seller who buys from, or competes with, a handful of Taobao/Tmall shops schedules their shop IDs daily with `outputMode: "changesOnly"` and gets only the products whose price moved, new arrivals and delisted products, sent to a sheet or Slack through a webhook.
2. **Purchasing agents and dropshippers.** Re-check the price of the products you resell before you quote a customer, and catch price rises on the supplier side early.
3. **Keyword watch.** Follow the top products of a keyword (`蓝牙耳机`, `phone case`) to see which products enter the list and how their prices move.
4. **Market research.** Collect title, price, shop and category for the top products of many keywords in one run.
5. **AI agents.** Flat English fields, numbers as numbers and `null` for missing values, ready for an agent that answers "what changed in shop X since yesterday".

### How to use

#### Apify Console

Enter keywords (one per line) or shop IDs and click **Start**. For monitoring, save the input as a Task and add a Schedule: every later run compares itself with the previous one.

| Field | Description |
|---|---|
| `keywords` | Chinese or English keywords, e.g. `连衣裙`, `phone case`. 20 products per keyword (up to 40, see Limits). |
| `shopIds` / `shopUrls` | Shop IDs (`503709453`) or shop URLs (`https://world.taobao.com/dianpu/503709453.htm`, `https://shop503709453.taobao.com`). Up to 60 products per shop. |
| `maxItemsPerQuery` | Products to save per keyword or shop. Default 20, max 60. |
| `includeItemPage` | Also read each product's summary page: `platform`, `shipsFrom`, `category`, three shop ratings, approximate review count. One extra request per product, charged as a separate event. |
| `compareWithLastRun` | Default `true`. Remembers each query's products in a named key-value store and fills the change fields. |
| `outputMode` | `all` (default) or `changesOnly` (new, price-changed, reappeared and removed products only; the first run of a query saves everything as the baseline). |
| `historyStoreName` | Name of the history store. Use different names for independent monitors. Default `taobao-price-monitor-history`. |
| `proxyConfiguration` | Apify datacenter proxy by default. Switch to residential if queries come back as `blocked`. |

At least one of `keywords`, `shopIds`, `shopUrls` is required.

```json
{
  "shopIds": ["503709453", "70186190"],
  "keywords": ["连衣裙"],
  "outputMode": "changesOnly",
  "historyStoreName": "my-competitors"
}
```

#### API (curl)

```bash
curl -X POST "https://api.apify.com/v2/acts/magenta_courser~taobao-price-monitor/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["连衣裙"],"maxItemsPerQuery":20}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("magenta_courser/taobao-price-monitor").call(run_input={
    "shopIds": ["503709453"],
    "outputMode": "changesOnly",
    "historyStoreName": "my-competitors",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["changeType"], row["title"], row["previousPriceCny"], "->", row["priceCny"])
```

#### JavaScript

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('magenta_courser/taobao-price-monitor').call({
    shopIds: ['503709453'],
    outputMode: 'changesOnly',
    historyStoreName: 'my-competitors',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.changeType, r.title, r.previousPriceCny, r.priceCny]));
```

#### AI agents and MCP

Connect your agent (Claude, Cursor, a LangChain or OpenAI Agents SDK app, or any MCP client) to the Apify MCP server with your Apify token and add this Actor as a tool: `https://mcp.apify.com?tools=magenta_courser/taobao-price-monitor`. The agent then calls the tool `magenta_courser/taobao-price-monitor` with a minimal input such as:

```json
{ "keywords": ["蓝牙耳机"], "maxItemsPerQuery": 20 }
```

Rows are flat, prices are numbers and missing values are `null`, so an agent can filter on `priceChanged` or sort by `priceChangePercent` without post-processing.

### Limits

- **No SKU/variant prices, no stock, no sales volume, no full reviews.** The public pages show one price per product and an approximate review count. Review texts and reviewer names are not collected.
- **No lookup by product ID or product link.** `item.taobao.com` and `detail.tmall.com` require login and are never requested. Products come from keyword and shop lists only.
- **One page per query.** A keyword gives 20 products; where Taobao also has a "top rated" list for the keyword (6 of 9 keywords in our test) the Actor reads it with one extra request for up to 40. A shop gives up to 60 products. There are no further pages, sort orders or price filters on the public pages (tested).
- **Keyword lists rotate.** Taobao sometimes serves a different result set for the same keyword minutes apart. To avoid false alarms, a keyword product is reported as removed only after it was missing in two consecutive runs, and a product that returns before that stays `unchanged`. Shop lists were stable in our tests and report a removal after one run. Price changes are the most reliable signal; shops are the most reliable query type.
- **Titles are Traditional Chinese** as served by world.taobao.com, not translated.
- **One image per product,** no description.
- `removed` means "no longer in the list this Actor can see", not necessarily delisted.
- If the history store cannot be opened, the run still saves the products and treats itself as a first run.

### Pricing

Pay per event (FREE plan prices; BRONZE -5%, SILVER -10%, GOLD and up -20%):

| Event | Price | When |
|---|---|---|
| `item` | $0.002 | Each product row saved to the dataset |
| `item-details` | $0.002 | Only with `includeItemPage`, per product page read successfully |

Not charged: removed-product rows, status rows (`blocked`, `notFound`, `empty`, `failed`, `invalidInput`), failed product pages, the `RUN_SUMMARY` record. If nothing could be read, the run ends with "Nothing was charged". If you set a *Maximum cost per run*, the Actor stops cleanly when it is reached.

### FAQ

#### Do I need a Taobao account or cookies?

No. The Actor reads public pages of world.taobao.com without logging in and sends no cookies.

#### Can I get SKU prices, stock or monthly sales?

No. Those are only available behind Taobao's login or signed APIs, which this Actor does not use.

#### How does the comparison work?

Each keyword and shop has its own record in the named key-value store (`historyStoreName`). The first run saves a baseline (`changeType: "baseline"`). Later runs mark each product `new`, `priceChanged`, `unchanged` or `reappeared`, and add free `removed` rows. Use the same input and store name for each scheduled run; a different `historyStoreName` starts a new history.

#### What happens when Taobao refuses a request?

The Actor retries twice with a new proxy session and then writes a free status row with `status: "blocked"`. It does not solve captchas or sliders and does not work around the refusal. In our tests about 250 datacenter requests (104 of them in a single run) passed without a refusal; with residential proxies 1 of 64 requests was refused and passed on retry.

#### Why is `priceLocal` empty?

Taobao converts the price only for some visitor countries. With a South Korean residential proxy the rows carry KRW; with US proxies they carry CNY only.

#### Where is the per-query status?

In the key-value store record `RUN_SUMMARY` (free): per query `status`, products found and saved, new, price-changed, removed and reappeared counts, and request counts.

### 한국어 안내 (Korean)

타오바오·티몰 키워드 또는 상점 ID를 넣으면 상품 1개당 1행(상품 ID, 제목, 위안화 가격, 상점, 이미지, 링크)과 함께 **지난 실행 대비 변화**(가격 변동, 신규 상품, 사라진 상품)를 돌려줍니다. 구매대행·소싱 셀러가 경쟁 상점이나 거래처 상점을 예약 실행으로 걸어 두고 `outputMode: "changesOnly"`로 바뀐 것만 받는 용도에 맞습니다. world.taobao.com의 공개 화면만 읽으며 로그인·쿠키·캡차 풀이는 쓰지 않습니다. **SKU(옵션)별 가격, 재고, 판매량, 전체 리뷰는 제공하지 않습니다.** 상품 ID나 item.taobao.com 링크로 조회하는 기능도 없습니다. 키워드는 20개(일부 키워드는 40개), 상점은 최대 60개까지이며 다음 쪽은 없습니다. 한국 주거용 프록시를 쓰면 `priceLocal`에 원화 가격이 함께 나옵니다. 키워드 목록은 타오바오가 결과를 바꿔 내보낼 때가 있어, 사라진 상품은 두 번 연속 안 보일 때만 알립니다(상점은 한 번).

### 中文说明 (Chinese)

输入淘宝/天猫关键词或店铺ID，每个商品返回一行数据（商品ID、标题、人民币价格、店铺、主图、链接），并标出与上次运行相比的变化：价格变动、新上架商品、已下架商品。仅读取 world.taobao.com 的公开页面，无需登录或 Cookie。不提供 SKU 价格、库存、销量和完整评价。每个关键词 20 个商品（部分关键词 40 个），每个店铺最多 60 个商品。

### Notes

This Actor reads publicly visible product information only and does not log in. You are responsible for using the data in line with Taobao's terms and applicable law.

### Need another field or feature?

Tell us in the **Issues** tab: a missing field, another input mode, a different output format. We aim to ship requested fields and features within a week, and we answer every issue.

# Actor input Schema

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

Taobao search keywords, one per line, in Chinese (e.g. "连衣裙", "蓝牙耳机") or English (e.g. "phone case"). Chinese keywords match best. Each keyword returns the 20 products of its public world.taobao.com list page (up to 40 where the site also has a "top rated" list for the keyword). Provide keywords, shops, or both.

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

Taobao/Tmall shop IDs, one per line (e.g. 503709453). The shop ID is the number in shop<ID>.taobao.com or world.taobao.com/dianpu/<ID>.htm. Each shop returns up to 60 products of its public shop page. Product IDs and item.taobao.com links are not supported.

## `shopUrls` (type: `array`):

Alternative to shop IDs: shop URLs such as https://world.taobao.com/dianpu/503709453.htm or https://shop503709453.taobao.com. Only the shop ID in the URL is used.

## `maxItemsPerQuery` (type: `integer`):

Maximum products to save for each keyword or shop. The public pages have no further pages: a keyword gives 20 products (up to 40 where the site has a second "top rated" list for it, read with one extra request when you ask for more than 20), a shop gives up to 60. Raise this value (up to 40 for a keyword, 60 for a shop) to get more.

## `includeItemPage` (type: `boolean`):

Adds one request per product for: ships-from location, platform (taobao or tmall), category path, the shop's three ratings and an approximate review count (e.g. "3000+"). Slower and charged as a separate event. It does not add SKU prices, stock, sales volume or review texts: the public pages do not show them.

## `compareWithLastRun` (type: `boolean`):

Remember each keyword's and shop's products and report what changed since the previous run: new products, price changes (previous price, difference, percent) and products that are no longer listed. The first run saves a baseline.

## `outputMode` (type: `string`):

"all" saves every product with its change fields. "changesOnly" saves only new products, price changes, reappeared and removed products, so scheduled runs pay only for changes (the first run of a query saves all its products as the baseline).

## `historyStoreName` (type: `string`):

Named key-value store that remembers the previous run. Use different names for independent monitors (letters, digits and hyphens).

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

Proxy used for the requests to world.taobao.com. Apify datacenter proxies (the default) passed in our tests. If queries come back as "blocked", switch to residential proxies. Taobao converts prices for some proxy countries (e.g. KRW with a South Korean residential proxy): see priceLocal. Do not use mainland China proxies.

## Actor input object example

```json
{
  "keywords": [
    "连衣裙"
  ],
  "maxItemsPerQuery": 20,
  "includeItemPage": false,
  "compareWithLastRun": true,
  "outputMode": "all",
  "historyStoreName": "taobao-price-monitor-history",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per product, with change fields against the previous run of the same keyword or shop.

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

Per-query status, products saved, new products, price changes, removed products and request counts. Not charged.

# 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": [
        "连衣裙"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("magenta_courser/taobao-price-monitor").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": ["连衣裙"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("magenta_courser/taobao-price-monitor").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": [
    "连衣裙"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call magenta_courser/taobao-price-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,magenta_courser/taobao-price-monitor"
        }
    }
}
```

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/JSzf1bupL5gaJ0Dpy/builds/1IGBj0Ix8ul7utbdZ/openapi.json
