itemIdstringbắt buộc
Unique product identifier on Taobao/Tmall (item ID).
https://api.sandbase.ai/v1/api/taobao/item/reviewsGet Taobao and Tmall product reviews by item ID with pagination, sorted by latest or default, for customer feedback analysis.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns customer reviews for a Taobao or Tmall product. It needs the product itemId, and it returns one page of reviews with review text, buyer SKU, photos, and summary counts.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/reviews" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "920640959876"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | Unique product identifier on Taobao/Tmall (item ID). |
orderType | string | No | Sort order for the result set. |
page | integer | No | Page number for pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comments": [
{
"append": null,
"appendCanExplainable": false,
"appendList": [],
"auction": {
"aucNumId": "920640959876",
"auctionPic": "",
"link": "//item.taobao.com/auction/item_detail.htm?item_num_id=920640959876",
"sku": "套餐类型:官方标配;颜色分类:【经典款·BC1lite】星际黑●全景空间音效●舒适佩戴",
"thumbnail": "",
"title": ""
},
"award": "",
"bidPriceMoney": null,
"buyAmount": 0,
"content": "该用户觉得商品非常好,给出5星好评",
"creditFraudRule": 0,
"date": "2026年11月03日 15:28",
"dayAfterConfirm": 0,
"enableSNS": false
}
],
"currentPageNum": 1,
"hasAppendCount": 700,
"hasMediaCount": 2000,
"hasNextPage": true,
"keywords": [
{
"count": "354",
"labelId": "2079958979-11",
"type": "1",
"word": "续航能力强"
}
],
"maxPage": 50,
"qnaDisabled": true,
"total": 20000,
"totalFuzzy": "2万+",
"watershed": 100
}
| Field | Meaning |
|---|---|
comments[].content | Text of the review. |
comments[].date | Review time as a text string, for example 2026年11月03日 15:28. |
comments[].auction.sku | The SKU the buyer purchased, with package type and color options. |
comments[].rateId | Unique ID of the review. |
comments[].photos[].url / comments[].photos[].thumbnail | Links to the full image and the small thumbnail attached to the review. The links start with //. The list is empty when the review has no photos. |
comments[].user.nick | Masked buyer nickname. comments[].user.anony shows whether the review is anonymous. |
comments[].likeCount / comments[].useful | Counts of likes and useful votes on the review. |
keywords[].word / keywords[].count | Review tag text and the number of reviews that mention it. |
total / totalFuzzy | Total number of reviews as a number and as a short text such as 2万+. |
currentPageNum / maxPage / hasNextPage | Pagination state: the current page, the last page number, and whether another page exists. |
page parameter to move through results. Check hasNextPage in each response before you ask for the next page.orderType accepts feedbackdate (default) or general.itemId from the product search or product detail APIs, such as Taobao Product Search or Taobao Product Details.$0.028571 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/reviews" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"itemId": "920640959876",
"orderType": "feedbackdate"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
itemIdstringbắt buộcUnique product identifier on Taobao/Tmall (item ID).
orderTypestringSort order for the result set.
Mặc định: "feedbackdate"
Giá trị có thể dùng: feedbackdate, general
pageintegerPage number for pagination.
Mặc định: 1
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Taobao Product ReviewsAPI này Taobao | $0.028571 mỗi lần gọi | JSON |
Taobao | $0.021429 mỗi lần gọi | JSON |
Taobao | $0.021429 mỗi lần gọi | JSON |
Taobao | $0.021429 mỗi lần gọi | JSON |
Taobao | $0.028571 mỗi lần gọi | JSON |
Taobao | $0.028571 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/taobao/item/reviews với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.028571 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: itemId (string). Tùy chọn: orderType (một trong số feedbackdate, general) và page (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Taobao Product Reviews chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Taobao.