# Taobao API scraper — Taobao and Tmall products without an account: keyword tag search with prices in CNY, shop, category, the tag's top-rated ranking with buyer comments and Q&A, and the product with price, seller scores and location. No login, no browser.

> Taobao's own page for a keyword tag: the first 20 products (title in full, price in CNY with the site's HKD and TWD conversions, promotion label, shop, category, images, buyer comment tags), the tag's total product count, its category path and the brand counts. Page 1 only — Taobao serves no further pages without login. Row prices are the list card's (a snapshot: on 3 Dec 2026 42 of 52 matched the product page, the other 10 were higher than the product page). language=en reads Taobao's English index (English titles, 30-day sales).
> ReefAPI engine `taobao` · 6 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/taobao/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/taobao/v1/search — 2 credits
Taobao's own page for a keyword tag: the first 20 products (title in full, price in CNY with the site's HKD and TWD conversions, promotion label, shop, category, images, buyer comment tags), the tag's total product count, its category path and the brand counts. Page 1 only — Taobao serves no further pages without login. Row prices are the list card's (a snapshot: on 3 Dec 2026 42 of 52 matched the product page, the other 10 were higher than the product page). language=en reads Taobao's English index (English titles, 30-day sales).

**Parameters:**
- `query` (string, required) — A Taobao tag: a Chinese keyword (电路板, 蓝牙耳机, 连衣裙) or one English word or model (pcb, arduino, esp32, iphone). Taobao only publishes pages for the tags it has generated: an unknown tag (most multi-word English phrases) → NOT_FOUND.
- `language` (enum, optional, default "zh-hans") — Text of the page: zh-hans = Simplified Chinese, the sellers' own titles (www.taobao.com); zh-hant = Traditional Chinese (world.taobao.com); same products and prices. en = Taobao's English index: its own result set, machine-translated English titles, 30-day sales and comment counts. [one of: zh-hans, zh-hant, en]

**Returns:** results[]{item_id, item_id_str, title, title_en, price_cny, was_price_cny, currency, price_hkd, price_twd, promotion_label, free_shipping, area_limited, sold_30d_text, orders_30d_text, paying_buyers_30d_text, comment_count, description_match_score, comment_tags[{tag, count, tag_id}], selling_points[], category_id, root_category_id, shop_id, shop_name, url, taobao_url, image, images[], position}, count, total_results, total_text, site_total_pages, page, page_size, has_more_pages_on_site, query, language, categories[{name, category_id, url}], brands[{brand_id, name, count}], properties[{property_id, name, values[]}], page_title, page_description, top_rated_url

**Example request body:**
```json
{
  "query": "pcb"
}
```

### POST https://api.reefapi.com/taobao/v1/top_rated — 3 credits
The tag's monthly-sales reputation ranking (Taobao's 'top-rated' page): 40 ranked products, plus 20 products with up to 19 buyer comments each (text, date, the SKU bought), comment tags with counts, and buyers' questions with answers.

**Parameters:**
- `query` (string, required) — A Taobao tag: a Chinese keyword (电路板, 蓝牙耳机, 连衣裙) or one English word or model (pcb, arduino, esp32, iphone). Taobao only publishes pages for the tags it has generated: an unknown tag (most multi-word English phrases) → NOT_FOUND.
- `language` (enum, optional, default "zh-hans") — Text of the page: zh-hans = Simplified Chinese, the sellers' own titles (www.taobao.com); zh-hant = Traditional Chinese (world.taobao.com); same products and prices. [one of: zh-hans, zh-hant]

**Returns:** ranking[]{item_id, item_id_str, title, title_en, price_cny, was_price_cny, currency, price_hkd, price_twd, promotion_label, free_shipping, area_limited, sold_30d_text, orders_30d_text, paying_buyers_30d_text, comment_count, description_match_score, comment_tags[{tag, count, tag_id}], selling_points[], category_id, root_category_id, shop_id, shop_name, url, taobao_url, image, images[], position}, reviewed[]{…row, comments[{text, date, sku, user}], questions[{question, date, answers[{text, date, user, user_avatar}]}]}, count, reviewed_count, total_results, total_text, query, language, categories[], page_title, page_description

**Example request body:**
```json
{
  "query": "pcb"
}
```

### POST https://api.reefapi.com/taobao/v1/product — 1 credit
One Taobao/Tmall product by item_id_str: price in CNY (and the struck price when there is one), whether it has a price range, Taobao vs Tmall, ship-from location, category path, the seller (shop name and id, user id, credit level, item counts, open date, the three shop scores), one buyer review, the review summary, payment methods and the image. The price is the product page's own (fresher than list cards). Taobao's public page usually cuts the title to about 10 characters (title_is_truncated; the full title is on every list row) and publishes no SKU prices, stock or description.

**Parameters:**
- `item_id_str` (string, required) — The product's 32-character id, as item_id_str on every search / top_rated / shop / category row, or its world.taobao.com/item/… URL. The numeric item id is NOT accepted (Taobao publishes the page only under this id).
- `language` (enum, optional, default "zh-hans") — Text of the page: zh-hans = Simplified Chinese, the sellers' own titles (www.taobao.com); zh-hant = Traditional Chinese (world.taobao.com); same products and prices. [one of: zh-hans, zh-hant]

**Returns:** product{item_id, item_id_str, title_short, title_is_truncated, price_cny, was_price_cny, currency, has_price_range, price_note, type, is_tmall, location, category_id, root_category_id, breadcrumb[], free_shipping, area_limited, sellable_languages[], payment_methods[], seller{shop_id, shop_name, user_id, seller_type, credit_level, item_count, new_item_count, opened, shop_card, logo, shop_url, world_shop_url, scores[{name, type, score, level}]}, reviews[{text, score, date, sku, user, user_avatar}], has_more_reviews, review_summary, coupon_url, url, taobao_url, image, images[], locale}

**Example request body:**
```json
{
  "item_id_str": "RVZ1bGtMbW13V1ViR0xjYURJbjluUT09"
}
```

### POST https://api.reefapi.com/taobao/v1/shop — 2 credits
A Taobao shop's public page: the shop's three scores and logo, and its first 60 products with price. Page 1 only.

**Parameters:**
- `shop_id` (string, required) — Numeric Taobao shop id (shop_id on every row, seller.shop_id on a product).
- `language` (enum, optional, default "zh-hans") — Text of the page: zh-hans = Simplified Chinese, the sellers' own titles (www.taobao.com); zh-hant = Traditional Chinese (world.taobao.com); same products and prices. [one of: zh-hans, zh-hant]

**Returns:** shop{shop_id, name, seller_id, description_score, service_score, delivery_score, logo}, results[]{item_id, item_id_str, title, title_en, price_cny, was_price_cny, currency, price_hkd, price_twd, promotion_label, free_shipping, area_limited, sold_30d_text, orders_30d_text, paying_buyers_30d_text, comment_count, description_match_score, comment_tags[{tag, count, tag_id}], selling_points[], category_id, root_category_id, shop_id, shop_name, url, taobao_url, image, images[], position}, count, total_results, site_total_pages, page_size, language

**Example request body:**
```json
{
  "shop_id": "111481369"
}
```

### POST https://api.reefapi.com/taobao/v1/category — 2 credits
A Taobao category's public page: its first 20 products with price, the category's total product count and its path. Page 1 only.

**Parameters:**
- `category_id` (string, required) — Numeric Taobao category id (from categories, a breadcrumb, or a row's category_id / root_category_id).
- `language` (enum, optional, default "zh-hans") — Text of the page: zh-hans = Simplified Chinese, the sellers' own titles (www.taobao.com); zh-hant = Traditional Chinese (world.taobao.com); same products and prices. [one of: zh-hans, zh-hant]

**Returns:** results[]{item_id, item_id_str, title, title_en, price_cny, was_price_cny, currency, price_hkd, price_twd, promotion_label, free_shipping, area_limited, sold_30d_text, orders_30d_text, paying_buyers_30d_text, comment_count, description_match_score, comment_tags[{tag, count, tag_id}], selling_points[], category_id, root_category_id, shop_id, shop_name, url, taobao_url, image, images[], position}, count, total_results, total_text, site_total_pages, page_size, category_id, categories[], language, page_title

**Example request body:**
```json
{
  "category_id": "16"
}
```

### POST https://api.reefapi.com/taobao/v1/categories — 1 credit
Taobao's top category list as its overseas home page prints it (ids for the category action).

**Parameters:** none

**Returns:** categories[{category_id, name, group, url}], count

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=taobao
- Human docs page: https://reefapi.com/docs/taobao
- Overview page: https://reefapi.com/taobao-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
