0
点赞
收藏
分享

微信扫一扫

淘宝/天猫获得淘宝分类详情 API


taobao.cat_get


公共参数

名称

类型

必须

描述

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版本


请求参数

请求参数:cid=16

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

返回数据:

{
	"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:1 max:10000 all[77=1+0+76];expires:2030-10-30",
	"execution_time": "0.069",
	"server_time": "Beijing/2024-01-17 09:33:17",
	"client_ip": "182.108.170.218",
	"call_args": [],
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "0.82MB",
	"request_id": "gw-4.65a72e5d13d24",
	"last_id": "2476363784"
}

举报

相关推荐

0 条评论