快速采集淘宝详情api接口

253 阅读8分钟

API接口名称:item_get - 获得淘宝商品详情

企业微信截图_16620861766137.png

商品详情 API 返回值说明

API 请求参数:

num_iid:淘宝商品ID
is_promotion:是否获取取促销价

API测试工具

响应参数

Version: Date:2022-04-04

名称类型必须示例值描述
itemitem[]1宝贝详情数据

请求示例

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>

API 返回结果

	"item": {
		"num_iid": "673577112865",
		"title": "抽绳束脚灯笼裤男秋季ins高街宽松运动休闲裤美式vintage潮牌裤子",
		"desc_short": "",
		"price": "58",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "89.00",
		"nick": "emeisa旗舰店",
		"num": "200",
		"min_num": 0,
		"detail_url": "https://item.taobao.com/item.htm?id=673577112865",
		"pic_url": "//img.alicdn.com/imgextra/i3/3021585944/O1CN01tpAT6D1tmOy3308Vf_!!3021585944.jpg",
		"brand": "E.MEISA",
		"brandId": "1471065942",
		"rootCatId": "30",
		"cid": "3035",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "",
		"desc_img": [],
		"item_imgs": [
			{
				"url": "//img.alicdn.com/imgextra/i3/3021585944/O1CN01tpAT6D1tmOy3308Vf_!!3021585944.jpg"
			},
			{
				"url": "//img.alicdn.com/imgextra/i1/3021585944/O1CN01LUHDU51tmOy3jiFqv_!!3021585944.jpg"
			},
			{
				"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN011azIQ51tmOyDO92qZ_!!3021585944.jpg"
			},
			{
				"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01RyhCuV1tmOy6AjIAq_!!3021585944.jpg"
			},
			{
				"url": "//img.alicdn.com/imgextra/i1/3021585944/O1CN01Vxu5aE1tmOyDOAJrQ_!!3021585944.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "浙江杭州",
		"post_fee": "  免运费",
		"express_fee": null,
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "true",
		"video": [],
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "true",
		"props_name": "20518:28315:尺码:M;20518:28316:尺码:L;20518:28317:尺码:XL;20518:6145171:尺码:2XL;1627207:28341:颜色:黑色;1627207:3232478:颜色:深灰色;1627207:4266701:颜色:米白色;1627207:21232079977:颜色:尺码推荐-拍了默认发深灰色",
		"prop_imgs": {
			"prop_img": [
				{
					"properties": "1627207:28341",
					"url": "//img.alicdn.com/imgextra/i3/3021585944/O1CN01Kt3Q0P1tmOy6q8qqY_!!3021585944.jpg"
				},
				{
					"properties": "1627207:3232478",
					"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01vt6p3N1tmOy7ubDxK_!!3021585944.jpg"
				},
				{
					"properties": "1627207:4266701",
					"url": "//img.alicdn.com/imgextra/i4/3021585944/O1CN01q5GA0Q1tmOyEZsA9X_!!3021585944.jpg"
				},
				{
					"properties": "1627207:21232079977",
					"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01jGLmrU1tmOy8a0v43_!!3021585944.jpg"
				}
			]
		},
		"property_alias": "",
		"props": [
			{
				"name": "品牌",
				"value": "E.MEISA"
			},
			{
				"name": "尺码",
				"value": "M L XL 2XL"
			},
			{
				"name": "图案",
				"value": "纯色"
			},
			{
				"name": "腰型",
				"value": "中低腰"
			},
			{
				"name": "颜色",
				"value": "黑色 深灰色 米白色 尺码推荐-拍了默认发深灰色"
			},
			{
				"name": "货号",
				"value": "E2135238845"
			},
			{
				"name": "弹力",
				"value": "微弹"
			},
			{
				"name": "细分风格",
				"value": "潮"
			},
			{
				"name": "基础风格",
				"value": "青春流行"
			},
			{
				"name": "品牌类型",
				"value": "时尚潮牌"
			},
			{
				"name": "适用季节",
				"value": "夏季"
			},
			{
				"name": "上市年份季节",
				"value": "2022年夏季"
			},
			{
				"name": "厚薄",
				"value": "薄"
			},
			{
				"name": "适用场景",
				"value": "其他休闲"
			},
			{
				"name": "服装版型",
				"value": "宽松型"
			},
			{
				"name": "工艺处理",
				"value": "免烫处理"
			},
			{
				"name": "适用对象",
				"value": "青少年"
			},
			{
				"name": "裤长",
				"value": "长裤"
			},
			{
				"name": "款式",
				"value": "运动裤"
			},
			{
				"name": "裤脚口款式",
				"value": "束脚"
			},
			{
				"name": "颜色",
				"value": "基础色(黑灰白等)"
			},
			{
				"name": "销售渠道类型",
				"value": "纯电商(只在线上销售)"
			},
			{
				"name": "材质成分",
				"value": "棉85% 聚酯纤维15%"
			}
		],
		"total_sold": "190",
		"skus": {
			"sku": [
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28315;1627207:28341",
					"properties_name": "20518:28315:尺码:M;1627207:28341:颜色:黑色",
					"quantity": "200",
					"sku_id": "4847925896318"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28316;1627207:28341",
					"properties_name": "20518:28316:尺码:L;1627207:28341:颜色:黑色",
					"quantity": "200",
					"sku_id": "4847925896319"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28317;1627207:28341",
					"properties_name": "20518:28317:尺码:XL;1627207:28341:颜色:黑色",
					"quantity": "200",
					"sku_id": "4847925896320"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:6145171;1627207:28341",
					"properties_name": "20518:6145171:尺码:2XL;1627207:28341:颜色:黑色",
					"quantity": "200",
					"sku_id": "4847925896321"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28315;1627207:3232478",
					"properties_name": "20518:28315:尺码:M;1627207:3232478:颜色:深灰色",
					"quantity": "200",
					"sku_id": "4847925896322"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28316;1627207:3232478",
					"properties_name": "20518:28316:尺码:L;1627207:3232478:颜色:深灰色",
					"quantity": "200",
					"sku_id": "4847925896323"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28317;1627207:3232478",
					"properties_name": "20518:28317:尺码:XL;1627207:3232478:颜色:深灰色",
					"quantity": "200",
					"sku_id": "4847925896324"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:6145171;1627207:3232478",
					"properties_name": "20518:6145171:尺码:2XL;1627207:3232478:颜色:深灰色",
					"quantity": "200",
					"sku_id": "4847925896325"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28315;1627207:4266701",
					"properties_name": "20518:28315:尺码:M;1627207:4266701:颜色:米白色",
					"quantity": "200",
					"sku_id": "4847925896326"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28316;1627207:4266701",
					"properties_name": "20518:28316:尺码:L;1627207:4266701:颜色:米白色",
					"quantity": "200",
					"sku_id": "4847925896327"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28317;1627207:4266701",
					"properties_name": "20518:28317:尺码:XL;1627207:4266701:颜色:米白色",
					"quantity": "200",
					"sku_id": "4847925896328"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:6145171;1627207:4266701",
					"properties_name": "20518:6145171:尺码:2XL;1627207:4266701:颜色:米白色",
					"quantity": "200",
					"sku_id": "4847925896329"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28315;1627207:21232079977",
					"properties_name": "20518:28315:尺码:M;1627207:21232079977:颜色:尺码推荐-拍了默认发深灰色",
					"quantity": "200",
					"sku_id": "4848009460549"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28316;1627207:21232079977",
					"properties_name": "20518:28316:尺码:L;1627207:21232079977:颜色:尺码推荐-拍了默认发深灰色",
					"quantity": "200",
					"sku_id": "4848009460550"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:28317;1627207:21232079977",
					"properties_name": "20518:28317:尺码:XL;1627207:21232079977:颜色:尺码推荐-拍了默认发深灰色",
					"quantity": "200",
					"sku_id": "4848009460551"
				},
				{
					"price": "58",
					"total_price": 0,
					"orginal_price": "58",
					"properties": "20518:6145171;1627207:21232079977",
					"properties_name": "20518:6145171:尺码:2XL;1627207:21232079977:颜色:尺码推荐-拍了默认发深灰色",
					"quantity": "200",
					"sku_id": "4848009460552"
				}
			]
		},
		"seller_id": "3021585944",
		"sales": 300,
		"shop_id": "435467764",
		"props_list": {
			"20518:28315": "尺码:M",
			"20518:28316": "尺码:L",
			"20518:28317": "尺码:XL",
			"20518:6145171": "尺码:2XL",
			"1627207:28341": "颜色:黑色",
			"1627207:3232478": "颜色:深灰色",
			"1627207:4266701": "颜色:米白色",
			"1627207:21232079977": "颜色:尺码推荐-拍了默认发深灰色"
		},
		"seller_info": {
			"nick": "emeisa旗舰店",
			"item_score": "4.8 ",
			"score_p": "4.8 ",
			"delivery_score": "4.8 ",
			"shop_type": "B",
			"user_num_id": "3021585944",
			"sid": "435467764",
			"title": "emeisa旗舰店",
			"zhuy": "https://shop435467764.taobao.com/",
			"shop_name": "emeisa旗舰店"
		},
		"tmall": true,
		"error": "",
		"warning": "",
		"url_log": [],
		"fav_count": "1078",
		"fans_count": "52.2万",
		"freight": "快递:  免运费",
		"props_imgs": {
			"prop_img": [
				{
					"properties": "1627207:28341",
					"url": "//img.alicdn.com/imgextra/i3/3021585944/O1CN01Kt3Q0P1tmOy6q8qqY_!!3021585944.jpg"
				},
				{
					"properties": "1627207:3232478",
					"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01vt6p3N1tmOy7ubDxK_!!3021585944.jpg"
				},
				{
					"properties": "1627207:4266701",
					"url": "//img.alicdn.com/imgextra/i4/3021585944/O1CN01q5GA0Q1tmOyEZsA9X_!!3021585944.jpg"
				},
				{
					"properties": "1627207:21232079977",
					"url": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01jGLmrU1tmOy8a0v43_!!3021585944.jpg"
				}
			]
		},
		"_ddf": "xdl",
		"promo_type": null,
		"props_img": {
			"1627207:28341": "//img.alicdn.com/imgextra/i3/3021585944/O1CN01Kt3Q0P1tmOy6q8qqY_!!3021585944.jpg",
			"1627207:3232478": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01vt6p3N1tmOy7ubDxK_!!3021585944.jpg",
			"1627207:4266701": "//img.alicdn.com/imgextra/i4/3021585944/O1CN01q5GA0Q1tmOyEZsA9X_!!3021585944.jpg",
			"1627207:21232079977": "//img.alicdn.com/imgextra/i2/3021585944/O1CN01jGLmrU1tmOy8a0v43_!!3021585944.jpg"
		},
		"format_check": "ok",
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "1ff6b19168c44a73629b2793e556c1b9",
	"secache_time": 1662086152,
	"secache_date": "2022-09-02 10:35:52",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:40 max:10100 all[113=40+56+17];expires:2030-12-31",
	"execution_time": "1.254",
	"server_time": "Beijing/2022-09-02 10:35:52",
	"client_ip": "106.6.35.69",
	"call_args": {
		"num_iid": "673577112865",
		"is_promotion": "1"
	},
	"api_type": "taobao",
	"translate_language": "zh-CN",
	"translate_engine": "google_new",
	"server_memory": "0.94MB",
	"request_id": "gw-4.63116c075c534",
	"last_id": "1190186167"
}