首页 > 其他分享 >API技术分享心得,价格监控,商品评论,示例返回值说明

API技术分享心得,价格监控,商品评论,示例返回值说明

时间:2023-08-01 23:32:39浏览次数:39  
标签:count star feedback 示例 add rate API user 返回值

一、电商API主要功能:

1、API可输出JSON、XML等格式,能够供PHP、JSP等编程语言调用 ;实现如开放平台:taobao.items.get 和taobao.items.search等功能 。 2、电商API支持一下程序MagenTo、ShopEx、ZenCart、OpenCart二次开发调用。 3、Translate API 支持:文本翻译、HTML翻译、批量翻译、目前已经支持二十多种语言。

API接口测试

请求参数

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

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

响应参数

Version: Date:

名称

类型

必须

示例值

描述

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

评论商品属性

rate_id

String

0

1182747118197

评论ID

add_feedback

String

0

衣服面料很好 穿起来很舒服 衣服挺合适的!

追评内容

add_feedback_images

MIX

0

["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"]

追评图片

video

String

0

cloud.video.taobao.com/play/u/416a…

视频地址

videoCover

String

0

img.alicdn.com/imgextra/i3…

视频截图

请求示例

Curl

PHP

PHPsdk

JAVA

C#

Python

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

响应示例

"items": {
		"totalpage": 3,
		"total_results": "60",
		"page_size": 20,
		"page": "1",
		"item": [
			{
				"rate_content": "此用户没有填写评价。",
				"rate_date": "2022-08-28",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "5个月前",
				"read_count": "0",
				"rate_id": "1185790146502",
				"comment_count": "0",
				"like_count": [],
				"user_star": "9",
				"user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01PIYxrZ22FGrmiDphN_!!6000000007090-2-tps-92-45.png"
			},
			{
				"rate_content": "太漂亮了 本来买的时候犹豫很久很久很久 从来没有买过黄色的 觉得不好配衣服也觉得图片一般 犹豫了有一天终于下定决心去买一个试试 结果太太太太让我惊喜了 太漂亮了 很亮鞋子特别舒服 我买的大一点 也很舒服 还挺好配衣服的 后悔就买一双了 现在我家都是她家的鞋子了 绝对的YYDS",
				"rate_date": "2022-08-23",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:36;颜色分类:黄色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "5个月前",
				"read_count": "0",
				"rate_id": "1184973493639",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "鞋子很满意,3号客服棒棒哒,长毛绒也很暖和 ",
				"rate_date": "2021-12-05",
				"pics": [
					"//img.alicdn.com/imgextra/i2/0/O1CN01DD4Zcv1IxGY6IPN73_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i1/0/O1CN0189R9CP1IxGYCdWZyV_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:长毛绒】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "39",
				"rate_id": "1158296533060",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "面料材质:材质有一点点硬,版型不错,整体还凑合,对得起这个价格 ",
				"rate_date": "2021-11-16",
				"pics": [
					"//img.alicdn.com/imgextra/i3/0/O1CN01TrfEtd2M3Ag2ClelC_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:长毛绒】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "165",
				"rate_id": "1155310540482",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "买第二双了,鞋子很漂亮也挺舒服",
				"rate_date": "2021-11-09",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黄色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "1",
				"rate_id": "1154131764289",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "7号客服棒棒哒,鞋子很喜欢,已第三次购买 ",
				"rate_date": "2021-10-31",
				"pics": [
					"//img.alicdn.com/imgextra/i3/0/O1CN01hPcYYn1EzJr4JSAzG_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i1/0/O1CN01Fjvoou25NSkm50Bp2_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i4/0/O1CN01mBc4V91txqplVs6o6_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i3/0/O1CN01YFUXAj1Whbcfv3TRJ_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "245",
				"rate_id": "1153379805402",
				"comment_count": "0",
				"like_count": [],
				"user_star": "5",
				"user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
			},
			{
				"rate_content": "7号客服服务真好,鞋子质量很好,己第二次购买了 ",
				"rate_date": "2021-10-27",
				"pics": [
					"//img.alicdn.com/imgextra/i1/0/O1CN01hMfUsj1yDexza4Eu1_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i2/0/O1CN01BNKARZ1yDexwiXDKc_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i4/0/O1CN01hDGyZC1yDexjAaZ4I_!!0-rate.jpg",
					"//img.alicdn.com/imgextra/i4/0/O1CN01714Xvv1yDexu2mTEB_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "291",
				"rate_id": "1152900593524",
				"comment_count": "0",
				"like_count": "1",
				"user_star": "5",
				"user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
			},
			{
				"rate_content": "去年买过一双一样的,今年看了其他家,还是想复制一下上一双鞋子的快乐。鞋底很软,走路不累,超级百搭,爱了爱了。客服都很耐心,7号客服很棒哈哈~ ",
				"rate_date": "2021-10-20",
				"pics": [
					"//img.alicdn.com/imgextra/i1/0/O1CN01N6n5JO24FqYC9k9mc_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "299",
				"rate_id": "1152874831149",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "2号客服棒棒哒",
				"rate_date": "2021-09-28",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "2",
				"rate_id": "1148841092349",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "此用户没有填写评价。",
				"rate_date": "2021-09-15",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1147688357921",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "7号客服棒棒哒 ",
				"rate_date": "2021-09-13",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "1",
				"rate_id": "1147975534640",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "不错 ",
				"rate_date": "2021-09-13",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1147394085601",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "4号服务态度好,物流速度快。",
				"rate_date": "2021-04-25",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1130396694112",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "之前在实体店买过一双白色的,在网上看到又下单一双黑色,很满意,客服2号和6号服务也不错",
				"rate_date": "2021-04-23",
				"pics": [
					"//img.alicdn.com/imgextra/i4/0/O1CN01lhul4v22e0AX7QO75_!!0-rate.jpg"
				],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "206",
				"rate_id": "1129704857485",
				"comment_count": "1",
				"like_count": [],
				"user_star": "6",
				"user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01QZTjHW1F4oegDvuEX_!!6000000000434-2-tps-92-45.png"
			},
			{
				"rate_content": "穿上挺好看的,戈美琪的鞋子穿了很多双了,质量一直很好,款式也好看好评哦!这次活动力度大,很划算!",
				"rate_date": "2021-04-19",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "2",
				"rate_id": "1129160497439",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "此用户没有填写评价。",
				"rate_date": "2021-04-17",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:38;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1129752431972",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			},
			{
				"rate_content": "此用户没有填写评价。",
				"rate_date": "2021-04-16",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:37;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1129245610801",
				"comment_count": "0",
				"like_count": [],
				"user_star": "5",
				"user_star_pic": "https://img.alicdn.com/imgextra/i2/O1CN01vy8zTE1Zeo5lC6lTQ_!!6000000003220-2-tps-92-45.png"
			},
			{
				"rate_content": "1号客服棒棒哒",
				"rate_date": "2021-04-11",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:39;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1129030951526",
				"comment_count": "0",
				"like_count": [],
				"user_star": "9",
				"user_star_pic": "https://img.alicdn.com/imgextra/i3/O1CN01PIYxrZ22FGrmiDphN_!!6000000007090-2-tps-92-45.png"
			},
			{
				"rate_content": "整体评价:鞋子很舒服,回购的第二双了,喜欢 ",
				"rate_date": "2021-04-07",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:38;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "0",
				"rate_id": "1127252768470",
				"comment_count": "0",
				"like_count": [],
				"user_star": "8",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN019QZnaG1U1LtUAPn6e_!!6000000002457-2-tps-92-45.png"
			},
			{
				"rate_content": "面料材质:摸着很舒服,  舒适度:鞋底很柔软。 现在购买简直就是物美价廉 ",
				"rate_date": "2021-04-06",
				"pics": [],
				"display_user_nick": "",
				"auction_sku": "尺码:38;颜色分类:黑色【内里:超细纤维】",
				"add_feedback": "",
				"add_feedback_images": [],
				"create_time_interval": "1年前",
				"read_count": "2",
				"rate_id": "1127553169073",
				"comment_count": "0",
				"like_count": [],
				"user_star": "7",
				"user_star_pic": "https://img.alicdn.com/imgextra/i4/O1CN01ZlCYMx1nbVriw6u0S_!!6000000005108-2-tps-92-45.png"
			}
		],
		"data_from": "xdl"
	},
	"secache": "c8bde0fb0758d449f9b07cca295d4b61",
	"secache_time": 1675755300,
	"secache_date": "2023-02-07 15:35:00",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:114 max:10100 all[218=114+69+35];expires:2030-12-31",
	"execution_time": "0.978",
	"server_time": "Beijing/2023-02-07 15:35:00",
	"client_ip": "61.131.237.64",
	"call_args": {
		"num_iid": "600530677643",
		"page": "1"
	},
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "0.98MB",
	"request_id": "gw-4.63e1ff231a5ae",
	"last_id": "1530798082"
}

标签:count,star,feedback,示例,add,rate,API,user,返回值
From: https://blog.51cto.com/u_15973577/6930361

相关文章

  • 数据获取系列,1688商品详情API接口
    onebound.1688.item_get公共参数注册Key和secret测试名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)secretString是调用密钥api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]cacheString否[yes,no]默认yes,将调用缓存的数据,速......
  • 多种语言请求【淘宝京东1688拼多多API】平台数据的方式
    首先我们以taobao商品页面采集商品详情数据为例:请求方式:HTTPS POST GET请求地址:API接口请求参数请求参数:num_iid=669646899650&is_promotion=1参数说明:num_iid:淘宝商品IDis_promotion:是否获取取促销价请求示例Python#coding:utf-8"""Compatibleforpython2.xandpyt......
  • 淘宝1688拼多多京东商品详情数据(H5端,PC端)高效对接API接口
    api接口详解大全?优秀的设计是产品变得卓越的原因设计API意味着提供有效的接口,可以帮助API使用者更好地了解、使用和集成,同时帮助人们有效地维护它每个产品都需要使用手册,API也不例外在API领域,可以将设计视为服务器和客户端之间的协议进行建模API协议可以帮助内部和外部的利益相关......
  • 【设计模式】适配器模式Adapter:处理不同 API 接口的兼容性
    (目录)适配器模式适配器模式(AdapterPattern)是作为两个不兼容的接⼝之间的桥梁。这种类型的设计模式属于结构型模式,它结合了两个独⽴接⼝的功能。在某些时候,客户期望获得某种功能接⼝但现有的接⼝⽆法满⾜客户的需求,例如美国的正常供电电压为110V,⼀个中国⼈带了⼀款中国制造......
  • 淘宝京东拼多多抖音淘特1688苏宁等平台商品详情API接口
    商品详情页面数据接口,商品销量接口,关键词搜索商品销量接口,商品APP详情API接口数据代码如下:公共参数请求地址: console.open.onebound.cn/console/?i=…名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)secretString是调用密钥api_nameString是API接口名称(包括在请求地......
  • 淘宝/天猫获得店铺的所有商品 API 返回值说明
    淘宝/天猫API,item_search_shop-获得店铺的所有商品item_search_shop-获得店铺的所有商品获取Key和secret公共参数请求地址: console.open.onebound.cn/console/?i=…名称类型必须示例值描述num_iidBigint0579813460997商品IDpic_urlString0//img.alicdn.com/bao/uploaded/i3/47895......
  • 拼多多获得搜索词统计 API 返回值说明
    拼多多API,获得搜索词统计item_search_data-获得搜索词统计公共参数请求地址: console.open.onebound.cn/console/?i=…请求参数请求参数:keyword=海澜之家&q=&num_iids=&start_price=&end_price=&seller=&page=1&cat=0&sort=&page_size=参数说明:keyword:关键字【必须】响应参数Vers......
  • 淘宝/天猫API,获得淘宝商品快递费用
    item_fee-获得淘宝商品快递费用淘宝/天猫获得淘宝商品快递费用API返回值说明item_fee-获得淘宝商品快递费onebound.taobao.item_fee公共参数请求地址:console.open.onebound.cn/console/?i=…请求参数请求参数:num_iid=572050066584&area_id=152501&sku=0参数说明:num_iid:淘宝商......
  • 淘宝API参数说明,代码数据生成
    对接淘宝常用的API接口为了便于大家使用淘宝API接口,下面列举了对接淘宝常用的API接口,包含商品API、订单API、物流API、库存API,希望对您有所帮助。淘宝/天猫获得淘宝商品详情API返回值说明item_get-获得淘宝商品详情 获取Key和secret请求参数请求参数:num_iid=520813250866&is_pro......
  • 哪些电商平台的 API 很好用?为什么?
    如果你是想看淘宝/天猫商品的获得淘宝商品详情接口,那首先要得到他的接口文档建议使用OneBoundAPIInterfaceTester平台,含有淘宝/天猫、1688、京东、拼多多等几十个电商平台API接口平台地址我们可以选择其中适合自己需求的API接口进行测试,可获得代码生成的数据,参数不明白可以对照A......