公共参数
请求地址: https://api-gw.onebound.cn/taobao/item_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版本 |
请求参数
请求参数:num_iid=658363512622&is_promotion=1
参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价
API测试工具 点击申请试用
请求示例
<?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=658363512622&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": "658363512622",
"title": "IFIK Black Wrap Jeans 告别含蓄 腰部不对称绑带镂空修身牛仔裤",
"desc_short": "",
"price": 349,
"total_price": "",
"suggestive_price": "",
"orginal_price": 349,
"nick": "ifiker",
"num": 119,
"detail_url": "https://item.taobao.com/item.htm?id=658363512622",
"pic_url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01ONWFTh1nzKUHeMmHQ_!!2209411885160-0-picasso.jpg",
"brand": null,
"brandId": "",
"rootCatId": "",
"cid": 162205,
"desc": "<p><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/2209411885160/O1CN01rhrzFG1nzKPikomrE_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/2209411885160/O1CN01NsFsfH1nzKPkbj9aS_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01ZR1CDv1nzKPjfKjA1_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01HV3TWY1nzKPgHOQjt_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/2209411885160/O1CN01QwyQxd1nzKPpSMyNc_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01Mrlgol1nzKPj1vIVO_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01x0V4SR1nzKPk0lfDw_!!2209411885160.jpg\" /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/2209411885160/O1CN01emMNHc1nzKPi7mRnG_!!2209411885160.jpg\" /></p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.635b3a42a0420&p=1973600427&k=i_key&t=1666923075\" style=\"display:none\" />",
"item_imgs": [
{
"url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01ONWFTh1nzKUHeMmHQ_!!2209411885160-0-picasso.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i4/2209411885160/O1CN01fzTMvn1nzKR5eapLN_!!2209411885160.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i1/2209411885160/O1CN01GYAprP1nzKRN0vFtF_!!2209411885160.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i4/2209411885160/O1CN01kd4lic1nzKRN0xKm2_!!2209411885160.jpg"
},
{
"url": "https://img.alicdn.com/imgextra/i2/2209411885160/O1CN01BCqWAq1nzKRLACxjn_!!2209411885160.jpg"
}
],
"item_weight": "",
"post_fee": 0,
"freight": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"video": [],
"sample_id": "",
"props_name": "20518:15566029763:尺寸:I1(S)现货;20518:15566029764:尺寸:I2(M)现货;20518:18599555290:尺寸:I3(L)现货;1627207:28341:颜色分类:黑色 现货;1627207:28341:颜色分类:黑色 现货;1627207:28341:颜色分类:黑色 现货",
"prop_imgs": {
"prop_img": [
{
"properties": "1627207:28341",
"url": "http://img.alicdn.com/imgextra/i3/2209411885160/O1CN018oBPSm1nzKPoXwSnj_!!2209411885160.jpg"
}
]
},
"props_imgs": {
"prop_img": [
{
"properties": "1627207:28341",
"url": "http://img.alicdn.com/imgextra/i3/2209411885160/O1CN018oBPSm1nzKPoXwSnj_!!2209411885160.jpg"
}
]
},
"property_alias": "",
"props": [
{
"name": "品牌",
"value": "iFIK"
},
{
"name": "适用年龄",
"value": "18-24周岁"
},
{
"name": "尺寸",
"value": "I1(S)现货 I2(M)现货 I3(L)现货"
},
{
"name": "面料分类",
"value": "棉弹牛仔布"
},
{
"name": "腰型",
"value": "自然腰"
},
{
"name": "工艺",
"value": "水洗"
},
{
"name": "颜色分类",
"value": "黑色"
},
{
"name": "裤门襟",
"value": "拉链"
},
{
"name": "成分含量",
"value": "96%及以上"
},
{
"name": "适用季节",
"value": "四季通用"
},
{
"name": "年份季节",
"value": "2021年冬季"
},
{
"name": "厚薄",
"value": "常规"
},
{
"name": "裤长",
"value": "长裤"
},
{
"name": "款式",
"value": "微喇裤"
},
{
"name": "颜色",
"value": "深色"
}
],
"total_sold": "28",
"skus": {
"sku": [
{
"price": 349,
"total_price": 0,
"orginal_price": 399,
"properties": "20518:15566029763;1627207:28341",
"properties_name": "20518:15566029763:尺寸:I1(S)现货;1627207:28341:颜色分类:黑色 现货",
"quantity": 77,
"sku_id": "4750724932717"
},
{
"price": 349,
"total_price": 0,
"orginal_price": 399,
"properties": "20518:15566029764;1627207:28341",
"properties_name": "20518:15566029764:尺寸:I2(M)现货;1627207:28341:颜色分类:黑色 现货",
"quantity": 42,
"sku_id": "4750724932718"
},
{
"price": 349,
"total_price": 0,
"orginal_price": 399,
"properties": "20518:18599555290;1627207:28341",
"properties_name": "20518:18599555290:尺寸:I3(L)现货;1627207:28341:颜色分类:黑色 现货",
"quantity": 0,
"sku_id": "4750724932719"
}
]
},
"seller_id": "2209411885160",
"sales": 28,
"shop_id": "433655136",
"props_list": {
"1627207:28341": "颜色分类:黑色 现货",
"20518:15566029763": "尺寸:I1(S)现货",
"20518:15566029764": "尺寸:I2(M)现货",
"20518:18599555290": "尺寸:I3(L)现货"
},
"seller_info": {
"nick": "ifiker",
"item_score": 4.88588,
"score_p": 4.91293,
"delivery_score": 4.91076,
"shop_type": "",
"user_num_id": "2209411885160",
"sid": "433655136",
"title": "",
"zhuy": "https://shop433655136.taobao.com",
"cert": "该店铺已通过金牌卖家认证",
"open_time": "",
"credit_score": "tb-rank-cap:2",
"shop_name": "IFIK"
},
"tmall": true,
"error": "",
"location": "广东广州",
"data_from": "Ha",
"has_discount": "false",
"is_promotion": "false",
"promo_type": null,
"props_img": {
"1627207:28341": "http://img.alicdn.com/imgextra/i3/2209411885160/O1CN018oBPSm1nzKPoXwSnj_!!2209411885160.jpg"
},
"format_check": "ok",
"desc_img": [
"http://img.alicdn.com/imgextra/i3/2209411885160/O1CN01rhrzFG1nzKPikomrE_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i4/2209411885160/O1CN01NsFsfH1nzKPkbj9aS_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01ZR1CDv1nzKPjfKjA1_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01HV3TWY1nzKPgHOQjt_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i3/2209411885160/O1CN01QwyQxd1nzKPpSMyNc_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01Mrlgol1nzKPj1vIVO_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i1/2209411885160/O1CN01x0V4SR1nzKPk0lfDw_!!2209411885160.jpg",
"http://img.alicdn.com/imgextra/i2/2209411885160/O1CN01emMNHc1nzKPi7mRnG_!!2209411885160.jpg"
],
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "858ed78d5ad69664e5c2b5dd1749f622",
"secache_time": 1666923075,
"secache_date": "2022-10-28 10:11:15",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:105 max:10000 all[251=105+17+129];expires:2030-12-31",
"execution_time": "1.355",
"server_time": "Beijing/2022-10-28 10:11:15",
"client_ip": "117.162.192.171",
"call_args": {
"num_iid": "658363512622",
"is_promotion": "1"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "0.92MB",
"request_id": "gw-4.635b3a42a0420",
"last_id": "1317077335"
}