分类详情 API 返回值说明

为了进行此平台API的调用,首先我们需要做下面几件事情。

1、 获取一个KEY。

2、 参考API文档里的接入方式和示例。

3、查看测试工具是否有需要的接口,响应实例的返回字段是否符合参数要求。

4、利用平台的文档中心和API测试工具,对接口进行测试、程序获取。

更多API调用展示以及获取Key和secret请移步

点击获取测试key和secret

公共参数

名称类型必须描述
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版本

请求参数

请求参数:cid=16

参数说明:cid:商品分类ID,可以用cid=0来获得所有一级类目

响应参数

名称类型必须示例值描述

info

Mix0{"cid": 16, "parent_cid": 0, "name": "其他女装", "is_parent": "true", "status": "normal", "sort_order": "0"},分类信息

item

Mix0{"1624": "职业装/工作服/校服", "50000852": "中老年女装", "50008906": "唐装/民族/舞台服装", "50029581": "马夹", "50095935": "仿皮皮衣", "50099705": "大码女装", "50099718": "婚纱/礼服/旗袍"}子分类id:子分类名称

{
	"items": {
		"item": [
			{
				"id": "16",
				"name": "女装/女士精品",
				"pid": "2",
				"root_id": "2",
				"sub": [
					{
						"id": "1622",
						"pid": "16",
						"root_id": "16",
						"name": "裤子",
						"note": ""
					},
					{
						"id": "1623",
						"pid": "16",
						"root_id": "16",
						"name": "半身裙",
						"note": ""
					},
					{
						"id": "1624",
						"pid": "16",
						"root_id": "16",
						"name": "套装/学生校服/工作制服",
						"note": ""
					},
					{
						"id": "1629",
						"pid": "16",
						"root_id": "16",
						"name": "大码女装",
						"note": ""
					},
					{
						"id": "162103",
						"pid": "16",
						"root_id": "16",
						"name": "毛衣",
						"note": ""
					},
					{
						"id": "162104",
						"pid": "16",
						"root_id": "16",
						"name": "衬衫",
						"note": ""
					},
					{
						"id": "162116",
						"pid": "16",
						"root_id": "16",
						"name": "蕾丝衫/雪纺衫",
						"note": ""
					},
					{
						"id": "162205",
						"pid": "16",
						"root_id": "16",
						"name": "牛仔裤",
						"note": ""
					},
					{
						"id": "50000671",
						"pid": "16",
						"root_id": "16",
						"name": "T恤",
						"note": ""
					},
					{
						"id": "50000697",
						"pid": "16",
						"root_id": "16",
						"name": "毛针织衫",
						"note": ""
					},
					{
						"id": "50000852",
						"pid": "16",
						"root_id": "16",
						"name": "中老年女装",
						"note": ""
					},
					{
						"id": "50008897",
						"pid": "16",
						"root_id": "16",
						"name": "西装",
						"note": ""
					},
					{
						"id": "50008898",
						"pid": "16",
						"root_id": "16",
						"name": "卫衣/绒衫",
						"note": ""
					},
					{
						"id": "50008899",
						"pid": "16",
						"root_id": "16",
						"name": "羽绒服",
						"note": ""
					},
					{
						"id": "50008900",
						"pid": "16",
						"root_id": "16",
						"name": "棉衣/棉服",
						"note": ""
					},
					{
						"id": "50008901",
						"pid": "16",
						"root_id": "16",
						"name": "风衣",
						"note": ""
					},
					{
						"id": "50008904",
						"pid": "16",
						"root_id": "16",
						"name": "皮衣",
						"note": ""
					},
					{
						"id": "50008905",
						"pid": "16",
						"root_id": "16",
						"name": "皮草",
						"note": ""
					},
					{
						"id": "50008906",
						"pid": "16",
						"root_id": "16",
						"name": "唐装/民族服装/舞台服装",
						"note": ""
					},
					{
						"id": "50010850",
						"pid": "16",
						"root_id": "16",
						"name": "连衣裙",
						"note": ""
					},
					{
						"id": "50011277",
						"pid": "16",
						"root_id": "16",
						"name": "短外套",
						"note": ""
					},
					{
						"id": "50011404",
						"pid": "16",
						"root_id": "16",
						"name": "婚纱/旗袍/礼服",
						"note": ""
					},
					{
						"id": "50013194",
						"pid": "16",
						"root_id": "16",
						"name": "毛呢外套",
						"note": ""
					},
					{
						"id": "50013196",
						"pid": "16",
						"root_id": "16",
						"name": "马夹",
						"note": ""
					},
					{
						"id": "121412004",
						"pid": "16",
						"root_id": "16",
						"name": "背心吊带",
						"note": ""
					},
					{
						"id": "121434004",
						"pid": "16",
						"root_id": "16",
						"name": "抹胸",
						"note": ""
					},
					{
						"id": "201241307",
						"pid": "16",
						"root_id": "16",
						"name": "POLO衫",
						"note": ""
					},
					{
						"id": "201247207",
						"pid": "16",
						"root_id": "16",
						"name": "连体衣/裤",
						"note": ""
					}
				]
			}
		]
	},
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:53 max:10100 all[102=53+28+21];expires:2030-12-31",
	"execution_time": "0.063",
	"server_time": "Beijing/2023-01-10 14:04:43",
	"client_ip": "106.6.32.188",
	"call_args": [],
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "0.85MB",
	"request_id": "gw-4.63bcfffb1e109",
	"last_id": "1467237654"
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值