商品评价
通过商品ID以分页和可配置排序方式获取淘宝和天猫的商品评价。用于分析客户反馈。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
item_id |
必填 | string | 淘宝/天猫上的唯一商品标识符(商品ID)。 | 782004939709 |
— |
order_type |
可选 | string | 结果集的排序方式。 可用值: - `feedbackdate`:按反馈日期排序 - `general`:通用排序 | feedbackdate |
feedbackdategeneral |
page |
可选 | integer | 用于分页的页码。 | 1 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/taobao/get_item_comment_v3" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'item_id=782004939709' \
--data-urlencode 'order_type=feedbackdate' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/taobao/get_item_comment_v3",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"item_id": "782004939709",
"order_type": "feedbackdate",
"page": "1",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/taobao/get_item_comment_v3");
url.search = new URLSearchParams({
item_id: "782004939709",
order_type: "feedbackdate",
page: "1",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 1261 ms · 请求参数 {"page": "1", "item_id": "782004939709", "order_type": "feedbackdate"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "taobao.get_item_comment_v3",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"total": 100000,
"maxPage": 50,
"comments": [
{
"tag": "",
"date": "2026年11月08日 07:50",
"from": "h5",
"rate": "1",
"user": {
"vip": "",
"nick": "o***1",
"rank": 0,
"anony": true,
"avatar": "https://gw.alicdn.com/imgextra/i3/O1CN01YXMxVW1ng5k8sZ6L3_!!6000000005118-0-tps-160-160.jpg_Q75.jpg_.webp",
"userId": "",
"nickUrl": "",
"rankUrl": "",
"vipLevel": 0,
"creditPic": "",
"displayRatePic": ""
},
"award": "",
"noQna": true,
"reply": null,
"video": null,
"append": null,
"photos": [],
"rateId": 539413122628082,
"status": 0,
"useful": 0,
"auction": {
"sku": "总净含量:32杯;口味:【新风味】太妃榛果风味【18mL*32杯/盒】",
"link": "//item.taobao.com/auction/item_detail.htm?item_num_id=782004939709",
"title": "",
"aucNumId": "782004939709",
"thumbnail": "",
"auctionPic": ""
},
"content": "很不错",
"o2oRate": null,
"vicious": "",
"buyAmount": 0,
"enableSNS": false,
"likeCount": 0,
"raterType": 0,
"shareInfo": {
"pic": 0,
"reply": 0,
"share": false,
"lastReplyTime": "",
"userNumIdBase64": ""
},
"appendList": [],
"showCuIcon": false,
"spuRatting": [],
"validscore": 1,
"mainTradeId": 0,
"serviceRate": null,
"bidPriceMoney": null,
"promotionType": "",
"propertiesAvg": "5",
"lastModifyFrom": 0,
"creditFraudRule": 0,
"dayAfterConfirm": 0,
"showDepositIcon": false,
"appendCanExplainable": false
},
{
"tag": "",
"date": "2026年11月08日 07:50",
"from": "h5",
"rate": "1",
"user": {
"vip": "",
"nick": "o***1",
"rank": 0,
"anony": true,
"avatar": "https://gw.alicdn.com/imgextra/i3/O1CN01YXMxVW1ng5k8sZ6L3_!!6000000005118-0-tps-160-160.jpg_Q75.jpg_.webp",
"userId": "",
"nickUrl": "",
"rankUrl": "",
"vipLevel": 0,
"creditPic": "",
"displayRatePic": ""
},
"award": "",
"noQna": true,
"reply": null,
"video": null,
"append": null,
"photos": [],
"rateId": 3742413664484607,
"status": 0,
"useful": 0,
"auction": {
"sku": "总净含量:32杯;口味:意式黑咖【18mL*32杯/盒】",
"link": "//item.taobao.com/auction/item_detail.htm?item_num_id=782004939709",
"title": "",
"aucNumId": "782004939709",
"thumbnail": "",
"auctionPic": ""
},
"content": "不错",
"o2oRate": null,
"vicious": "",
"buyAmount": 0,
"enableSNS": false,
"likeCount": 0,
"raterType": 0,
"shareInfo": {
"pic": 0,
"reply": 0,
"share": false,
"lastReplyTime": "",
"userNumIdBase64": ""
},
"appendList": [],
"showCuIcon": false,
"spuRatting": [],
"validscore": 1,
"mainTradeId": 0,
"serviceRate": null,
"bidPriceMoney": null,
"promotionType": "",
"propertiesAvg": "5",
"lastModifyFrom": 0,
"creditFraudRule": 0,
"dayAfterConfirm": 0,
"showDepositIcon": false,
"appendCanExplainable": false
},
"… +18"
],
"keywords": [
{
"type": "1",
"word": "第二次购买",
"count": "29",
"labelId": "2045122046-11"
},
{
"type": "1",
"word": "赠杯子",
"count": "372",
"labelId": "2033294196-11"
},
"… +6"
],
"watershed": 100,
"totalFuzzy": "10万+",
"hasNextPage": true,
"qnaDisabled": true,
"hasMediaCount": 1,
"currentPageNum": 1,
"hasAppendCount": 1000
},
"message": null,
"requestId": "76dc6bec62d74d99986cdbd86e9bd907",
"recordTime": "2026-11-08T07:59:30.428979923",
"requestParams": {
"body": null,
"query": {
"page": "1",
"itemId": "782004939709",
"orderType": "feedbackdate"
}
}
}
}