天猫全网商品详情封装接口
API接口名称:item_get-获取商品详情
API请求示例(PHP):
<?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请求参数:
num_iid:淘宝商品ID
is_promotion:是否获取取促销价
响应参数:
点击免费获取API测试:点击注册
API请求返回实例:
Result Object:
---------------------------------------
{
"item": {
"num_iid": "640223285678",
"title": "圣奥艾克电脑办公椅子护腰可躺午休人体工学座椅舒服家用久坐躺椅",
"desc_short": "",
"price": 799,
"total_price": "",
"suggestive_price": "",
"orginal_price": 1899,
"nick": "圣奥官方旗舰店",
"num": 200,
"detail_url": "https://item.taobao.com/item.htm?id=640223285678",
"pic_url": "https://gw.alicdn.com/imgextra/O1CN01RFzse51ynqFfFdBo6_!!2996366624.jpg",
"brand": null,
"brandId": "",
"rootCatId": "",
"cid": 50001400,
"desc": "<img class=\"desc_anchor\" id=\"desc-module-1\" src=\"http://assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif\" />\n <p><img src=\"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01bHzxdy1ynqFoLXCdV_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN010xostR1ynqFluT0Gg_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i1/2996366624/O1CN017OtV5r1ynqFgGg5Il_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01lL92cM1ynqFmdxG09_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01jGaFpn1ynqFi7dUTZ_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i2/2996366624/O1CN01p1lcDk1ynqFe7VlMQ_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01p1QVIa1ynqFgIVkRL_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01D9WJkw1ynqFluRSbN_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i2/2996366624/O1CN010rcxIf1ynqFi7dQIc_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i1/2996366624/O1CN01glJifz1ynqFXHB02h_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i2/2996366624/O1CN01yl5XKs1ynqFgITfV0_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01axe7Ng1ynqFoLZ53Q_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i1/2996366624/O1CN01XHtxp51ynqFXHCsS2_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01wNNd4I1ynqFdWpuvF_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01y482ui1ynqFkn9GCn_!!2996366624.jpg\" align=\"absmiddle\" /><img src=\"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01MMDaSO1ynqInZlbY6_!!2996366624.jpg\" align=\"absmiddle\" /> </p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-3.62f0d1e3e00b5&p=1778786531&k=i_key&t=1659949542\" style=\"display:none\" />",
"item_imgs": [
{
"url": "https://gw.alicdn.com/imgextra/O1CN01RFzse51ynqFfFdBo6_!!2996366624.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i1/2996366624/O1CN01k301kd1ynqFUea614_!!2996366624.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i3/2996366624/O1CN014c3UUG1ynqFTLOPa0_!!2996366624.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i2/2996366624/O1CN012SpwpP1ynqFQfPzCY_!!2996366624.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i3/2996366624/O1CN01liAI3O1ynqFIUyjTa_!!2996366624.jpg"
}
],
"item_weight": "",
"post_fee": 0,
"freight": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"video": [],
"sample_id": "",
"props_name": "1627207:3232483:颜色分类:黑色-海绵坐垫-尼龙脚;1627207:3232481:颜色分类:黑色-海绵坐垫-铝合金脚;1627207:3232484:颜色分类:黑色-全网坐垫-尼龙脚;1627207:90554:颜色分类:黑色-全网坐垫-铝合金脚;1627207:28332:颜色分类:品牌实力 放心选购(说明勿拍);13746047:119248778:五星脚材质:尼龙脚;13746047:44332117:五星脚材质:铝合金脚;13746047:119248778:五星脚材质:尼龙脚;13746047:44332117:五星脚材质:铝合金脚;13746047:119248778:五星脚材质:尼龙脚;13746149:43772405:扶手类型:固定扶手;13746149:43772405:扶手类型:固定扶手;13746149:43772405:扶手类型:固定扶手;13746149:43772405:扶手类型:固定扶手;13746149:43772405:扶手类型:固定扶手",
"prop_imgs": {
"prop_img": [
{
"properties": "1627207:3232483",
"url": "//img.alicdn.com/imgextra/i4/2996366624/O1CN01AZ9wdN1ynqD5xfFLT_!!2996366624.jpg"
},
{
"properties": "1627207:3232481",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01swZOKu1ynqCv2Lab1_!!2996366624.jpg"
},
{
"properties": "1627207:3232484",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01Dk3Qbz1ynqCzbMAJd_!!2996366624.jpg"
},
{
"properties": "1627207:90554",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01UadakX1ynqDiHHHn0_!!2996366624.jpg"
},
{
"properties": "1627207:28332",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01VgWt8t1ynqDnHl55s_!!2996366624.jpg"
}
]
},
"props_imgs": {
"prop_img": [
{
"properties": "1627207:3232483",
"url": "//img.alicdn.com/imgextra/i4/2996366624/O1CN01AZ9wdN1ynqD5xfFLT_!!2996366624.jpg"
},
{
"properties": "1627207:3232481",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01swZOKu1ynqCv2Lab1_!!2996366624.jpg"
},
{
"properties": "1627207:3232484",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01Dk3Qbz1ynqCzbMAJd_!!2996366624.jpg"
},
{
"properties": "1627207:90554",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01UadakX1ynqDiHHHn0_!!2996366624.jpg"
},
{
"properties": "1627207:28332",
"url": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01VgWt8t1ynqDnHl55s_!!2996366624.jpg"
}
]
},
"property_alias": "",
"props": [
{
"name": "品牌",
"value": "SUNON/圣奥"
},
{
"name": "型号",
"value": "艾克午休椅"
},
{
"name": "材质",
"value": "塑料"
},
{
"name": "塑料材质",
"value": "PVC"
},
{
"name": "颜色分类",
"value": "品牌实力 放心选购(说明勿拍) 黑色-全网坐垫-铝合金脚 黑色-海绵坐垫-铝合金脚 黑色-海绵坐垫-尼龙脚 黑色-全网坐垫-尼龙脚"
},
{
"name": "面料材质",
"value": "网布"
},
{
"name": "靠背高度",
"value": "67cm"
},
{
"name": "是否可定制",
"value": "是"
},
{
"name": "是否可升降",
"value": "是"
},
{
"name": "是否可旋转",
"value": "是"
},
{
"name": "是否可躺",
"value": "是"
},
{
"name": "五星脚材质",
"value": "铝合金脚 尼龙脚"
},
{
"name": "扶手类型",
"value": "固定扶手"
},
{
"name": "是否支持人体工程学",
"value": "是"
},
{
"name": "产地",
"value": "浙江省"
},
{
"name": "地市",
"value": "嘉兴市"
},
{
"name": "区县",
"value": "海宁市"
},
{
"name": "是否组装",
"value": "是"
},
{
"name": "出租车是否可运输",
"value": "是"
},
{
"name": "是否带脚踏",
"value": "是"
}
],
"total_sold": "57",
"skus": {
"sku": [
{
"price": 799,
"total_price": 0,
"orginal_price": 1899,
"properties": "1627207:3232483;13746047:119248778;13746149:43772405",
"properties_name": "1627207:3232483:颜色分类:黑色-海绵坐垫-尼龙脚;13746047:119248778:五星脚材质:尼龙脚;13746149:43772405:扶手类型:固定扶手",
"quantity": 82,
"sku_id": "4596387996845"
},
{
"price": 899,
"total_price": 0,
"orginal_price": 1899,
"properties": "1627207:3232481;13746047:44332117;13746149:43772405",
"properties_name": "1627207:3232481:颜色分类:黑色-海绵坐垫-铝合金脚;13746047:44332117:五星脚材质:铝合金脚;13746149:43772405:扶手类型:固定扶手",
"quantity": 34,
"sku_id": "4608713776103"
},
{
"price": 899,
"total_price": 0,
"orginal_price": 2099,
"properties": "1627207:3232484;13746047:119248778;13746149:43772405",
"properties_name": "1627207:3232484:颜色分类:黑色-全网坐垫-尼龙脚;13746047:119248778:五星脚材质:尼龙脚;13746149:43772405:扶手类型:固定扶手",
"quantity": 83,
"sku_id": "4596387996847"
},
{
"price": 959,
"total_price": 0,
"orginal_price": 1899,
"properties": "1627207:90554;13746047:44332117;13746149:43772405",
"properties_name": "1627207:90554:颜色分类:黑色-全网坐垫-铝合金脚;13746047:44332117:五星脚材质:铝合金脚;13746149:43772405:扶手类型:固定扶手",
"quantity": 1,
"sku_id": "4823831319280"
},
{
"price": 799,
"total_price": 0,
"orginal_price": 1899,
"properties": "1627207:28332;13746047:119248778;13746149:43772405",
"properties_name": "1627207:28332:颜色分类:品牌实力 放心选购(说明勿拍);13746047:119248778:五星脚材质:尼龙脚;13746149:43772405:扶手类型:固定扶手",
"quantity": 111,
"sku_id": "4823831319279"
}
]
},
"seller_id": "2996366624",
"sales": 57,
"shop_id": "309389115",
"props_list": {
"1627207:3232483": "颜色分类:黑色-海绵坐垫-尼龙脚",
"1627207:3232481": "颜色分类:黑色-海绵坐垫-铝合金脚",
"1627207:3232484": "颜色分类:黑色-全网坐垫-尼龙脚",
"1627207:90554": "颜色分类:黑色-全网坐垫-铝合金脚",
"1627207:28332": "颜色分类:品牌实力 放心选购(说明勿拍)",
"13746047:119248778": "五星脚材质:尼龙脚",
"13746047:44332117": "五星脚材质:铝合金脚",
"13746149:43772405": "扶手类型:固定扶手"
},
"seller_info": {
"nick": "圣奥官方旗舰店",
"item_score": 4.88385,
"score_p": 4.93201,
"delivery_score": 4.94051,
"shop_type": "",
"user_num_id": "2996366624",
"sid": "309389115",
"title": "",
"zhuy": "https://shop309389115.taobao.com",
"cert": null,
"open_time": "",
"credit_score": null,
"shop_name": "圣奥官方旗舰店"
},
"tmall": true,
"error": "",
"location": "浙江杭州",
"data_from": "Ha",
"has_discount": "true",
"is_promotion": "true",
"promo_type": null,
"props_img": {
"1627207:3232483": "//img.alicdn.com/imgextra/i4/2996366624/O1CN01AZ9wdN1ynqD5xfFLT_!!2996366624.jpg",
"1627207:3232481": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01swZOKu1ynqCv2Lab1_!!2996366624.jpg",
"1627207:3232484": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01Dk3Qbz1ynqCzbMAJd_!!2996366624.jpg",
"1627207:90554": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01UadakX1ynqDiHHHn0_!!2996366624.jpg",
"1627207:28332": "//img.alicdn.com/imgextra/i1/2996366624/O1CN01VgWt8t1ynqDnHl55s_!!2996366624.jpg"
},
"format_check": "ok",
"desc_img": [
"http://assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif",
"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01bHzxdy1ynqFoLXCdV_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN010xostR1ynqFluT0Gg_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i1/2996366624/O1CN017OtV5r1ynqFgGg5Il_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01lL92cM1ynqFmdxG09_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01jGaFpn1ynqFi7dUTZ_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i2/2996366624/O1CN01p1lcDk1ynqFe7VlMQ_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01p1QVIa1ynqFgIVkRL_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01D9WJkw1ynqFluRSbN_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i2/2996366624/O1CN010rcxIf1ynqFi7dQIc_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i1/2996366624/O1CN01glJifz1ynqFXHB02h_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i2/2996366624/O1CN01yl5XKs1ynqFgITfV0_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01axe7Ng1ynqFoLZ53Q_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i1/2996366624/O1CN01XHtxp51ynqFXHCsS2_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i3/2996366624/O1CN01wNNd4I1ynqFdWpuvF_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01y482ui1ynqFkn9GCn_!!2996366624.jpg",
"http://img.alicdn.com/imgextra/i4/2996366624/O1CN01MMDaSO1ynqInZlbY6_!!2996366624.jpg"
],
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "200ac08fb267dad08c32ca7f551b996a",
"secache_time": 1659949542,
"secache_date": "2022-08-08 17:05:42",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:144 max:10100 all[227=144+29+54];expires:2030-12-31",
"execution_time": "2.184",
"server_time": "Beijing/2022-08-08 17:05:42",
"client_ip": "106.6.32.227",
"call_args": {
"num_iid": "640223285678",
"is_promotion": "1"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "baidu_api",
"server_memory": "5.93MB",
"request_id": "gw-3.62f0d1e3e00b5",
"last_id": "1137868940"
}