当前位置:网站首页>淘宝商品评价api接口(item_review-获得淘宝商品评论API接口),天猫商品评论API接口
淘宝商品评价api接口(item_review-获得淘宝商品评论API接口),天猫商品评论API接口
2022-07-04 20:56:00 【wx_1597063760】
淘宝商品评价api接口(item_review-获得淘宝商品评论API接口),天猫商品评论API接口可通过商品id,获取商品评价信息、评价内容、买家秀图片、评论浏览量、评价视频、评价追评等页面上的数据均可以拿到,接口对接如下:
1.公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中,点击获取测试key和secret) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
2.请求参数
请求参数:num_iid=600530677643&data=&page=1
参数说明:num_iid:淘宝商品ID
sort:排序 0:默认排序 ,1: 最新排序
3.响应参数
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
rate_content | String | 0 | 衣服面料很好 穿起来很舒服 衣服挺合适的! | 评论内容 |
rate_date | Date | 0 | 2019-03-16 12:10:24 | 评论日期 |
pics | MIX | 0 | ["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"] | 评论图片 |
display_user_nick | String | 0 | 李***0 | 买家昵称 |
auction_sku | String | 0 | 颜色:白色(加绒);尺码:2XL | 评论商品属性 |
add_feedback | String | 0 | 衣服面料很好 穿起来很舒服 衣服挺合适的! | 追评内容 |
add_feedback_images | MIX | 0 | ["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"] | 追评图片 |
video | String | 0 | http://cloud.video.taobao.com/play/u/416a306c576e44524a75367539493165745863466b513d3d/p/1/d/sd/e/6/t/1/288913501300.mp4 | 视频地址 |
videoCover | String | 0 | https://img.alicdn.com/imgextra/i3/O1CN01cvjYjY28SRpqyDJIN_!!0-tbbala.jpg | 视频截图 |
4.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://vx19970108018/taobao/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=600530677643&data=&page=1"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
5.响应示例
{
code: 200,
msg: "请求成功【success】",
total_results: "53",
data: [
{
feedback: "此用户没有填写评价。",
feedbackDate: "2021-03-14",
reply: "",
userNick: "g**0",
skuId: "4754825839147",
skuMap: {
颜色分类: "标准管理系统"
},
feedPicList: null,
readCount: "0",
video: [],
appendedFeed: []
},
{
feedback: "客服,君君,认真,及时解决问题!厉害,下次还找君君。质保一年,值得拥有!?️??️??️??️???️???️??????????????????????????????????????????????????????????????????????????????????",
feedbackDate: "2021-03-14",
reply: "您的赞赏我们视如珍宝,字字牢记于心。您的肯定让我们的坚持有了意义,我们将继续秉承以用户为本的服务理念,不断提升我们智卡的产品和服务,让您拥有更好的产品体验。您的满意是我们矢志不渝的追求!",
userNick: "易**6",
skuId: "4754825839147",
skuMap: {
颜色分类: "标准管理系统"
},
feedPicList: [
"//img.alicdn.com/imgextra/i3/0/O1CN01R4yTy21CAouF3TyCo_!!0-rate.jpg"
],
readCount: "1",
video: [],
appendedFeed: []
}
]
}
边栏推荐
猜你喜欢
Difference between ApplicationContext and beanfactory (MS)
Application practice | Shuhai supply chain construction of data center based on Apache Doris
Operation of adding material schedule in SolidWorks drawing
Flutter TextField示例
Compréhension approfondie du symbole [langue C]
OMS系统实战的三两事
[early knowledge of activities] list of recent activities of livevideostack
【活动早知道】LiveVideoStack近期活动一览
Analysis of maker education technology in the Internet Era
Analyzing the maker space contained in steam Education
随机推荐
IIC (STM32)
[weekly translation go] how to code in go series articles are online!!
__ init__ () missing 2 required positive arguments
TCP shakes hands three times and waves four times. Do you really understand?
旋变串判断
Jerry's ad series MIDI function description [chapter]
杰理之AD 系列 MIDI 功能说明【篇】
minidom 模塊寫入和解析 XML
How to use concurrentlinkedqueue as a cache queue
Caduceus从未停止创新,去中心化边缘渲染技术让元宇宙不再遥远
[buuctf.reverse] 151_[FlareOn6]DnsChess
Go语言循环语句(第10课中3)
哈希表(Hash Tabel)
学习突围3 - 关于精力
How much is the minimum stock account opening commission? Is it safe to open an account online
Jerry's ad series MIDI function description [chapter]
【C语言】符号的深度理解
输入的查询SQL语句,是如何执行的?
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
Keep on fighting! The city chain technology digital summit was grandly held in Chongqing