item_get-获得ID详情
公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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=679354643228&is_promotion=1
参数说明:num_iid:淘宝商品ID
is_promotion:是否获取取促销价
Version: Date:2022-04-04
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item | item[] | 1 | 宝贝详情数据 | |
num_iid | Bigint | 1 | 520813250866 | 宝贝ID |
title | String | 1 | 三刃木折叠刀过安检创意迷你钥匙扣钥匙刀军刀随身多功能小刀包邮 | 宝贝标题 |
desc_short | String | 0 | 商品简介 | |
promotion_price | Int | 0 | 优惠价 | |
price | Float | 1 | 25.8 | 价格 |
total_price | Float | 0 | 0 | |
suggestive_price | Float | 0 | 0 | |
orginal_price | String | 0 | 25.80 | 原价 |
nick | String | 0 | 欢乐购客栈 | 掌柜昵称 |
num | Int | 0 | 3836 | 库存 |
min_num | Int | 0 | 0 | 最小购买数 |
detail_url | String | 0 | http://item.taobao.com/item.htm?id=520813250866 | 宝贝链接 |
pic_url | String | 1 | //gd2.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg | 宝贝图片 |
brand | String | 0 | 三刃木 | 品牌名称 |
brandId | Int | 0 | 8879363 | 品牌ID |
rootCatId | Int | 0 | 50013886 | 顶级分类ID |
cid | Int | 1 | 50014822 | |
crumbs | Mix | 0 | [] | 导航菜单 |
created_time | String | 0 | ||
modified_time | String | 0 | ||
delist_time | String | 0 | ||
desc | String | 0 | 商品详情 | |
desc_img | Mix | 0 | [] | 商品详情图片 |
item_imgs | Mix | 0 | item_imgs[] | 商品图片 |
item_weight | String | 0 | ||
item_size | String | 0 | ||
location | String | 0 | 发货地 | |
express_fee | Float | 0 | 0.00 | 快递费用 |
ems_fee | Float | 0 | EMS费用 | |
post_fee | Float | 0 | 物流费用 | |
shipping_to | String | 0 | 发货至 | |
has_discount | Boolean | 0 | false | 是否有优惠 |
video | video[] | 0 | 商品视频 | |
is_virtual | String | 0 | ||
sample_id | String | 0 | 商品风格标识ID | |
is_promotion | Boolean | 0 | false | 是否促销 |
props_name | String | 0 | 1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子; | 商品属性名。格式为pid1:vid1:name1:value1;pid1:vid2:name2:value2。 |
prop_imgs | prop_imgs[] | 0 | 商品属性图片列表 | |
property_alias | String | 0 | 20509:9974422:36;1627207:28326:红色;20509:9975710:38;1627207:28326:红色;20509:9981357:40;1627207:28326:红色 | 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。 |
props | Mix | 0 | [{ "name": "产地","value": "中国" }] | 商品属性 |
total_sold | Int | 0 | ||
skus | skus[] | 0 | 商品规格信息列表 | |
seller_id | Int | 0 | 2844096782 | 卖家ID |
sales | Int | 0 | 138 | 销量 |
shop_id | Int | 0 | 151372205 | 店铺ID |
props_list | Mix | 0 | {20509:9974422: 尺码:36} | 商品属性 |
seller_info | seller_info[] | 1 | 卖家信息 | |
tmall | Boolean | 0 | false | 是否天猫 |
error | String | 0 | 错误信息 | |
warning | String | 0 | 警告信息 | |
url_log | Mix | 0 | [] | |
favcount | Int | 0 | 0 | |
fanscount | Int | 0 | 0 | |
method | String | 0 | item_tmall:pget_item | |
promo_type | String | 0 | ||
props_img | Mix | 0 | 1627207:28326": "//img.alicdn.com/imgextra/i2/2844096782/O1CN01VrjpXt1zyCc9DvERE_!!2844096782.jpg | 属性图片 |
shop_item | Mix | 0 | [] | |
relate_items | Mix | 0 | [] |
请求示例Curl PHP PHPsdk JAVA C# Python
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=520813250866&is_promotion=1"
Request address:
https://api-gw.onebound.cn/taobao/item_get/?key=t&
&num_iid=679354643228&is_promotion=1&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"item": {
"num_iid": "679354643228",
"title": "日系复古细条纹衬衫男ins潮高级感cityboy长袖衬衣美式少年感外套",
"desc_short": "",
"price": "78.88",
"total_price": 0,
"suggestive_price": 0,
"orginal_price": "136.00",
"nick": "韩立臣旗舰店",
"num": "200",
"min_num": 0,
"detail_url": "https://item.taobao.com/item.htm?id=679354643228",
"pic_url": "//img.alicdn.com/imgextra/i1/3839714124/O1CN01zrHz7p1gKq8z2pI7t_!!3839714124-0-lubanu-s.jpg",
"brand": "韩立臣",
"brandId": "1952339657",
"rootCatId": "30",
"cid": "50011123",
"crumbs": [],
"created_time": "",
"modified_time": "",
"delist_time": "",
"desc": "",
"desc_img": [],
"item_imgs": [
{
"url": "//img.alicdn.com/imgextra/i1/3839714124/O1CN01zrHz7p1gKq8z2pI7t_!!3839714124-0-lubanu-s.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i2/3839714124/O1CN01yzkVal1gKq93vf7Gv_!!3839714124-0-lubanu-s.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i2/3839714124/O1CN01ej4WsE1gKq8z2pI9e_!!3839714124-0-lubanu-s.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN018d9K4n1gKq8zt91lE_!!3839714124-0-lubanu-s.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i1/3839714124/O1CN01vhMExu1gKq8wK5f6Q_!!3839714124-0-lubanu-s.jpg"
}
],
"item_weight": "",
"item_size": "",
"location": "浙江杭州",
"post_fee": 0,
"express_fee": null,
"ems_fee": "",
"shipping_to": "",
"has_discount": "true",
"video": [],
"is_virtual": "",
"sample_id": "",
"is_promotion": "true",
"props_name": "20509:28315:尺码:M;20509:28316:尺码:L;20509:28317:尺码:XL;1627207:28320:颜色:白色;1627207:28341:颜色:黑色;1627207:28338:颜色:蓝色",
"prop_imgs": {
"prop_img": [
{
"properties": "1627207:28320",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01a6VhRL1gKq8zXkajq_!!3839714124.jpg"
},
{
"properties": "1627207:28341",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01nwmdTQ1gKq8jQ2rjs_!!3839714124.jpg"
},
{
"properties": "1627207:28338",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01kXKFoT1gKq90Jqhhm_!!3839714124.jpg"
}
]
},
"property_alias": "",
"props": [
{
"name": "品牌",
"value": "韩立臣"
},
{
"name": "尺码",
"value": "M L XL"
},
{
"name": "面料分类",
"value": "牛津布"
},
{
"name": "图案",
"value": "条纹"
},
{
"name": "领型",
"value": "古巴领"
},
{
"name": "颜色",
"value": "白色 黑色 蓝色"
},
{
"name": "货号",
"value": "HLC-CS160 7.15"
},
{
"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": "聚对苯二甲酸乙二酯(涤纶)100%"
}
],
"total_sold": "97",
"skus": {
"sku": [
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28315;1627207:28320",
"properties_name": "20509:28315:尺码:M;1627207:28320:颜色:白色",
"quantity": "200",
"sku_id": "4867954944397"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28316;1627207:28320",
"properties_name": "20509:28316:尺码:L;1627207:28320:颜色:白色",
"quantity": "200",
"sku_id": "4867954944398"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28317;1627207:28320",
"properties_name": "20509:28317:尺码:XL;1627207:28320:颜色:白色",
"quantity": "200",
"sku_id": "4867954944399"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28315;1627207:28341",
"properties_name": "20509:28315:尺码:M;1627207:28341:颜色:黑色",
"quantity": "200",
"sku_id": "4867954944400"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28316;1627207:28341",
"properties_name": "20509:28316:尺码:L;1627207:28341:颜色:黑色",
"quantity": "200",
"sku_id": "4867954944401"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28317;1627207:28341",
"properties_name": "20509:28317:尺码:XL;1627207:28341:颜色:黑色",
"quantity": "200",
"sku_id": "4867954944402"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28315;1627207:28338",
"properties_name": "20509:28315:尺码:M;1627207:28338:颜色:蓝色",
"quantity": "200",
"sku_id": "4867954944403"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28316;1627207:28338",
"properties_name": "20509:28316:尺码:L;1627207:28338:颜色:蓝色",
"quantity": "200",
"sku_id": "4867954944404"
},
{
"price": "78.88",
"total_price": 0,
"orginal_price": "78.88",
"properties": "20509:28317;1627207:28338",
"properties_name": "20509:28317:尺码:XL;1627207:28338:颜色:蓝色",
"quantity": "200",
"sku_id": "4867954944405"
}
]
},
"seller_id": "3839714124",
"sales": 300,
"shop_id": "244563866",
"props_list": {
"20509:28315": "尺码:M",
"20509:28316": "尺码:L",
"20509:28317": "尺码:XL",
"1627207:28320": "颜色:白色",
"1627207:28341": "颜色:黑色",
"1627207:28338": "颜色:蓝色"
},
"seller_info": {
"nick": "韩立臣旗舰店",
"item_score": "4.7 ",
"score_p": "4.8 ",
"delivery_score": "4.8 ",
"shop_type": "B",
"user_num_id": "3839714124",
"sid": "244563866",
"title": "韩立臣旗舰店",
"zhuy": "https://shop244563866.taobao.com/",
"shop_name": "韩立臣旗舰店"
},
"tmall": true,
"error": "",
"warning": "",
"url_log": [],
"fav_count": "742",
"fans_count": "23.5万",
"freight": "快递: 免运费",
"props_imgs": {
"prop_img": [
{
"properties": "1627207:28320",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01a6VhRL1gKq8zXkajq_!!3839714124.jpg"
},
{
"properties": "1627207:28341",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01nwmdTQ1gKq8jQ2rjs_!!3839714124.jpg"
},
{
"properties": "1627207:28338",
"url": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01kXKFoT1gKq90Jqhhm_!!3839714124.jpg"
}
]
},
"_ddf": "xdl",
"promo_type": null,
"props_img": {
"1627207:28320": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01a6VhRL1gKq8zXkajq_!!3839714124.jpg",
"1627207:28341": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01nwmdTQ1gKq8jQ2rjs_!!3839714124.jpg",
"1627207:28338": "//img.alicdn.com/imgextra/i3/3839714124/O1CN01kXKFoT1gKq90Jqhhm_!!3839714124.jpg"
},
"format_check": "ok",
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "ad55a3e9517ab6992530e602f1866718",
"secache_time": 1665193877,
"secache_date": "2022-10-08 09:51:17",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:24 max:10000 all[60=24+13+23];expires:2030-12-31",
"execution_time": "1.972",
"server_time": "Beijing/2022-10-08 09:51:17",
"client_ip": "106.6.32.64",
"call_args": {
"num_iid": "679354643228",
"is_promotion": "1"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "5.97MB",
"request_id": "gw-1.6340d7933e9f9",
"last_id": "1268192070"
}