# Taobao API

Search Taobao and Tmall products to retrieve specifications, pricing, reviews, shop details and user questions.

Product URLs must include a numeric ID. Short links and promotional tokens cannot be read directly.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "taobao", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/taobao-api](https://everyinfra.com/en/taobao-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Search Taobao and Tmall listings by keyword. Get price and ship-from location, plus units sold, rating, shop and coupon or discount details when available. Plain keyword searches are the most reliable and can page with `page`, 20 per page, though most of their rows lack units sold and shop name. Price ranges, `popular`, `price_desc` and `tmall_only` cannot page, and the last three cap a request at 10. Stock, authenticity and delivery are not confirmed.
- Sync delivery · Price: $13.5 per 1,000 requests
- Each call returns one page of up to 20 rows. Use page for the next page. Each page is billed once.
- Parameters:
  - `keyword` (required): Specifies the Taobao or Tmall product search term for the search action. It does not perform an exact search by store name.
  - `max_price` (optional): Sets the maximum item price filter for the search action in combination with min_price. It does not control SKU inventory limits. Decimals may be rounded up to a whole number. Searches with a price range cannot be paged.
  - `min_price` (optional): Sets the minimum item price filter for the search action. It is not a review score filter or an API fee parameter, and it does not apply to shop, product_detail, reviews, or questions. Decimals may be rounded down to a whole number. Searches with a price range cannot be paged.
  - `page` (optional): Page number for product search, from 1 to 50, with 20 results per page. Omit it for page 1; each page is billed as one call. Only plain keyword searches can page (no min_price, max_price or tmall_only, and sort omitted or relevance). They are the more reliable way to search, though most rows carry no sales figures or shop name. A page above 1 combined with any of those filters is rejected before charging, so drop those filters to page. Rankings update in real time, so neighbouring pages can occasionally repeat a few items; dedupe by id when merging pages.
  - `sort` (optional): For product search, use relevance (default), popular, or price_desc. Default and relevance searches return up to 20 results per page; popular and price_desc return up to 10 and cannot be paged. price_asc is not supported. Questions do not accept sort; for reviews, see its sort parameter (newest or recommended). For shop, sort applies only when paging with page; see the shop parameters. One of: popular, price_desc, relevance.
  - `tmall_only` (optional): Filters product search to Tmall-only items when set to the boolean true and limits the request to 10 results, without paging. Pass a JSON boolean only; strings such as "false" and requests above this limit are rejected before charging.
- Returns fields: id, url, title, price, currency, price_basis, sold_count, rating, rating_scale, location, shop_name, image_url, stock, shop_id, sold_text, original_price, coupon_price, discount_type, is_tmall, brand, category_id, seller_credit_level, seller_positive_rate, shop_score_description, shop_score_service, shop_score_delivery, subtitle, search_rank, free_shipping, selling_points, review_tags, images, discount_rate, spu_id, category_path, review_count, latest_review, seller_type, shop_opened_at, shop_age_years, shop_item_count, shop_score_vs_industry, platform
- Capability page: [https://everyinfra.com/en/taobao-api/search](https://everyinfra.com/en/taobao-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/taobao-api/search.md)

### product_detail — Product details
Get the full record of one Taobao or Tmall product. It covers brand, prices, stock, every SKU, attributes, images, shipping fees and shop scores. Pass a numeric item ID, a product link or share text with exactly one product link. Bare share codes and expired links are rejected.
- Sync delivery · Price: $4.5 per 1,000 requests
- Parameters:
  - `url` (required): For product_detail, reviews, or questions, use a numeric item ID, a Taobao/Tmall product URL, or a share message containing exactly one product URL. e.tb.cn and m.tb.cn links work only when they can be safely resolved to a product page. TaoPassword-only tokens, expired links, and non-product pages are rejected. A sync call takes at most about 85 seconds; set your client timeout to at least 95 seconds. For product_detail, when the item has been taken down or does not exist, the result is empty with empty_reason item_not_found and nothing is charged. When a call cannot confirm whether the item still exists, it returns a 502 or 503 error (an async task ends as failed) and nothing is charged either; you can check again later.
  - `complete_skus` (optional): Applies to `product_detail` only; optional, defaults to `false`. When set to the boolean `true`, only data that covers every variant of the item (including variants with stock 0) and its Chinese title is used, so `skus` includes variants with stock 0; if that data cannot be retrieved for this call, it returns 503 and is not charged; a result with no `skus` (not a single variant) is still charged and returns the other fields. Requests with `complete_skus=true` are billed at 2x the standard `product_detail` price ($9.00 per 1,000 calls), and monthly top-up discounts still apply; omitting it or passing `false` leaves the price unchanged. Pass a JSON boolean only; strings such as `"true"` are rejected before charging.
  - `include_description_text` (optional): Applies to `product_detail` only; optional, defaults to `false`. Pass a JSON boolean only; strings such as `"true"` are rejected before charging. With `include_description_text=true`, one extra fetch gets the text the seller wrote in the item description (including links) and puts it in `description_html`; the request takes about 9–24 seconds longer. Only items whose seller wrote text in the description return it; for most items the description is images only. A call whose returned `description_html` contains the seller's text is billed at 2x the standard `product_detail` price ($9.00 per 1,000 calls); a call that returns none is billed at the standard price ($4.50 per 1,000 calls) with `billing.reason` set to `base_price_applied`, and the item details are still returned without an error. Monthly top-up discounts still apply. It cannot be combined with `complete_skus=true`: passing `true` for both is rejected before charging. Omitting it or passing `false` leaves the price and the response unchanged.
- Returns fields: id, url, title, brand, price, original_price, currency, price_basis, stock, sold_count, category_id, location, is_tmall, shop_name, shop_id, shipping_fee, ems_fee, express_fee, skus, sku_count, spec_values, props_images, attributes, main_image_url, description_images, description_html, video_url, coupon_price, price_usd, total_price, suggestive_price, has_discount, is_promotion, promo_type, is_virtual, brand_id, root_category_id, category_path, weight, size, favorite_count, fans_count, min_order_quantity, shipping_to, listed_at, modified_at, delist_at, images, category_name, description, keywords, shop_score_description, shop_score_service, shop_score_delivery, free_shipping, promotion_price, discount_price, discount_type, price_note, has_price_range, payment_methods, seller_id, seller_credit_level, seller_type, seller_type_label, selling_points, shop_logo_url, shop_url, shop_item_count, shop_new_item_count, shop_opened_at, review_tags, review_count, positive_rate, seven_day_return, reviews, platform
- Capability page: [https://everyinfra.com/en/taobao-api/product_detail](https://everyinfra.com/en/taobao-api/product_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/taobao-api/product_detail.md)

### shop — Shop
List the items a Taobao seller has on sale now: up to 20 per call, or page through the shop 60 at a time. Get the struck-through price, category, a postage-included flag, main image and shop ratings; rows have no sales or review counts. `shop` takes the seller's numeric user ID or a shop link, not a store name.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each call returns one page of up to 20 rows. Use page for the next page. Each page is billed once.
- Parameters:
  - `shop` (required): Specifies the seller's numeric userId (sellerId) or a shop link (shop<shopId>.taobao.com) for the shop action. Returns items that seller has on sale. Without page, each request returns at most 20 items and is billed once. With page, it goes through the shop one Taobao page at a time, usually 60 items per page. It is not a store name. Repeat requests for the same shop with the same sort and the same page within 12 hours return the same data as the first one, and are charged as usual. When the shop does not exist, the result is empty with empty_reason shop_not_found and the request is charged as one call; a repeat within 24 hours returns the same result and is charged the same way. Other empty results are not charged.
  - `page` (optional): Page number of the shop's item list, from 1 to 35. With `page`, you get whole Taobao shop pages: usually 60 items per page and fewer on the last. Without `page`, the call is a single fetch of up to 20 items, as before. Each page is billed as one call at the same price; a page past the last one returns an empty result and is not charged, so an empty page means you have reached the end. Taobao lists at most about the first 2,060 items per sort order (page 35), so shops with more items cannot be read in full; another `sort` returns a different part of the catalog. Keep the same `sort` on every page. Rankings update in real time, so neighbouring pages can occasionally repeat a few items; dedupe by `id` when merging pages. A page usually takes 10 to 45 seconds, and up to about 60 seconds when it has to be retried. Sometimes page 1 returns at most the first 20 items; the response then has `partial: true` at the top level and still counts as one billed call. While that happens, page 2 and later return 503 and are not charged; try again later to get the full page.
  - `seller` (optional): Provides a compatibility fallback for the seller's numeric userId in the shop action. It accepts only numeric user IDs, not seller nicknames, and takes lower precedence than shop and user_id.
  - `sort` (optional): Item order when paging with `page`: `popular`, `best_selling` or `sales` by sales (default); `new` or `newly_listed` by newest listing; `price_asc` or `lowest_price` by price, low to high; `price_desc` or `highest_price` by price, high to low. Price orders follow the selling price, while rows carry `original_price` (the struck-through price), so they may not look perfectly ordered. Without `page`, sort is accepted but not guaranteed to take effect. One of: best_selling, highest_price, lowest_price, new, newly_listed, popular, price_asc, price_desc, sales.
  - `user_id` (optional): Provides a compatibility fallback for the seller's numeric userId in the shop action. It takes lower precedence than shop and cannot be used as a product ID.
- Returns fields: id, url, title, original_price, currency, category_id, free_shipping, shop_name, shop_id, seller_id, image_url, shop_url, shop_logo_url, shop_score_description, shop_score_service, shop_score_delivery, shop_item_count, platform
- Capability page: [https://everyinfra.com/en/taobao-api/shop](https://everyinfra.com/en/taobao-api/shop?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/taobao-api/shop.md)

### reviews — Reviews
Read buyer reviews of a Taobao product, up to 100 per call, and page through for more. Each review has rating, variant bought, helpful votes, photos, follow-up review and seller reply. Pass the item ID, a product link or share text with one product link. The batch may not include every review.
- Sync delivery · Price: $5.56 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 20 rows.
- Parameters:
  - `url` (required): For product_detail, reviews, or questions, use a numeric item ID, a Taobao/Tmall product URL, or a share message containing exactly one product URL. e.tb.cn and m.tb.cn links work only when they can be safely resolved to a product page. TaoPassword-only tokens, expired links, and non-product pages are rejected.
  - `page` (optional): Page number of the item's reviews, from 1 to 50, newest first by default (in overall order with `sort=recommended`), usually 20 reviews per page and fewer on the last. With `page`, you get that whole page directly and `limit` has no effect; without it, paging starts at page 1 as before and continues with `next_page_token`. Each page is billed as one call; a page past the last one returns an empty result and is not charged. Taobao shows at most the first 1,000 reviews of an item (page 50), so pages above 50 are rejected before charging. `pagination.has_more` true means there is a next page: ask for `page` + 1, or pass `next_page_token` back as `page_token`. When both `page` and `page_token` are sent, `page_token` wins. If new reviews arrive while you page, neighbouring pages can repeat a review or two, so dedupe by review `id` when merging.
  - `page_token` (optional): Page token. Leave it out for the first page. When the response has a `next_page_token`, pass it back as `page_token`, exactly as received, to get the next page, with the other parameters unchanged (`limit` can change). You can also skip the token and ask for a page number with `page`; when both are sent, `page_token` wins. A token is valid for 24 hours and works only for the same product and the same account; a token used with another product is rejected with 422 and not charged. No `next_page_token` (or `pagination.has_more` false) means you have reached the end. Each page returns `limit` reviews (default 20, up to 100), and the next page continues after the last review returned. Reviews are newest first; if new reviews arrive while you page, neighbouring pages can repeat a review or two, so dedupe by review `id` when merging. Each page is billed on its own by its row count, one call per 20 rows (20 rows is one call, 21–40 is two, 100 is five); calls not used because fewer rows came back are refunded, and an empty page is not charged.
  - `sort` (optional): Review order; applies to `reviews` only. `newest` (default; used when omitted) puts the latest reviews first, and `recommended` uses the same "overall" order as the reviews on a Taobao product page. Any other value is rejected before charging (422, no charge). Price and billing are unchanged, and calls without `sort` return the same results as before.
- Returns fields: id, text, rating, rating_scale, posted_at, sku, buy_count, useful_count, author_name, author_avatar_url, images, review_append, platform, next_page_token, seller_reply
- Capability page: [https://everyinfra.com/en/taobao-api/reviews](https://everyinfra.com/en/taobao-api/reviews?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/taobao-api/reviews.md)

### questions — Questions
Pull the buyer questions and answers on a Taobao product page, with the answer count and posting date for each question. `answer_count` can differ from the answers returned, and answers are not guaranteed to come from the seller.
- Sync delivery · Price: $8 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is billed by its row count, one call per 10 rows.
- Parameters:
  - `url` (required): For product_detail, reviews, or questions, use a numeric item ID, a Taobao/Tmall product URL, or a share message containing exactly one product URL. e.tb.cn and m.tb.cn links work only when they can be safely resolved to a product page. TaoPassword-only tokens, expired links, and non-product pages are rejected.
  - `page` (optional): Page number of the item's buyer questions, from 1 to 50, 10 questions per page and fewer on the last. With `page`, you get that whole page directly and `limit` has no effect; without it, paging starts at page 1 and continues with `next_page_token`. A `page` request is billed as one call at the same price, and a page past the last one is not charged. `pagination.has_more` true means there is a next page: ask for `page` + 1, or pass `next_page_token` back as `page_token`. When both `page` and `page_token` are sent, `page_token` wins. Dedupe by question `id` when merging pages.
  - `page_token` (optional): Page token. Leave it out for the first page; when the response has `next_page_token`, pass it back unchanged as `page_token` for the next batch, with the other parameters unchanged (`limit` may change). The next batch starts right after the last question of the previous call. You can also send `page` for a given page instead (see `page`); when both are sent, `page_token` wins. A call usually returns 10 to 20 questions: Taobao serves 10 per page and a larger `limit` adds pages while time allows, so `limit` (up to 100) is a ceiling, not a guaranteed count; keep paging for more. Tokens last 24 hours and work only for the same item and account; a different item is rejected (422, no charge). No `next_page_token` (`pagination.has_more` is false) means you have reached the end. Billing is unchanged: each 10 questions returned count as one call (1 to 10 questions is one call), charged up front by `limit` with unused calls refunded. `answers` holds only the sample answers Taobao shows with each question, not every answer; `answer_count` is the question's total number of answers.
- Returns fields: id, url, text, answer_count, posted_at, answers, platform, next_page_token
- Capability page: [https://everyinfra.com/en/taobao-api/questions](https://everyinfra.com/en/taobao-api/questions?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/taobao-api/questions.md)

## Taobao API questions

### What can I retrieve with the Taobao API?

Set `platform` to `taobao`. The current catalog lists search, product details, shop, reviews, and questions. These action names identify different Taobao objects or views; they are not interchangeable search modes.

### Does Taobao have an official API?

Taobao Open Platform serves software vendors, service partners and brands that build tools for Taobao and Tmall merchants. Store data such as products and orders is read with an access token the seller grants by authorizing the app, and buyer-facing apps get the Taobao affiliate (Taobaoke) product APIs instead.

Official sources (checked 2026-10-16): [Taobao Open Platform: introduction](https://open.taobao.com/doc.htm?docId=73&docType=1) · [Taobao Open Platform: integration guide](https://open.taobao.com/doc.htm?docId=101710&docType=1)

### Do I need a Taobao developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Taobao developer app, apply for Taobao API access or sign in with a Taobao account, and the actions return public Taobao data only.

### How much does the Taobao API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### Which input starts the Taobao `search` request?

Specifies the Taobao or Tmall product search term for the search action. It does not perform an exact search by store name. Send it as `keyword` inside `params`.

### Which fields can Taobao `search` return?

Its declared schema includes `title`, `price`, `currency`, and `price_basis`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Taobao action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=taobao
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
