淘宝/天猫按分类搜索淘宝直播接口 API 使用说明

item_videolist-按分类搜索淘宝直播接口 [查看演示] API测试工具 注册开通

onebound.taobao.item_videolist

公共参数

请求地址: https://api-gw.onebound.cn/taobao/item_videolist

名称 类型 必须 描述
key String 调用key(必须以GET方式拼接在URL中)
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版本

请求参数

请求参数:channelId=0&page=1

参数说明:channelId:视频分类ID
page页数

响应参数

Version: Date:

名称 类型 必须 示例值 描述

title

String 0 年货盛宴 心意之选 商品标题

num_iid

Bigint 0 294846800380 宝贝ID

view_count

Int 0 890 观看人数

pic_url

String 0 https://gw.alicdn.com/tfscom/i1/O1CN019WuTCM1WkoKlZhTPU_!!0-dgshop.jpg 宝贝图片

detail_url

String 0 //h5.m.taobao.com/taolive/video.html?id=294846800380 宝贝链接

seller_info

Mix 0 {"user_num_id": 2064892827, "head_img": "//img.alicdn.com/imgextra/i4/2064892827/O1CN01FQoRJd1WkoJuNhJOw_!!2064892827-0-beehive-scenes.jpg", "seller_nick": "雅诗兰黛旗舰店"} 卖家信息

请求示例

  • Curl
  • PHP
  • PHPsdk
  • JAVA
  • C#
  • Python
	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/taobao/item_videolist/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&channelId=0&page=1"

响应示例

{
		"items": {
		"channel_id": 0,
		"page": "5",
		"page_size": 10,
		"real_total_results": 1000,
		"total_results": 1000,
		"page_count": 100,
		"data_from": "app",
		"item": [
			{
				"title": "有温度的小石头",
				"num_iid": "295999018811",
				"view_count": "215",
				"pic_url": "https://img.alicdn.com/imgextra/i1/6000000006651/O1CN01G4pLtF1z0CtBZSU7F_!!6000000006651-0-tblive.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295999018811",
				"seller_info": {
					"user_num_id": "59632",
					"head_img": "//img.alicdn.com/imgextra/i3/6000000006633/O1CN01Qb05DO1yrxklqRO7j_!!6000000006633-0-tblive.jpg",
					"seller_nick": "善石柏缘"
				}
			},
			{
				"title": "小玩通的直播间",
				"num_iid": "295408948484",
				"view_count": "10",
				"pic_url": "https://img.alicdn.com/imgextra/i2/O1CN01v5Ks0Z1wsIoMjVn0m_!!0-tbCommonAudio.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295408948484",
				"seller_info": {
					"user_num_id": "254632",
					"head_img": "//gdp.alicdn.com/shop-logo//11/68/TB1cQ9JLrrpK1RjSZTESuwWAVXa.jpg",
					"seller_nick": "小哈香水严选"
				}
			},
			{
				"title": "新年囤好货新店大酬宾",
				"num_iid": "295773049663",
				"view_count": "12",
				"pic_url": "https://gw.alicdn.com/tfscom/i1/O1CN010Y9BYE1al305W4aex_!!0-dgshop.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295773049663",
				"seller_info": {
					"user_num_id": "403369",
					"head_img": "//gdp.alicdn.com/shop-logo//45/42/TB15C2n3uL2gK0jSZFmwu37iXXa.png",
					"seller_nick": "家乡好优选"
				}
			},
			{
				"title": "年货福利来啦",
				"num_iid": "296049354114",
				"view_count": "500",
				"pic_url": "https://img.alicdn.com/imgextra/i1/O1CN01xTxskf1CfVQlLcAhd_!!0-tbCommonAudio.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=296049354114",
				"seller_info": {
					"user_num_id": "1148032",
					"head_img": "//img.alicdn.com/imgextra/i4/1148032/TB2_2Tzzv5TBuNjSspmXXaDRVXa_!!1148032-0-beehive-scenes.jpg",
					"seller_nick": "港仔先生"
				}
			},
			{
				"title": "大码女靴断码特价处理",
				"num_iid": "296024138273",
				"view_count": "291",
				"pic_url": "https://gw.alicdn.com/tfscom/i1/O1CN01TS0ijV1jceHIogR40_!!0-dgshop.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=296024138273",
				"seller_info": {
					"user_num_id": "1264569",
					"head_img": "//gdp.alicdn.com/shop-logo//dc/5b/TB1Y1L7SpXXXXXHXXXXSutbFXXX.jpg",
					"seller_nick": "王小妖大码女鞋"
				}
			},
			{
				"title": "各店的300-130",
				"num_iid": "296254443199",
				"view_count": "4228",
				"pic_url": "https://gw.alicdn.com/tfscom/i1/O1CN01UZHHAP1CqUw7GNmz0_!!0-dgshop.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=296254443199",
				"seller_info": {
					"user_num_id": "10820132",
					"head_img": "//img.alicdn.com/imgextra/i2/6000000006283/O1CN01QYWUUQ1wHf5qtd07i_!!6000000006283-0-tblive.jpg",
					"seller_nick": "果爸书书"
				}
			},
			{
				"title": "库茵新品上新",
				"num_iid": "295757777888",
				"view_count": "9307",
				"pic_url": "https://img.alicdn.com/imgextra/i3/6000000005960/O1CN01PYzift1ttjAbTeOvx_!!6000000005960-0-tblive.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295757777888",
				"seller_info": {
					"user_num_id": "27763132",
					"head_img": "//gw2.alicdn.com/tfscom/tuitui/TB1n0d2LXXXXXXFapXXXXXXXXXX",
					"seller_nick": "叭哒女王"
				}
			},
			{
				"title": "zhyt828的直播间",
				"num_iid": "295755881697",
				"view_count": "430",
				"pic_url": "https://img.alicdn.com/imgextra/i3/6000000003073/O1CN017gZnm51YZTkyshbyk_!!6000000003073-0-tblive.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295755881697",
				"seller_info": {
					"user_num_id": "30586132",
					"head_img": "//gdp.alicdn.com/shop-logo//b1/2a/TB10A9RiAyWBuNjy0FpSuussXXa.jpg",
					"seller_nick": "金华佛手"
				}
			},
			{
				"title": "年终大促~T特价场",
				"num_iid": "295440344582",
				"view_count": "560",
				"pic_url": "https://img.alicdn.com/imgextra/i1/O1CN01qnzeQP1FY7tbw0Nnm_!!0-tbCommonAudio.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=295440344582",
				"seller_info": {
					"user_num_id": "36239832",
					"head_img": "//img.alicdn.com/imgextra/i3/36239832/O1CN01syc4oh2MV6iY6dGSv_!!36239832-0-beehive-scenes.jpg",
					"seller_nick": "COSHMIR"
				}
			},
			{
				"title": "新年背新包特惠抢不停",
				"num_iid": "296239047108",
				"view_count": "48",
				"pic_url": "https://gw.alicdn.com/tfscom/i4/O1CN01pjx0gq1YXeBPZifrk_!!0-dgshop.jpg",
				"detail_url": "//h5.m.taobao.com/taolive/video.html?id=296239047108",
				"seller_info": {
					"user_num_id": "36453069",
					"head_img": "//gdp.alicdn.com/shop-logo/https://img.alicdn.com/imgextra/i4/6000000005925/O1CN01D9n0TY1tdhKqfGOYi_!!6000000005925-0-shopmanager.jpg",
					"seller_nick": "宁远包包"
				}
			}
		]
	},
	"error": "",
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:27 max:10000",
	"execution_time": 0.637,
	"server_time": "Beijing/2021-01-20 16:32:35",
	"client_ip": "115.151.186.91",
	"call_args": [],
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "google_cn",
	"server_memory": "5.34MB",
	"request_id": "4.6007eaa2e0364"
	}

 异常示例

{
  "error": "item-not-found",
  "reason": "商品没找到",
  "error_code": "2000",
  "success": 0,
  "cache": 0,
  "api_info": "today:0 max:10000",
  "execution_time": 0.081,
  "server_time": "Beijing/2020-06-10 23:44:00",
  "call_args": [],
  "api_type": "taobao",
  "request_id": "15ee0ffc041242"}

 错误码解释

状态代码(error_code) 状态信息 详细描述 是否收费
0000 success 接口调用成功并返回相关数据
2000 Search success but no result 接口访问成功,但是搜索没有结果
4000 Server internal error 服务器内部错误
4001 Network error 网络错误
4002 Target server error 目标服务器错误
4003 Param error 用户输入参数错误 忽略
4004 Account not found 用户帐号不存在 忽略
4005 Invalid authentication credentials 授权失败 忽略
4006 API stopped 您的当前API已停用 忽略
4007 Account stopped 您的账户已停用 忽略
4008 API rate limit exceeded 并发已达上限 忽略
4009 API maintenance API维护中 忽略
4010 API not found with these values API不存在 忽略
4012 Please add api first 请先添加api 忽略
4013 Number of calls exceeded 调用次数超限 忽略
4014 Missing url param 参数缺失 忽略
4015 Wrong pageToken 参数pageToken有误 忽略
4016 Insufficient balance 余额不足 忽略
4017 timeout error 请求超时
5000 unknown error 未知错误

你可能感兴趣的:(网站搭建,api,api接口,java,前端,开发语言,可用性测试,php)