公共参数
请求地址: 注册调用key接入
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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=621a49842d8d110006f94e0a
参数说明:num_iid:商品ID ; delist_time不为空代表商品已下架;数据会获取异常。
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item |
item[] | 0 | 根据ID取商品详情 | |
detail_url |
String | 0 | https://www.vvic.com/item/13778639 | 商品链接 |
taobao_url |
String | 0 | //img.alicdn.com/imgextra/i2/1068779134/O1CN01eSyiY62HLQAgEuRU2_!!1068779134.jpg | 商品淘宝图片 |
hid |
Bigint | 0 | 32205P35# | 货号 |
crumbs |
Mix | 0 | 导航菜单列表 | |
title |
String | 0 | 2019夏季女装新款时尚圆领短袖气质百搭修身连衣裙32205P35 | 商品标题 |
desc_short |
String | 0 | 商品简介 | |
brand |
String | 0 | 品牌名称 | |
brandId |
String | 0 | 品牌ID | |
cid |
String | 0 | ||
pic_url |
String | 0 | //img.alicdn.com/imgextra/i2/1068779134/O1CN01eSyiY62HLQAgEuRU2_!!1068779134.jpg | 商品图片 |
item_imgs |
Mix | 0 | [{"url": "https://images-cn-4.ssl-images-amazon.com/images/I/51xKSHKPrqL.jpg"}] | 商品图片列表 |
nick |
String | 0 | 麦购批发168 | 卖家昵称 |
num |
String | 0 | ||
num_iid |
String | 0 | 13778639 | 商品ID |
sales |
String | 0 | ||
price |
String | 0 | 35.00 | 批发价 |
orginal_price |
String | 0 | 85.00 | 淘宝价 |
type |
String | 0 | ||
seller_cids |
String | 0 | ||
input_pids |
String | 0 | ||
input_str |
String | 0 | ||
item_weight |
String | 0 | ||
valid_thru |
String | 0 | ||
modified_time |
Date | 0 | 2019-03-22 13:54 | 上新时间 |
delist_time |
Date | 0 | ||
desc |
String | 0 | ||
delivery |
String | 0 | ||
guarantee |
String | 0 | ||
returns |
String | 0 | ||
stuff_status |
String | 0 | ||
location |
String | 0 | 发货地 | |
post_fee |
Float | 0 | 物流费用 | |
express_fee |
Float | 0 | 快递费用 | |
ems_fee |
Float | 0 | EMS费用 | |
shipping_to |
String | 0 | 发货至 | |
has_discount |
String | 0 | ||
freight_payer |
String | 0 | ||
has_invoice |
String | 0 | ||
has_warranty |
String | 0 | ||
has_showcase |
String | 0 | ||
increment |
String | 0 | ||
approve_status |
String | 0 | ||
postage_id |
String | 0 | ||
product_id |
String | 0 | ||
auction_point |
String | 0 | ||
item_img |
String | 0 | ||
prop_imgs |
Mix | 0 | {"prop_img": [{"properties": "", "url": ""}]} | 商品属性图片列表 |
props_img |
Mix | 0 | {} | |
video |
Mix | 0 | [] | 商品视频 |
outer_id |
String | 0 | ||
is_virtual |
String | 0 | ||
sample_id |
String | 0 | 商品风格标识ID | |
is_promotion |
Boolean | 0 | ||
props_name |
String | 0 | 20509:28315:尺码:M;1627207:28341:颜色分类:黑色 | 商品属性名 |
property_alias |
String | 0 | 20509:28317:XL;1627207:28341:黑色; | 商品属性别名 |
props_list |
Mix | 0 | {"20509:28317": "尺码:XL"} | 商品属性列表 |
seller_id |
Int | 0 | 卖家ID | |
shop_id |
Int | 0 | 43803 | 店铺ID |
props |
Mix | 0 | ||
seller_info |
Mix | 0 | {"nick": "麦购批发168", "years": "", "city": "", "bail": "", "level": null, "kucun": "989", "rate": "", "score": "", "delivery_score": "", "item_score": "", "shop_name": "麦购批发168", "user_num_id": "", "sid": "", "title": "麦购批发168", "zhuy": "", "localtion": "浙江省 杭州男装", "telephone": "", "weixin": null, "qq": null, "company_name": "", "position": "其他市场 麦购批发168", "menu": []} | 卖家信息 |
left_recommend |
Mix | 0 | [{"title": "伊喜莱菲", "num_iid": "13738053", "url": "www.vvic.com/item/13738053", "pic_url": "//img.alicdn.com/imgextra/i2/0/O1CN01ZTYm281rz6TlvUXze_!!0-item_pic.jpg", "price": "120.00", "sid": "43196"}] | 橱窗推荐商品列表 |
right_shop |
Mix | 0 | [{"sid": "www.vvic.com42573", "url": "www.vvic.com/shop/42573", "pic_url": "//img.vvic.com/1515072324263_298579.png?x-oss-process=image/resize,mfit,h_300,w_200", "nick": "四季星座226-1(原206V)", "position": "四季星座 226-1"}] | 店铺推荐 |
right_recommend |
Mix | 0 | [{"url": "www.vvic.com/item/7208761", "num_iid": "7208761", "title": "秋冬跑量款 男士韩版修身呢料大衣 FY01/P60", "sid": "43282", "pic_url": "//img.vvic.com/1515071385652_744623.jpg?x-oss-process=image/crop%2Cx_133%2Cy_0%2Cw_534%2Ch_800/resize%2Cw_200%2Ch_300", "price": "60.00", "gold_pic": "", "nick": "电商基地B331", "position": "电商基地 B331", "year": "2013-04-27"}] | 商品推荐列表 |
tmall |
String | 0 | 是否天猫 | |
error |
String | 0 | 错误信息 | |
warning |
String | 0 | 警告信息 | |
url_log |
String | 0 | ||
shopinfo |
Mix | 0 | {"shop_name": ""} | 店铺信息 |
promo_type |
String | 0 | ||
shop_item |
Mix | 0 | [] | |
relate_items |
Mix | 0 | [] | |
sku |
Mix | 0 | {"sku": [{"price": "35.00", "orginal_price": "85.0,", "properties": "20509:28317;1627207:28341", "properties_name": "20509:28317:尺码:XL;1627207:28341:颜色:黑色", "quantity": "989", "sku_id": "142082809"}]} | 商品规格信息列表 |
PHP请求示例
&secret=<您自己的apiSecret>&num_iid=621a49842d8d110006f94e0a";
$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));
?>
响应示例
{
"item": {
"detail_url": "https://www.vvic.com/item/4459879",
"taobao_url": "//img.alicdn.com/imgextra/i2/665379942/TB2TR5Xkl8lpuFjy0FnXXcZyXXa_!!665379942.jpg",
"hid": "8810#",
"crumbs": "",
"title": "实拍2017春夏新款纯色气质通勤立领无袖修身显瘦钉钻连衣裙",
"desc_short": "",
"brand": "",
"brandId": "",
"cid": "20000106",
"pic_url": "//img.alicdn.com/imgextra/i2/665379942/TB2TR5Xkl8lpuFjy0FnXXcZyXXa_!!665379942.jpg",
"item_imgs": [
{
"url": "//img.alicdn.com/imgextra/i2/665379942/TB2TR5Xkl8lpuFjy0FnXXcZyXXa_!!665379942.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i4/665379942/TB2Ii8Ij3xlpuFjSszgXXcJdpXa_!!665379942.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i4/665379942/TB2AmTRlHlmpuFjSZFlXXbdQXXa_!!665379942.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i2/665379942/TB263pyj4XlpuFjSsphXXbJOXXa_!!665379942.jpg"
},
{
"url": "//img.alicdn.com/imgextra/i2/665379942/TB21xuajYFkpuFjy1XcXXclapXa_!!665379942.jpg"
}
],
"nick": "哈麦女装",
"num": "156",
"num_iid": "4459879",
"sales": 0,
"price": "39.00",
"orginal_price": "",
"type": "",
"seller_cids": "",
"input_pids": "",
"input_str": "",
"item_weight": "",
"valid_thru": "",
"modified_time": "2017-04-01 14:11:08",
"delist_time": "此商品已于 2017-12-22 15:11:08 下架",
"desc": "
",
"delivery": "",
"guarantee": "",
"returns": "",
"stuff_status": "",
"location": "",
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"freight_payer": "",
"has_invoice": "",
"has_warranty": "",
"has_showcase": "",
"increment": "",
"approve_status": "",
"postage_id": "",
"product_id": "",
"auction_point": "",
"item_img": "",
"prop_imgs": {
"prop_img": [
{
"properties": "1627207:28341",
"url": "//img.alicdn.com/imgextra/i3/665379942/TB2iRKXjW8lpuFjy0FpXXaGrpXa_!!665379942.jpg"
},
{
"properties": "1627207:4950473",
"url": "//img.alicdn.com/imgextra/i3/665379942/TB2O.RHj80kpuFjy1zdXXXuUVXa_!!665379942.jpg"
},
{
"properties": "",
"url": ""
}
]
},
"props_img": {
"1627207:28341": "//img.alicdn.com/imgextra/i3/665379942/TB2iRKXjW8lpuFjy0FpXXaGrpXa_!!665379942.jpg",
"1627207:4950473": "//img.alicdn.com/imgextra/i3/665379942/TB2O.RHj80kpuFjy1zdXXXuUVXa_!!665379942.jpg",
"": ""
},
"video": [],
"outer_id": "",
"is_virtual": "",
"sample_id": "",
"is_promotion": "",
"props_name": "20509:28314:尺码:S;20509:28315:尺码:M;20509:28316:尺码:L;20509:28317:尺码:XL;20509:6145171:尺码:2XL;1627207:28341:颜色:黑色;1627207:4950473:颜色:桔红色",
"property_alias": "20509:28314:S;20509:28315:M;20509:28316:L;20509:28317:XL;20509:6145171:2XL;1627207:28341:黑色;1627207:4950473:桔红色",
"props_list": {
"20509:28314": "尺码:S",
"20509:28315": "尺码:M",
"20509:28316": "尺码:L",
"20509:28317": "尺码:XL",
"20509:6145171": "尺码:2XL",
"1627207:28341": "颜色:黑色",
"1627207:4950473": "颜色:桔红色"
},
"seller_id": "",
"shop_id": "{{=data.default_shop_id}}\" vda=\"link|account\">{{=data.username}}