• 关于获得淘宝商品评论的那些事


    item_review-获得淘宝商品评论  注册开通

    onebound.taobao.item_review

    公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中)
    secretString调用密钥
    api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
    cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
    result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
    langString[cn,en,ru]翻译语言,默认cn简体中文
    versionStringAPI版本

    请求参数

    请求参数:num_iid=654004674625&data=&page=1

    参数说明:num_iid:淘宝商品ID
    sort:排序 0:默认排序 ,1: 最新排序

    响应参数

    Version: Date:

    名称类型必须示例值描述
    rate_contentString0评论内容
    rate_dateDate0评论日期
    picsMIX0评论图片
    display_user_nickString0买家昵称
    auction_skuString0评论商品属性
    rate_idString0评论ID
    add_feedbackString0追评内容
    add_feedback_imagesMIX0追评图片
    videoString0视频地址
    videoCoverString0视频截图

    请求示例

    1. -- 请求示例 url 默认请求参数已经URL编码处理
    2. curl -i "https://api-gw.onebound.cn/taobao/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=654004674625&data=&page=1"

    响应示例

    1. "items": {
    2. "totalpage": "57",
    3. "total_results": "1140",
    4. "page_size": 10,
    5. "page": "1",
    6. "item": [
    7. {
    8. "rate_content": "此用户没有填写评价。",
    9. "rate_date": "2022-09-02",
    10. "pics": [],
    11. "display_user_nick": "",
    12. "auction_sku": "套餐类型:套餐一;颜色分类:白色",
    13. "add_feedback": "",
    14. "add_feedback_images": [],
    15. "create_time_interval": "1小时前",
    16. "read_count": "0",
    17. "rate_id": "1185508480324",
    18. "comment_count": "0",
    19. "like_count": [],
    20. "user_star": "2",
    21. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01CNstjx25mCBct4Rc6_!!6000000007568-2-tps-92-45.png"
    22. },
    23. {
    24. "rate_content": "此用户没有填写评价。",
    25. "rate_date": "2022-08-28",
    26. "pics": [],
    27. "display_user_nick": "",
    28. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    29. "add_feedback": "",
    30. "add_feedback_images": [],
    31. "create_time_interval": "5天前",
    32. "read_count": "0",
    33. "rate_id": "1185428497822",
    34. "comment_count": "0",
    35. "like_count": [],
    36. "user_star": "9",
    37. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01PIYxrZ22FGrmiDphN_!!6000000007090-2-tps-92-45.png"
    38. },
    39. {
    40. "rate_content": "****,耳机充不了电!充电仓不存电,反正一堆问题!花钱买教训,客服还踢皮球我刚买的就充不了电了叫我找售后!",
    41. "rate_date": "2022-08-27",
    42. "pics": [],
    43. "display_user_nick": "",
    44. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    45. "add_feedback": "你在淘宝买条裤子,发现裤子上有个洞!商家会叫你找修裤脚的补吗?",
    46. "add_feedback_images": [],
    47. "create_time_interval": "6天前",
    48. "read_count": "0",
    49. "rate_id": "1186009839014",
    50. "comment_count": "0",
    51. "like_count": [],
    52. "user_star": "6",
    53. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
    54. },
    55. {
    56. "rate_content": "外观材质:质量挺好的,音质也蛮清晰,性价比高,物流也很快 ",
    57. "rate_date": "2022-08-25",
    58. "pics": [],
    59. "display_user_nick": "",
    60. "auction_sku": "套餐类型:官方标配;颜色分类:白色",
    61. "add_feedback": "右耳一直连不上,联系客服搞了好几天快一个星期了,到现在都没有重新跟我发新货",
    62. "add_feedback_images": [],
    63. "create_time_interval": "7天前",
    64. "read_count": "0",
    65. "rate_id": "1185197877910",
    66. "comment_count": "0",
    67. "like_count": [],
    68. "user_star": "2",
    69. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN014ujwU11R6tqL7WeQH_!!6000000002063-2-tps-92-45.png"
    70. },
    71. {
    72. "rate_content": "此用户没有填写评价。",
    73. "rate_date": "2022-08-24",
    74. "pics": [],
    75. "display_user_nick": "",
    76. "auction_sku": "套餐类型:官方标配;颜色分类:白色",
    77. "add_feedback": "",
    78. "add_feedback_images": [],
    79. "create_time_interval": "9天前",
    80. "read_count": "0",
    81. "rate_id": "1185078969168",
    82. "comment_count": "0",
    83. "like_count": [],
    84. "user_star": "4",
    85. "user_star_pic": "https://img.alicdn.com/imgextra/i1/O1CN01Bm9gkz1yASEqBM8xQ_!!6000000006538-2-tps-92-45.png"
    86. },
    87. {
    88. "rate_content": "此用户没有填写评价。",
    89. "rate_date": "2022-08-23",
    90. "pics": [],
    91. "display_user_nick": "",
    92. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    93. "add_feedback": "",
    94. "add_feedback_images": [],
    95. "create_time_interval": "10天前",
    96. "read_count": "0",
    97. "rate_id": "1185702575908",
    98. "comment_count": "0",
    99. "like_count": [],
    100. "user_star": "6",
    101. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
    102. },
    103. {
    104. "rate_content": "此用户没有填写评价。",
    105. "rate_date": "2022-08-21",
    106. "pics": [],
    107. "display_user_nick": "",
    108. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    109. "add_feedback": "",
    110. "add_feedback_images": [],
    111. "create_time_interval": "11天前",
    112. "read_count": "0",
    113. "rate_id": "1185535743206",
    114. "comment_count": "0",
    115. "like_count": [],
    116. "user_star": "6",
    117. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
    118. },
    119. {
    120. "rate_content": "纯纯的垃圾,本来看价格不像是假货,买回来充电盒电量只够充一次耳机,右耳按键松动,两个耳机不定时连不上蓝牙,建议去京东买,别来淘宝垃圾铺逛",
    121. "rate_date": "2022-08-20",
    122. "pics": [],
    123. "display_user_nick": "",
    124. "auction_sku": "套餐类型:套餐一;颜色分类:黑色",
    125. "add_feedback": "",
    126. "add_feedback_images": [],
    127. "create_time_interval": "12天前",
    128. "read_count": "7",
    129. "rate_id": "1184781493311",
    130. "comment_count": "1",
    131. "like_count": "3",
    132. "user_star": "6",
    133. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
    134. },
    135. {
    136. "rate_content": "此用户没有填写评价。",
    137. "rate_date": "2022-08-19",
    138. "pics": [],
    139. "display_user_nick": "",
    140. "auction_sku": "套餐类型:套餐一;颜色分类:白色",
    141. "add_feedback": "",
    142. "add_feedback_images": [],
    143. "create_time_interval": "14天前",
    144. "read_count": "0",
    145. "rate_id": "1185354307853",
    146. "comment_count": "0",
    147. "like_count": [],
    148. "user_star": "5",
    149. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
    150. },
    151. {
    152. "rate_content": "此用户没有填写评价。",
    153. "rate_date": "2022-08-18",
    154. "pics": [],
    155. "display_user_nick": "",
    156. "auction_sku": "套餐类型:官方标配;颜色分类:白色",
    157. "add_feedback": "",
    158. "add_feedback_images": [],
    159. "create_time_interval": "15天前",
    160. "read_count": "0",
    161. "rate_id": "1184161800637",
    162. "comment_count": "0",
    163. "like_count": [],
    164. "user_star": "8",
    165. "user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
    166. },
    167. {
    168. "rate_content": "此用户没有填写评价。",
    169. "rate_date": "2022-08-18",
    170. "pics": [],
    171. "display_user_nick": "",
    172. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    173. "add_feedback": "",
    174. "add_feedback_images": [],
    175. "create_time_interval": "15天前",
    176. "read_count": "0",
    177. "rate_id": "1185241931047",
    178. "comment_count": "0",
    179. "like_count": [],
    180. "user_star": "7",
    181. "user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
    182. },
    183. {
    184. "rate_content": "音资很差,充电仓还是坏的。摸起来和我一起在小米商城买的差很多,",
    185. "rate_date": "2022-08-17",
    186. "pics": [],
    187. "display_user_nick": "",
    188. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    189. "add_feedback": "",
    190. "add_feedback_images": [],
    191. "create_time_interval": "16天前",
    192. "read_count": "0",
    193. "rate_id": "1185144015713",
    194. "comment_count": "0",
    195. "like_count": [],
    196. "user_star": "5",
    197. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
    198. },
    199. {
    200. "rate_content": "我给一百个差评,***,给我发了一个充不了电的,后面让我给寄回去换,寄出去了又要这个,那个的,我哪里能找的到,最后啥也没有了,坏的也没有了,* 太**了 ",
    201. "rate_date": "2022-08-16",
    202. "pics": [
    203. "//img.alicdn.com/imgextra/i4/0/O1CN01SCTUH428cWgdgljby_!!0-rate.jpg"
    204. ],
    205. "display_user_nick": "",
    206. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    207. "add_feedback": "第一遇到这样的****",
    208. "add_feedback_images": [],
    209. "create_time_interval": "17天前",
    210. "read_count": "7",
    211. "rate_id": "1184379989706",
    212. "comment_count": "0",
    213. "like_count": [],
    214. "user_star": "3",
    215. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01CNstjx25mCBct4Rc6_!!6000000007568-2-tps-92-45.png"
    216. },
    217. {
    218. "rate_content": "音质极差,怀疑是假货,而且退换货物流极慢,客服也一直在敷衍了事",
    219. "rate_date": "2022-08-13",
    220. "pics": [],
    221. "display_user_nick": "",
    222. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    223. "add_feedback": "",
    224. "add_feedback_images": [],
    225. "create_time_interval": "20天前",
    226. "read_count": "4",
    227. "rate_id": "1184078841917",
    228. "comment_count": "1",
    229. "like_count": [],
    230. "user_star": "5",
    231. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
    232. },
    233. {
    234. "rate_content": "此用户没有填写评价。",
    235. "rate_date": "2022-08-12",
    236. "pics": [],
    237. "display_user_nick": "",
    238. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    239. "add_feedback": "",
    240. "add_feedback_images": [],
    241. "create_time_interval": "20天前",
    242. "read_count": "0",
    243. "rate_id": "1184773259164",
    244. "comment_count": "0",
    245. "like_count": [],
    246. "user_star": "7",
    247. "user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
    248. },
    249. {
    250. "rate_content": "此用户没有填写评价。",
    251. "rate_date": "2022-08-09",
    252. "pics": [],
    253. "display_user_nick": "",
    254. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    255. "add_feedback": "",
    256. "add_feedback_images": [],
    257. "create_time_interval": "23天前",
    258. "read_count": "0",
    259. "rate_id": "1184171154602",
    260. "comment_count": "0",
    261. "like_count": [],
    262. "user_star": "8",
    263. "user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
    264. },
    265. {
    266. "rate_content": "我买的airdots,结果发来个air2se,跟客服沟通一直车轱辘话。不给退,不给换,还要我自己承担邮费,商品链接上图片都是airdots,结果链接给换成了se。还说是买家的责任没看清。我一再忍让,不行了,认可不退货我也要差评。",
    267. "rate_date": "2022-08-09",
    268. "pics": [
    269. "//img.alicdn.com/imgextra/i3/0/O1CN01SIuKBj1Ot2dsclwkF_!!0-rate.jpg",
    270. "//img.alicdn.com/imgextra/i2/0/O1CN01Pv35zp1Ot2drn1j30_!!0-rate.jpg",
    271. "//img.alicdn.com/imgextra/i1/0/O1CN01FDRX4v1Ot2dl59bH6_!!0-rate.jpg"
    272. ],
    273. "display_user_nick": "",
    274. "auction_sku": "套餐类型:官方标配;颜色分类:白色",
    275. "add_feedback": "",
    276. "add_feedback_images": [],
    277. "create_time_interval": "23天前",
    278. "read_count": "77",
    279. "rate_id": "1184485543572",
    280. "comment_count": "0",
    281. "like_count": "1",
    282. "user_star": "5",
    283. "user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
    284. },
    285. {
    286. "rate_content": "此用户没有填写评价。",
    287. "rate_date": "2022-08-09",
    288. "pics": [],
    289. "display_user_nick": "",
    290. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    291. "add_feedback": "",
    292. "add_feedback_images": [],
    293. "create_time_interval": "24天前",
    294. "read_count": "0",
    295. "rate_id": "1183726593769",
    296. "comment_count": "0",
    297. "like_count": [],
    298. "user_star": "9",
    299. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01PIYxrZ22FGrmiDphN_!!6000000007090-2-tps-92-45.png"
    300. },
    301. {
    302. "rate_content": "音质特别差,很嘈杂,听歌一直断断续续,物流把盒子压的不成样,简直就是个坑。",
    303. "rate_date": "2022-08-08",
    304. "pics": [],
    305. "display_user_nick": "",
    306. "auction_sku": "套餐类型:官方标配;颜色分类:黑色",
    307. "add_feedback": "",
    308. "add_feedback_images": [],
    309. "create_time_interval": "24天前",
    310. "read_count": "0",
    311. "rate_id": "1183705965349",
    312. "comment_count": "0",
    313. "like_count": [],
    314. "user_star": "0",
    315. "user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01NWIAh91b4k8Wrq3fW_!!6000000003412-2-tps-92-45.png"
    316. },
    317. {
    318. "rate_content": "此用户没有填写评价。",
    319. "rate_date": "2022-08-08",
    320. "pics": [],
    321. "display_user_nick": "",
    322. "auction_sku": "套餐类型:官方标配;颜色分类:白色",
    323. "add_feedback": "****,发货东西不全,售后不管,大家别受骗了",
    324. "add_feedback_images": [],
    325. "create_time_interval": "24天前",
    326. "read_count": "0",
    327. "rate_id": "1183972636739",
    328. "comment_count": "0",
    329. "like_count": [],
    330. "user_star": "6",
    331. "user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
    332. }
    333. ],
    334. "data_from": "xdl"
    335. },
    336. "secache": "050b5cf3c41983c01d28570eb6b4fe08",
    337. "secache_time": 1662103600,
    338. "secache_date": "2022-09-02 15:26:40",
    339. "translate_status": "",
    340. "translate_time": 0,
    341. "language": {
    342. "default_lang": "cn",
    343. "current_lang": "cn"
    344. },
    345. "error": "",
    346. "reason": "",
    347. "error_code": "0000",
    348. "cache": 0,
    349. "api_info": "today:125 max:10100 all[332=125+145+62];expires:2030-12-31",
    350. "execution_time": "0.956",
    351. "server_time": "Beijing/2022-09-02 15:26:40",
    352. "client_ip": "106.6.35.69",
    353. "call_args": {
    354. "num_iid": "654004674625",
    355. "page": "1"
    356. },
    357. "api_type": "taobao",
    358. "translate_language": "zh-CN",
    359. "translate_engine": "baidu_api",
    360. "server_memory": "5.96MB",
    361. "request_id": "gw-3.6311b02f76175",
    362. "last_id": "1190736077"
    363. }

    异常示例相关资料错误码解释

    状态代码(error_code)状态信息详细描述是否收费
    0000success接口调用成功并返回相关数据
    2000Search success but no result接口访问成功,但是搜索没有结果
    4000Server internal error服务器内部错误
    4001Network error网络错误
    4002Target server error目标服务器错误
    4003Param error用户输入参数错误忽略
    4004Account not found用户帐号不存在忽略
    4005Invalid authentication credentials授权失败忽略
    4006API stopped您的当前API已停用忽略
    4007Account stopped您的账户已停用忽略
    4008API rate limit exceeded并发已达上限忽略
    4009API maintenanceAPI维护中忽略
    4010API not found with these valuesAPI不存在忽略
    4012Please add api first请先添加api忽略
    4013Number of calls exceeded调用次数超限忽略
    4014Missing url param参数缺失忽略
    4015Wrong pageToken参数pageToken有误忽略
    4016Insufficient balance余额不足忽略
    4017timeout error请求超时
    5000unknown error未知错误
  • 相关阅读:
    矩阵分解PCA,SVD
    听说大家很感兴趣玮子的学习心得,采访来了
    操作系统-死锁,锁
    Raft 协议
    深入浅出Dart》函数
    [python]python监听、操作键盘鼠标库pynput详细教程
    49位主播带货破亿,单品直播销量100万+,9月的黑马都是谁?
    《攻守道》笔记(3)
    Liunx C运算符
    文献阅读-图文匹配的相似性推理和过滤
  • 原文地址:https://blog.csdn.net/Noah_ZX/article/details/126664347