API名称:item_get - 获得suning商品详情 (苏宁)
请求参数:num_iid=0070134261/703410301
参数说明:num_iid:店铺ID/商品ID
注册key和secret
点击申请试用
响应参数
Version: Date:
\
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
num_iid | Bigint | 0 | 10228868562 | 商品ID |
title | String | 0 | 百慕爱BAIMUAI休闲鞋 女2019春季 透气 时尚 推荐舒适增高运动鞋女板鞋女英伦小白鞋女学生磨砂皮女鞋 | 商品标题 |
desc_short | String | 0 | 秋冬新款 热销推荐 | 商品简介 |
price | Int | 0 | 0 | 价格 |
total_price | Int | 0 | 0 | |
suggestive_price | Int | 0 | 0 | |
orginal_price | Int | 0 | 0 | 原价 |
nick | String | 0 | 卖家昵称 | |
num | Int | 0 | 99 | |
min_num | Int | 0 | 0 | |
detail_url | String | 0 | http://product.suning.com/0070089297/10228868562.html | 商品链接 |
pic_url | String | 0 | //imgservice.suning.cn/uimg1/b2c/image/9mYpQTuKpP6YfYQ0KEgafA.jpg_800w_800h_4e | 商品图片 |
brand | String | 0 | 品牌名称 | |
brandId | String | 0 | 品牌ID | |
rootCatId | String | 0 | 顶级分类ID | |
cid | String | 0 | ||
crumbs | Mix | 0 | {"0": "服装鞋帽", "340557": "女鞋", "501404": "女士帆布鞋"} | 导航列表 |
created_time | String | 0 | ||
modified_time | String | 0 | ||
delist_time | String | 0 | ||
desc | String | 0 | ||
desc_img | Mix | 0 | ["//uimgproxy.suning.cn/uimg1/sop/commodity/gsVgSK_aShsXbB2fgGg7fA.png"] | 商品描述图片 |
item_imgs | Mix | 0 | [//imgservice.suning.cn/uimg1/b2c/image/9mYpQTuKpP6YfYQ0KEgafA.jpg_800w_800h_4e] | 商品图片 |
item_weight | String | 0 | ||
item_size | String | 0 | ||
location | String | 0 | 发货地 | |
post_fee | String | 0 | 物流费用 | |
express_fee | String | 0 | 快递费用 | |
ems_fee | String | 0 | EMS费用 | |
shipping_to | String | 0 | 发货至 | |
has_discount | String | 0 | ||
video | Mix | 0 | [] | 商品视频 |
is_virtual | String | 0 | ||
sample_id | String | 0 | 商品风格标识ID | |
is_promotion | String | 0 | ||
props_name | String | 0 | color-ex:08:颜色:白色;color-ex:09:颜色:黑色;buytype:16:尺码:35码 | 商品属性名 |
prop_imgs | Mix | 0 | {"prop_img": []} | 商品属性图片列表 |
property_alias | String | 0 | color-ex:08:白色;buytype:16:35码 | 商品属性别名 |
props | Mix | 0 | [] | 商品详情 |
total_sold | String | 0 | ||
skus | Mix | 0 | {"sku": [{"price": null, "orginal_price": "", "properties": "color-ex:08;buytype:16", "properties_name": "color-ex:08:颜色:白色;buytype:16:尺码:35码", "quantity": 0, "sku_id": 0 }] } | 商品规格信息 |
seller_id | String | 0 | 卖家ID | |
sales | String | 0 | 销量 | |
shop_id | String | 0 | 店铺ID | |
props_list | Mix | 0 | {"color-ex:08": "颜色:白色","buytype:16": "尺码:35码"} | 商品属性 |
seller_info | Mix | 0 | {"nick": "", "city": null, "level": "", "rate": "", "totle_pf": null, "desc_pf": null, "server_pf": null, "send_pf": null, "shop_type": "", "user_num_id": "", "shopid": "", "shopname": "", "shop_href": "http://shop.suning.com/", "tel": null, "menu": [] } | 卖家信息 |
tmall | Boolean | 0 | 是否天猫 | |
error | String | 0 | 错误信息 | |
warning | String | 0 | 警告信息 | |
url_log | String | 0 | ||
sold | Int | 0 | 0 | |
props_img | Mix | 0 | [] | |
shopinfo | String | 0 | {"shop_name": ""} | 店铺信息 |
shop_item | Mix | 0 | [] | |
relate_items | Mix | 0 | [] |
请求示例
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/suning/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=0070134261/703410301";
$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));
?>
响应示例
https://api-gw.onebound.cn/suning/item_get/?key=&
&num_iid=0070134261/703410301&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"item": {
"num_iid": "0070134261/703410301",
"title": "罗技(Logitech) M235 无线光电鼠标2代 升级优联技术台式笔记本电脑无线办公省电鼠标 (灰色)",
"desc_short": "",
"price": null,
"total_price": 0,
"suggestive_price": 0,
"orginal_price": null,
"nick": null,
"num": "99",
"min_num": 0,
"detail_url": "http://product.suning.com/0070134261/703410301.html",
"pic_url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_1.jpg_400w_400h_4e",
"brand": null,
"brandId": null,
"rootCatId": null,
"cid": null,
"crumbs": {
"0": "电脑/办公/外设",
"157237": "电脑外设",
"157250": "鼠标"
},
"created_time": "",
"modified_time": "",
"delist_time": "",
"desc": "<img src=\"https://image.suning.cn/uimg/sop/commodity/180469403026839773750900_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/829807810124167623648200_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/186865161514348058123327_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/131542364233716381943090_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/763953680205707567428220_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/414487999203006843787490_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/861748885456060517999000_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/953397344178553966030960_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/210232585971362766796270_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/101179711710153822981808_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/199857039911322248487598_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/957732684206097424622610_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/181933260774892681354540_x.jpg\" /><img src=\"//image.suning.cn/uimg/sop/commodity/213219414110141579504563_x.jpg\" /><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.63296c67966ad&p=1778788156&k=i_key&t=1663659113\" style=\"display:none\" />",
"desc_img": [],
"item_imgs": [
{
"url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_1.jpg_800w_800h_4e"
},
{
"url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_2.jpg_800w_800h_4e"
},
{
"url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_3.jpg_800w_800h_4e"
},
{
"url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_4.jpg_800w_800h_4e"
},
{
"url": "//image.suning.cn/uimg/b2c/newcatentries/0070134261-000000000703410301_5.jpg_800w_800h_4e"
}
],
"item_weight": "",
"item_size": "",
"location": "",
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"video": [],
"is_virtual": "",
"sample_id": "",
"is_promotion": "",
"props_name": "0:0:颜色:罗技M170灰色;0:1:颜色:罗技M170蓝色;0:2:颜色:罗技M170红色;0:3:颜色:罗技M171黑色;0:4:颜色:罗技M171蓝色;0:5:颜色:罗技M171红色;0:6:颜色:罗技M186黑色灰边;0:7:颜色:罗技M186黑色红边;0:8:颜色:罗技M186黑色蓝边;0:9:颜色:罗技M235黑色;0:10:颜色:罗技M280黑色;0:11:颜色:罗技M280蓝色;0:12:颜色:罗技M280红色;0:13:颜色:罗技M280灰色;0:14:颜色:罗技M325黑色;0:15:颜色:罗技M650黑色;0:16:颜色:罗技M650白色;0:17:颜色:罗技M650粉色;0:18:颜色:罗技M650L黑色;0:19:颜色:罗技M650L白色",
"prop_imgs": {
"prop_img": []
},
"property_alias": "0:0:罗技M170灰色;0:1:罗技M170蓝色;0:2:罗技M170红色;0:3:罗技M171黑色;0:4:罗技M171蓝色;0:5:罗技M171红色;0:6:罗技M186黑色灰边;0:7:罗技M186黑色红边;0:8:罗技M186黑色蓝边;0:9:罗技M235黑色;0:10:罗技M280黑色;0:11:罗技M280蓝色;0:12:罗技M280红色;0:13:罗技M280灰色;0:14:罗技M325黑色;0:15:罗技M650黑色;0:16:罗技M650白色;0:17:罗技M650粉色;0:18:罗技M650L黑色;0:19:罗技M650L白色",
"props": [
{
"name": "品牌",
"value": "罗技(Logitech)"
},
{
"name": "鼠标产品类型",
"value": "办公鼠标,蓝牙鼠标"
},
{
"name": "产品型号",
"value": "罗技M235"
},
{
"name": "颜色",
"value": "灰色"
},
{
"name": "适用类型",
"value": "笔记本便携,办公"
},
{
"name": "供电模式",
"value": "五号电池"
},
{
"name": "鼠标接口",
"value": "USB"
},
{
"name": "工作方式",
"value": "光电"
},
{
"name": "人体工学",
"value": "是"
},
{
"name": "按键数",
"value": "2"
}
],
"total_sold": "",
"skus": {
"sku": [
{
"price": null,
"orginal_price": null,
"properties": "0:0;",
"properties_name": "0:0:颜色:罗技M170灰色",
"sku_id": "000000010535842005"
},
{
"price": null,
"orginal_price": null,
"properties": "0:1;",
"properties_name": "0:1:颜色:罗技M170蓝色",
"sku_id": "000000010535855478"
},
{
"price": null,
"orginal_price": null,
"properties": "0:2;",
"properties_name": "0:2:颜色:罗技M170红色",
"sku_id": "000000010535847232"
},
{
"price": null,
"orginal_price": null,
"properties": "0:3;",
"properties_name": "0:3:颜色:罗技M171黑色",
"sku_id": "000000000702044852"
},
{
"price": null,
"orginal_price": null,
"properties": "0:4;",
"properties_name": "0:4:颜色:罗技M171蓝色",
"sku_id": "000000000702054145"
},
{
"price": null,
"orginal_price": null,
"properties": "0:5;",
"properties_name": "0:5:颜色:罗技M171红色",
"sku_id": "000000000702050066"
},
{
"price": null,
"orginal_price": null,
"properties": "0:6;",
"properties_name": "0:6:颜色:罗技M186黑色灰边",
"sku_id": "000000000702296951"
},
{
"price": null,
"orginal_price": null,
"properties": "0:7;",
"properties_name": "0:7:颜色:罗技M186黑色红边",
"sku_id": "000000000702300333"
},
{
"price": null,
"orginal_price": null,
"properties": "0:8;",
"properties_name": "0:8:颜色:罗技M186黑色蓝边",
"sku_id": "000000000702301626"
},
{
"price": null,
"orginal_price": null,
"properties": "0:9;",
"properties_name": "0:9:颜色:罗技M235黑色",
"sku_id": "000000000703410301"
},
{
"price": null,
"orginal_price": null,
"properties": "0:10;",
"properties_name": "0:10:颜色:罗技M280黑色",
"sku_id": "000000000702191572"
},
{
"price": null,
"orginal_price": null,
"properties": "0:11;",
"properties_name": "0:11:颜色:罗技M280蓝色",
"sku_id": "000000000702205116"
},
{
"price": null,
"orginal_price": null,
"properties": "0:12;",
"properties_name": "0:12:颜色:罗技M280红色",
"sku_id": "000000000702208226"
},
{
"price": null,
"orginal_price": null,
"properties": "0:13;",
"properties_name": "0:13:颜色:罗技M280灰色",
"sku_id": "000000000702210716"
},
{
"price": null,
"orginal_price": null,
"properties": "0:14;",
"properties_name": "0:14:颜色:罗技M325黑色",
"sku_id": "000000000105021656"
},
{
"price": null,
"orginal_price": null,
"properties": "0:15;",
"properties_name": "0:15:颜色:罗技M650黑色",
"sku_id": "000000012356492176"
},
{
"price": null,
"orginal_price": null,
"properties": "0:16;",
"properties_name": "0:16:颜色:罗技M650白色",
"sku_id": "000000012356492094"
},
{
"price": null,
"orginal_price": null,
"properties": "0:17;",
"properties_name": "0:17:颜色:罗技M650粉色",
"sku_id": "000000012356492144"
},
{
"price": null,
"orginal_price": null,
"properties": "0:18;",
"properties_name": "0:18:颜色:罗技M650L黑色",
"sku_id": "000000012356492259"
},
{
"price": null,
"orginal_price": null,
"properties": "0:19;",
"properties_name": "0:19:颜色:罗技M650L白色",
"sku_id": "000000012356492215"
}
]
},
"seller_id": "",
"sales": "",
"shop_id": "70134261",
"props_list": {
"0:0": "颜色:罗技M170灰色",
"0:1": "颜色:罗技M170蓝色",
"0:2": "颜色:罗技M170红色",
"0:3": "颜色:罗技M171黑色",
"0:4": "颜色:罗技M171蓝色",
"0:5": "颜色:罗技M171红色",
"0:6": "颜色:罗技M186黑色灰边",
"0:7": "颜色:罗技M186黑色红边",
"0:8": "颜色:罗技M186黑色蓝边",
"0:9": "颜色:罗技M235黑色",
"0:10": "颜色:罗技M280黑色",
"0:11": "颜色:罗技M280蓝色",
"0:12": "颜色:罗技M280红色",
"0:13": "颜色:罗技M280灰色",
"0:14": "颜色:罗技M325黑色",
"0:15": "颜色:罗技M650黑色",
"0:16": "颜色:罗技M650白色",
"0:17": "颜色:罗技M650粉色",
"0:18": "颜色:罗技M650L黑色",
"0:19": "颜色:罗技M650L白色"
},
"seller_info": {
"nick": null,
"city": null,
"shopid": "70134261",
"shopname": null,
"title": null,
"zhuy": "https://shop.suning.com/70134261/index.html",
"tel": null
},
"tmall": "false",
"warning": "",
"url_log": [],
"sold": null,
"props_img": [],
"shopinfo": {
"shop_name": null
},
"format_check": "fail"
},
"error": "data error",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "zh-CN",
"current_lang": "cn"
},
"reason": "data error 接口文档:https://open.onebound.cn/help/api/suning.item_get.html",
"error_code": "5000",
"cache": 0,
"api_info": "today:83 max:10100 all[161=83+30+48];expires:2030-12-31",
"execution_time": "1.944",
"server_time": "Beijing/2022-09-20 15:31:53",
"client_ip": "106.6.39.60",
"call_args": {
"num_iid": "0070134261/703410301"
},
"api_type": "suning",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "3.16MB",
"request_id": "gw-1.63296c67966ad",
"last_id": "1228089629"
}