1688商品评论API接口-item_review-获得1688商品评论API接口
一、1688商品评论API接口-(item_review-获得1688商品评论API接口)代码对接如下:
1.公共参数
名称 |
类型 |
必须 |
描述 |
key |
String |
是 |
调用key(必须以GET方式拼接在URL中) |
secret |
String |
是 |
调用密钥 (点击获取测试key和secret ) |
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=612398037607&user_id=3838217801&nick=浙江祥珑科技
参数说明:num_iid:1688商品ID
user_id卖家id
nick卖家昵称
3.响应参数
名称 |
类型 |
必须 |
示例值 |
描述 |
items |
items[] |
0 |
商品评论数据 |
|
num_iid |
String |
0 |
612398037607 |
商品ID |
total_results |
String |
0 |
10 |
货品评分 |
detail_url |
String |
0 |
评论链接 |
|
item |
item[] |
0 |
||
content |
String |
0 |
好评 |
评论内容 |
explanation |
Mix |
0 |
||
gmtExplanation |
Mix |
0 |
||
gmtPublished |
String |
0 |
2020-08-29 19:06:39 |
评论时间 |
isSystemRemark |
Mix |
0 |
||
isTaobaoMember |
Mix |
0 |
||
levelImg |
String |
0 |
https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png |
评论图片 |
quantity |
Float |
0 |
1.0 |
库存 |
raterUserNick |
String |
0 |
r**1 |
旺旺名 |
specInfo |
String |
0 |
颜色:可爱喵 3米延长线 |
购买的商品规格 |
starLevel |
String |
0 |
5 |
评分等级 |
unit |
String |
0 |
个 |
单位 |
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://wx19970108018/1688/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=612398037607&user_id=3838217801&nick=浙江祥珑科技"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
5.响应示例:
{
"items": {
"num_iid": "612398037607",
"total_results": "10 ",
"rate_average": "5.0",
"good_percent": "好评率100%",
"detail_url": "https://rate2.m.1688.com/page/rateListForOffer.html?offerId=612398037607&sellerLoginId=浙江祥珑科技&offerScene=dsc",
"item": [
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-08-29 19:06:39",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "1.0",
"raterUserNick": "r**1",
"specInfo": "颜色:可爱喵 3米延长线",
"starLevel": "5",
"unit": "个"
},
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-08-02 10:43:27",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "1.0",
"raterUserNick": "r**1",
"specInfo": "颜色:萌小黄 定时线",
"starLevel": "5",
"unit": "个"
},
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-07-21 21:30:12",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "1.0",
"raterUserNick": "r**1",
"specInfo": "颜色:饭团 3米延长线",
"starLevel": "5",
"unit": "个"
},
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-07-07 00:04:41",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "2.0",
"raterUserNick": "r**1",
"specInfo": "颜色:萌小黄 3米延长线|颜色:萌大白 3米延长线",
"starLevel": "5",
"unit": "个"
},
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-06-19 10:36:17",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "1.0",
"raterUserNick": "r**1",
"specInfo": "颜色:萌大白",
"starLevel": "5",
"unit": "个"
},
{
"content": "好评。",
"explanation": null,
"gmtExplanation": null,
"gmtPublished": "2020-06-19 10:36:03",
"isSystemRemark": "false",
"isTaobaoMember": "1",
"levelImg": "https://gw.alicdn.com/tfs/TB1HlZKoAcx_u4jSZFlXXXnUFXa-60-39.png",
"quantity": "1.0",
"raterUserNick": "r**1",
"specInfo": "颜色:萌大白 定时线",
"starLevel": "5",
"unit": "个"
}
],
"data_from": "1688app"
},
"secache": "4eafb7d1ba85181a0f9fa8e658351f5c",
"secache_time": 1649993685,
"secache_date": "2022-04-15 11:34:45",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:9 max:11000",
"execution_time": "3.592",
"server_time": "Beijing/2022-04-15 11:34:45",
"client_ip": "106.6.33.38",
"call_args": {
"num_iid": "612398037607",
"data": "3838217801",
"page": "浙江祥珑科技"
},
"api_type": "1688",
"translate_language": "zh-CN",
"translate_engine": "谷歌_new",
"server_memory": "0.76MB",
"request_id": "gw-4.6258e7d1b5595",
"last_id": "885798952"}
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhibgibi
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
excel下划线不显示怎么办
PHP中文网 06-23 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
微信运动停用后别人还能看到步数吗
PHP中文网 07-22 -
excel打印预览压线压字怎么办
PHP中文网 06-22