淘宝商品详情API接口

78 阅读9分钟

一、先简单回答两个问题:

1、PHP 可以开发客户端? 答:不可以,因为PHP是脚本语言,是负责完成 B/S架构 或 C/S架构 的S部分,即:服务端的开发。(别去纠结 GTK、WinBinder)

2、为什么选择 PHP 作为开发服务端的首选? 答:跨平台(可以运行在UNIX、LINUX、WINDOWS、Mac OS下)、低消耗(PHP消耗相当少的系统资源)、运行效率高(相对而言)、MySQL的完美搭档,本身是免费开源的......

API接口工具

image.png

 二、详情数据

1、请求示例

image.png 2、响应参数

image.png 3、响应示例

"item": {
	"num_iid": "673580114813",
	"title": "JNXS江南先生Cityboy日系情侣装短袖T恤POLO衫男夏季潮牌工装衬衣",
	"desc_short": "",
	"price": "119",
	"orginal_price": "179.00",
	"nick": "江南先生旗舰店",
	"num": "200",
	"pic_url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01rlT5ab1nrXjLDL3js_!!2164625143.jpg",
	"brand": "",
	"brandId": "649592411",
	"rootCatId": "30",
	"cid": "50010402",
	"crumbs": [],
	"detail_url": "https://item.taobao.com/item.htm?id=673580114813",
	"desc": "",
	"item_imgs": [
		{
			"url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01rlT5ab1nrXjLDL3js_!!2164625143.jpg"
		},
		{
			"url": "//img.alicdn.com/imgextra/i2/2164625143/O1CN01iJEkNK1nrXiYbJjzr_!!2164625143-0-lubanu-s.jpg"
		},
		{
			"url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01vodCrt1nrXibbz72q_!!2164625143-0-lubanu-s.jpg"
		},
		{
			"url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01LMnuy51nrXiuSiJY6_!!2164625143-0-lubanu-s.jpg"
		},
		{
			"url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01r5bdRh1nrXiobLpSS_!!2164625143-0-lubanu-s.jpg"
		}
	],
	"item_weight": 0,
	"location": "浙江杭州",
	"post_fee": "  免运费",
	"express_fee": 0,
	"ems_fee": 0,
	"shipping_to": "",
	"has_discount": "true",
	"video": [],
	"is_virtual": "",
	"sample_id": "",
	"is_promotion": "true",
	"prop_imgs": {
		"prop_img": [
			{
				"properties": "1627207:3232483",
				"url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01yaAoHg1nrXixoP3mL_!!2164625143.jpg"
			},
			{
				"properties": "1627207:9995142",
				"url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01Zevj471nrXj0cT7kl_!!2164625143.jpg"
			},
			{
				"properties": "1627207:381840804",
				"url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01jcNWLl1nrXijjld5Z_!!2164625143.jpg"
			},
			{
				"properties": "1627207:3232478",
				"url": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01as3pfy1nrXiycQfX0_!!2164625143.jpg"
			},
			{
				"properties": "1627207:20763493145",
				"url": "//img.alicdn.com/imgextra/i1/2164625143/O1CN015Umy1X1nrXizWVS71_!!2164625143.jpg"
			}
		]
	},
	"property_alias": "",
	"props": [
		{
			"name": "男装品牌",
			"value": "江南先生"
		},
		{
			"name": "尺码",
			"value": "S M L XL"
		},
		{
			"name": "图案",
			"value": "其他/other"
		},
		{
			"name": "颜色",
			"value": "军绿色 深灰色 红棕色 石灰白 买就送同款徽章【此项勿拍】"
		},
		{
			"name": "袖型",
			"value": "常规"
		},
		{
			"name": "货号",
			"value": "JNYCS-5869"
		},
		{
			"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": "棉54.8% 聚酰胺纤维(锦纶)40.8% 聚氨酯弹性纤维(氨纶)4.4%"
		}
	],
	"props_name": "20509:28314:尺码:S;20509:28315:尺码:M;20509:28316:尺码:L;20509:28317:尺码:XL;1627207:3232483:颜色:军绿色;1627207:9995142:颜色:红棕色;1627207:381840804:颜色:石灰白;1627207:3232478:颜色:深灰色;1627207:20763493145:颜色:买就送同款徽章【此项勿拍】",
	"total_sold": 2830000,
	"skus": {
		"sku": [
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28314;1627207:3232483",
				"properties_name": "20509:28314:尺码:S;1627207:3232483:颜色:军绿色",
				"quantity": "83",
				"sku_id": "5022022999175"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28315;1627207:3232483",
				"properties_name": "20509:28315:尺码:M;1627207:3232483:颜色:军绿色",
				"quantity": "101",
				"sku_id": "5022022999176"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28316;1627207:3232483",
				"properties_name": "20509:28316:尺码:L;1627207:3232483:颜色:军绿色",
				"quantity": "115",
				"sku_id": "5022022999177"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28317;1627207:3232483",
				"properties_name": "20509:28317:尺码:XL;1627207:3232483:颜色:军绿色",
				"quantity": "24",
				"sku_id": "5022022999178"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28314;1627207:9995142",
				"properties_name": "20509:28314:尺码:S;1627207:9995142:颜色:红棕色",
				"quantity": "27",
				"sku_id": "5022022999179"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28315;1627207:9995142",
				"properties_name": "20509:28315:尺码:M;1627207:9995142:颜色:红棕色",
				"quantity": "54",
				"sku_id": "5022022999180"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28316;1627207:9995142",
				"properties_name": "20509:28316:尺码:L;1627207:9995142:颜色:红棕色",
				"quantity": "121",
				"sku_id": "5022022999181"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28317;1627207:9995142",
				"properties_name": "20509:28317:尺码:XL;1627207:9995142:颜色:红棕色",
				"quantity": "146",
				"sku_id": "5022022999182"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28314;1627207:381840804",
				"properties_name": "20509:28314:尺码:S;1627207:381840804:颜色:石灰白",
				"quantity": "54",
				"sku_id": "5022022999183"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28315;1627207:381840804",
				"properties_name": "20509:28315:尺码:M;1627207:381840804:颜色:石灰白",
				"quantity": "112",
				"sku_id": "5022022999184"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28316;1627207:381840804",
				"properties_name": "20509:28316:尺码:L;1627207:381840804:颜色:石灰白",
				"quantity": "70",
				"sku_id": "5022022999185"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28317;1627207:381840804",
				"properties_name": "20509:28317:尺码:XL;1627207:381840804:颜色:石灰白",
				"quantity": "71",
				"sku_id": "5022022999186"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28314;1627207:3232478",
				"properties_name": "20509:28314:尺码:S;1627207:3232478:颜色:深灰色",
				"quantity": "41",
				"sku_id": "4844734140619"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28315;1627207:3232478",
				"properties_name": "20509:28315:尺码:M;1627207:3232478:颜色:深灰色",
				"quantity": "62",
				"sku_id": "4844734140620"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28316;1627207:3232478",
				"properties_name": "20509:28316:尺码:L;1627207:3232478:颜色:深灰色",
				"quantity": "64",
				"sku_id": "4844734140621"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28317;1627207:3232478",
				"properties_name": "20509:28317:尺码:XL;1627207:3232478:颜色:深灰色",
				"quantity": "158",
				"sku_id": "4844734140622"
			},
			{
				"price": "119",
				"total_price": 0,
				"orginal_price": "119",
				"properties": "20509:28314;1627207:20763493145",
				"properties_name": "20509:28314:尺码:S;1627207:20763493145:颜色:买就送同款徽章【此项勿拍】",
				"quantity": "0",
				"sku_id": "4848261016171"
			}
		]
	},
	"seller_id": "2164625143",
	"shop_id": "112164290",
	"props_list": {
		"20509:28314": "尺码:S",
		"20509:28315": "尺码:M",
		"20509:28316": "尺码:L",
		"20509:28317": "尺码:XL",
		"1627207:3232483": "颜色:军绿色",
		"1627207:9995142": "颜色:红棕色",
		"1627207:381840804": "颜色:石灰白",
		"1627207:3232478": "颜色:深灰色",
		"1627207:20763493145": "颜色:买就送同款徽章【此项勿拍】"
	},
	"seller_info": {
		"nick": "江南先生旗舰店",
		"item_score": "4.7 ",
		"score_p": "4.8 ",
		"delivery_score": "4.8 ",
		"shop_type": "B",
		"user_num_id": "2164625143",
		"sid": "112164290",
		"title": "江南先生旗舰店",
		"zhuy": "https://shop112164290.taobao.com/",
		"shop_name": "江南先生旗舰店"
	},
	"tmall": true,
	"update_time": "2022-07-07 14:26:49",
	"data_update": "2022-07-07 14:26:49",
	"data_f": "xdl",
	"data_from": "hid",
	"promo_type": null,
	"props_img": {
		"1627207:3232483": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01yaAoHg1nrXixoP3mL_!!2164625143.jpg",
		"1627207:9995142": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01Zevj471nrXj0cT7kl_!!2164625143.jpg",
		"1627207:381840804": "//img.alicdn.com/imgextra/i1/2164625143/O1CN01jcNWLl1nrXijjld5Z_!!2164625143.jpg",
		"1627207:3232478": "//img.alicdn.com/imgextra/i3/2164625143/O1CN01as3pfy1nrXiycQfX0_!!2164625143.jpg",
		"1627207:20763493145": "//img.alicdn.com/imgextra/i1/2164625143/O1CN015Umy1X1nrXizWVS71_!!2164625143.jpg"
	},
	"error": null,
	"format_check": "ok",
	"sales": 0,
	"desc_img": [],
	"shop_item": [],
	"relate_items": []
},
"error": "",
"secache": "7aadc856ab41f8261daa5e69896deb6c",
"secache_time": 1659404224,
"secache_date": "2022-08-02 09:37:04",
"translate_status": "",
"translate_time": 0,
"language": {
	"default_lang": "cn",
	"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:17 max:10100 all[48=17+16+15];expires:2030-12-31",
"execution_time": "0.293",
"server_time": "Beijing/2022-08-02 09:37:04",
"client_ip": "106.6.35.126",
"call_args": {
	"num_iid": "673580114813",
	"is_promotion": "1"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "5.89MB",
"request_id": "gw-1.62e87fc025131",
"last_id": "1122277050"