taobao API

Taobao/Tmall API Return Value Description for Obtaining Taobao Product Details

taobao.item_get

taobao API_第1张图片

Request parameters

Request parameters:num_iid=589554336545&is_promotion=1

Request parameters:num_iid:taobao commodity ID
is_promotion:Whether to obtain the promotion price

contact information:Skype:[email protected]m,WeChat Anzexi58

Request Example  API interface channel

Curl PHP PHPsdk JAVA C# Python

&secret=<您自己的apiSecret>&num_iid=60840463360";
$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));
?>

Response Example

{
	"item": {
		"num_iid": "589554336545",
		"title": "女童夏装连衣裙2021新款儿童中大童文艺森系宽松短袖纯棉长裙亲子",
		"desc_short": "",
		"price": 85,
		"total_price": "",
		"suggestive_price": "",
		"orginal_price": 170,
		"nick": "舒服的小窝",
		"num": 126,
		"detail_url": "https://item.taobao.com/item.htm?id=589554336545",
		"pic_url": "//gd3.alicdn.com/imgextra/i4/682244761/O1CN015umZZl1l2aG1rw7WU_!!682244761.jpg",
		"brand": null,
		"brandId": "",
		"rootCatId": "",
		"cid": 121452038,
		"desc": "

这款裙子采用的是天枢面料,

\n

是用天丝与棉按3:7的比例混纺的高档纺织材料!

\n

天枢面料的特点是轻柔飘逸富有垂感,并且透气清凉不易褶皱。

\n

经常用来做春夏高档女性时装。

\n

 

\n

PS:此款裙子不包含模特佩戴的围巾哦!

\n

模特亲测过,搭配红领巾也很好看哦!

\n

 

\n

\n

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"

\"undefined\"


 

", "item_imgs": [ { "url": "//gd3.alicdn.com/imgextra/i4/682244761/O1CN015umZZl1l2aG1rw7WU_!!682244761.jpg" }, { "url": "//gd3.alicdn.com/imgextra/i3/682244761/O1CN01eQEHrh1l2aB7f0yoR_!!682244761.jpg" }, { "url": "//gd2.alicdn.com/imgextra/i2/682244761/O1CN01YQxPal1l2aB5ph2ms_!!682244761.jpg" }, { "url": "//gd4.alicdn.com/imgextra/i4/682244761/O1CN01asJMPJ1l2aB51VgZK_!!682244761.jpg" }, { "url": "//gd4.alicdn.com/imgextra/i4/682244761/O1CN01IVEX8V1l2aQKZT4V7_!!0-item_pic.jpg" } ], "item_weight": "", "post_fee": 0, "freight": "", "express_fee": "", "ems_fee": "", "shipping_to": "", "video": { "url": null }, "sample_id": "", "props_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;1627207:101620863:颜色分类:米色裙子 偏大宽松;1627207:101620863:颜色分类:米色裙子 偏大宽松;1627207:101620863:颜色分类:米色裙子 偏大宽松;1627207:101620863:颜色分类:米色裙子 偏大宽松;1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:50792021:参考身高:120cm;122216343:3285954:参考身高:130cm;122216343:3376466:参考身高:140cm;122216343:917:参考身高:150cm;122216343:26774:参考身高:160cm;122216343:3191195169:参考身高:妈妈均码-L码", "prop_imgs": { "prop_img": [] }, "props_imgs": { "prop_img": [] }, "property_alias": "", "props": [ { "name": "品牌", "value": "other/其他" }, { "name": "适用年龄", "value": "3岁 4岁 5岁 6岁 7岁 8岁 9岁 10岁 11岁 12岁 13岁 14岁" }, { "name": "面料", "value": "棉布" }, { "name": "图案", "value": "纯色" }, { "name": "风格", "value": "韩版" }, { "name": "产地", "value": "中国大陆" }, { "name": "适用性别", "value": "女" }, { "name": "颜色分类", "value": "米色裙子" }, { "name": "裙型", "value": "不规则" }, { "name": "参考身高", "value": "妈妈均码-L码 120cm 130cm 140cm 150cm 160cm" }, { "name": "适用季节", "value": "夏季" }, { "name": "款式", "value": "短袖" }, { "name": "安全等级", "value": "B类" }, { "name": "材质成分", "value": "棉70% 其他30%" } ], "total_sold": "-1", "skus": { "sku": [ { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:50792021", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:50792021:参考身高:120cm", "quantity": 15, "sku_id": "4208575295008" }, { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:3285954", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:3285954:参考身高:130cm", "quantity": 30, "sku_id": "4208575295006" }, { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:3376466", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:3376466:参考身高:140cm", "quantity": 22, "sku_id": "4208575295007" }, { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:917", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:917:参考身高:150cm", "quantity": 15, "sku_id": "4208575295010" }, { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:26774", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:26774:参考身高:160cm", "quantity": 20, "sku_id": "4208575295004" }, { "price": 85, "total_price": 0, "orginal_price": 170, "properties": "1627207:101620863;122216343:3191195169", "properties_name": "1627207:101620863:颜色分类:米色裙子 偏大宽松;122216343:3191195169:参考身高:妈妈均码-L码", "quantity": 24, "sku_id": "4208575295005" } ] }, "seller_id": "682244761", "sales": 0, "shop_id": "65785458", "props_list": { "1627207:101620863": "颜色分类:米色裙子 偏大宽松", "122216343:50792021": "参考身高:120cm", "122216343:3285954": "参考身高:130cm", "122216343:3376466": "参考身高:140cm", "122216343:917": "参考身高:150cm", "122216343:26774": "参考身高:160cm", "122216343:3191195169": "参考身高:妈妈均码-L码" }, "seller_info": { "nick": "舒服的小窝", "item_score": 4.90411, "score_p": 4.92146, "delivery_score": 4.93242, "shop_type": "", "user_num_id": "682244761", "sid": "65785458", "title": "", "zhuy": "https://shop65785458.taobao.com", "cert": null, "open_time": "12年老店", "credit_score": "tb-rank-crown:1", "shop_name": "希希公主精品童装" }, "tmall": false, "error": "", "location": "江苏扬州", "data_from": "Ha", "has_discount": "true", "is_promotion": "true", "promo_type": null, "props_img": [], "format_check": "ok", "desc_img": [ "http://img.alicdn.com/imgextra/i2/682244761/O1CN01p9v7RA1l2aCoIqzrc_!!682244761.jpg", "http://img.alicdn.com/imgextra/i2/682244761/O1CN012DXIUk1l2aAy0MA6S_!!682244761.jpg", "http://img.alicdn.com/imgextra/i1/682244761/O1CN01Fpfw6E1l2aB51cr5U_!!682244761.jpg", "http://img.alicdn.com/imgextra/i4/682244761/O1CN01hLVA9M1l2aB51eKYQ_!!682244761.jpg", "http://img.alicdn.com/imgextra/i1/682244761/O1CN018TlHOZ1l2aB6Sf8zO_!!682244761.jpg", "http://img.alicdn.com/imgextra/i3/682244761/O1CN01898x7U1l2aB5oQcei_!!682244761.jpg", "http://img.alicdn.com/imgextra/i1/682244761/O1CN01xUa6FY1l2aB3cgy4r_!!682244761.jpg", "http://img.alicdn.com/imgextra/i3/682244761/O1CN010MlPbX1l2aAy0Mpg4_!!682244761.jpg", "http://img.alicdn.com/imgextra/i3/682244761/O1CN01DAQI7z1l2aB51V0zy_!!682244761.jpg", "http://img.alicdn.com/imgextra/i2/682244761/O1CN01iXHG7h1l2aB6ScKMB_!!682244761.jpg", "http://img.alicdn.com/imgextra/i3/682244761/O1CN01kbSjeY1l2aB5piBTZ_!!682244761.jpg", "http://img.alicdn.com/imgextra/i2/682244761/O1CN0173Oyez1l2aB2UEBl3_!!682244761.jpg", "http://img.alicdn.com/imgextra/i3/682244761/O1CN01LwNZOA1l2aB7FIxh0_!!682244761.jpg", "http://img.alicdn.com/imgextra/i1/682244761/O1CN01BP1rYu1l2aB7FHcZc_!!682244761.jpg" ], "shop_item": [], "relate_items": [] }, "error": "", "secache": "3f7ddd24643ac7887bfa3acf7eac465a", "secache_time": 1686540532, "secache_date": "2023-06-12 11:28:52", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }, "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:25 max:10000 all[73=25+3+45];expires:2030-12-31", "execution_time": "2.35", "server_time": "Beijing/2023-06-12 11:28:52", "client_ip": "220.177.181.22", "call_args": { "num_iid": "589554336545", "is_promotion": "1" },

 

 

 

 

你可能感兴趣的:(javascript,php,后端)