搜款网根据商品ID获取商品详情API的具体使用方法和步骤如下:
首先,您需要注册成为搜款网的开发者,并申请API密钥。确保您已经获得了访问该接口的权限和相关的访问令牌(Access Token)。
其次,构建API请求。您需要知道目标商品的ID,这是获取商品详情的关键参数。同时,您可能还需要提供其他参数,如API密钥,以证明您的访问权限。
然后,将请求发送到搜款网指定的API接口地址。通常,这会是一个HTTP POST或GET请求,具体取决于搜款网的API文档要求。
最后,处理API的响应。一旦搜款网的服务器处理了您的请求,它会返回一个响应。这个响应通常是一个JSON格式的数据包,包含了您请求的商品详情。您需要使用编程语言中的JSON解析库来解析这个响应,并从中提取出您需要的商品信息。
vvic.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=621a49842d8d110006f94e0a
参数说明:num_iid:商品ID ; delist_time不为空代表商品已下架;数据会获取异常。
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item | item[] | 0 | 根据ID取商品详情 |
响应示例
{
"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": "<p><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i4/665379942/TB2syVujYBkpuFjy1zkXXbSpFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i1/665379942/TB2XhPMlOpnpuFjSZFIXXXh2VXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2oWLOlJ0opuFjSZFxXXaDNVXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i4/665379942/TB2zBYPlItnpuFjSZFvXXbcTpXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i2/665379942/TB2aVn1lHBmpuFjSZFuXXaG_XXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i2/665379942/TB2lHcalNlmpuFjSZPfXXc9iXXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB29DfOlUhnpuFjSZFEXXX0PFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2YV_RlOlnpuFjSZFgXXbi7FXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i2/665379942/TB2g1elfJhvOuFjSZFBXXcZgFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2BJbBlNBmpuFjSZFsXXcXpFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i2/665379942/TB2M7vKlUdnpuFjSZPhXXbChpXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i1/665379942/TB2TlbPlItnpuFjSZFvXXbcTpXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2H.PhlHBnpuFjSZFGXXX51pXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i4/665379942/TB2eoLhlHBnpuFjSZFGXXX51pXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2b4vElUhnpuFjSZFpXXcpuXXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i1/665379942/TB2d4DPlNxmpuFjSZFNXXXrRXXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i1/665379942/TB2cjBIj3xlpuFjSszgXXcJdpXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2YszBlNBmpuFjSZFsXXcXpFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i3/665379942/TB2JPFfj3JkpuFjSszcXXXfsFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i4/665379942/TB2WTFCj80lpuFjSszdXXcdxFXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i2/665379942/TB2BLBMjYFlpuFjy0FgXXbRBVXa_!!665379942.jpg\" align=\"absmiddle\"><img style=\"max-width: 750.0px;\" src=\"https://img.alicdn.com/imgextra/i1/665379942/TB24JdPj1J8puFjy1XbXXagqVXa_!!665379942.jpg\" align=\"absmiddle\"> </p>",
"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}}</a> </div>\r\n\r\n <div class=\"index_islogin_links\">\r\n <span class=\"j_index_support hide\">\r\n <a href=\"/shop/stocking.html\" class=\"btn btn-default j-backup-message\" vda=\"link|account\">备货提醒<i class=\"tip-tab-sub\"></i></a>\r\n <a href=\"/shop/bill.html\" class=\"btn btn-default\" vda=\"link|account\">交易记录</a>\r\n </span>\r\n <span class=\"j_index_unsupport hide\">\r\n <a href=\"/shop/new/home.html\" class=\"btn btn-default btn-x-large\" vda=\"link|account\">档口中心</a>\r\n </span>\r\n </div>\r\n\r\n <div class=\"login_infos\">\r\n <a href=\"/shop/new/customer.html?fr=index\" class=\"item\" vda=\"link|account\">\r\n <span class=\"red\" id=\"shopFollow\">{{=data.shop_favShop_num}}</span>\r\n <span class=\"txt\">关注</span>\r\n </a>\r\n <a href=\"/shop/new/itemData.html?pos_resource_id=11",
"props": [],
"seller_info": {
"nick": "哈麦女装",
"years": "",
"city": "",
"bail": "",
"level": "2746",
"kucun": "156",
"rate": "",
"score": "",
"delivery_score": "",
"item_score": "",
"shop_name": "哈麦女装",
"user_num_id": "",
"sid": "",
"title": "哈麦女装",
"zhuy": "https://www.vvic.com/shop/14352",
"localtion": "广东省 广州",
"telephone": "",
"weixin": "he13798036948",
"qq": "1757090978",
"company_name": "",
"position": "新金马 5楼 E073",
"menu": [],
"phone": "13798036948\r\n13719193141"
},
"left_recommend": [],
"right_shop": [
{
"sid": "www.vvic.com34015",
"url": "www.vvic.com/shop/34015",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "艾莱尔",
"position": "女人街 C22-B"
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fd9c455319676000107bc58",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fd97bb0319676000107b17a",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6043a2684179860001952afa",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/604122ca4561290001132803",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6042653c45612900011447d8",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/60154d15f37e6900016882bd",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6041e2ac417986000193898c",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603b928d45612900010ad9fd",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f57806f821d3c0001afe929",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff31cb82cab6f0001594388",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f7f4a251840730001d345f3",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603c431de4d8bc000141d2ec",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fe5e9b5c7f3ac000103dcfa",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ffc4079c7f3ac00010cbb6d",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f8e7123144b1c0001f204b0",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603225c64561290001fd5f34",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fec46392cab6f000156efbc",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6010f869c7f3ac000119f6e5",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/604510b9e4d8bc0001440f14",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603e0a0741798600018ea141",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff1a6092cab6f000158948a",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6034806c4561290001002b74",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603cebf741798600018cef49",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f676f131628c80001ae33bd",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603f14644561290001100a21",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fdb56d99e469b0001d26e64",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6018dce3eedb1500019c5f1f",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6010f86a2cab6f00016a7115",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff2ec02c7f3ac000108ab89",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603309044561290001fe34ad",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6047b10c4561290001194991",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/60335b24e4d8bc00013fe691",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fd39c997ea9970001b9b205",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f41c7d5f936040001936153",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/601d27418a159e0001921841",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6043a1db4179860001952a8f",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff121182cab6f00015858c9",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603547b84561290001025746",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603babade4d8bc000141bd30",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5f69f3f5f492b00001179da1",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6010f2a7c7f3ac000119f4ea",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5efc81cf95663d0001dee9eb",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6044949c4561290001160348",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ffc432ec7f3ac00010cbc46",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fba6a05ada7f9000123856e",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fbb4aab2bd1270001f5b88b",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/604126074561290001132a90",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fe9f8d02cab6f000155ebb0",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/60335b3ae4d8bc00013fe6ab",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/602a1e3cc5dc0100018eb1c4",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6031fb80c472530001c51375",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6040e048e4d8bc0001430402",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5e8d9b834b6e2b0001425ef3",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/6044c0817f57940001640e9f",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/603638bd4179860001833a05",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5fffe224c7f3ac00010f1af1",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff2278b297f7d0001875ea1",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/5ff22869297f7d0001875eac",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/600089e5c7f3ac00010f875a",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/604490b64561290001160125",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com",
"pic_url": "{{=item.index_img_url}}",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.comjavascript:void(0);",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.comgoods.html",
"url": "www.vvic.com/item/{{=el.item_id}}",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/item/{{=vid}}",
"pic_url": "//src.vvic.com/statics/v2/css/img/blank.gif",
"nick": "",
"position": "\r\n "
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/about.html",
"pic_url": "//g.alicdn.com/sd/ncpc/nc.js?t=2021031108",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issue/daifa4.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issue/daifa6.html#e1",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issue/daifa6.html#e1",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issue/daifa7.html#f1",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issue/daifa7.html#f2",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/index.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dangkou5.html#e6",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dangkou5.html#e5",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dangkou5.html#e4",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dangkou5.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dkbq.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/fendang.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dkxx.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/dangkou1.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com/help/issueshop/tblj.html",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.comstocking.html",
"url": "www.vvic.com/help/index_shop.html",
"pic_url": "//src.vvic.com/statics/v2/css/img/mini.png",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com",
"pic_url": "",
"nick": "",
"position": ""
},
{
"sid": "www.vvic.com",
"url": "www.vvic.com",
"pic_url": "//g.alicdn.com/sd/ncpc/nc.js?t=2021031108",
"nick": "",
"position": ""
}
],
"right_recommend": [],
"tmall": "",
"error": "",
"warning": "",
"url_log": "",
"shopinfo": {
"shop_name": ""
},
"promo_type": "",
"shop_item": [],
"relate_items": [],
"skus": {
"sku": [
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28314;1627207:28341",
"properties_name": "20509:28314:尺码:S;1627207:28341:颜色:黑色",
"quantity": "156",
"sku_id": "44766600"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28314;1627207:4950473",
"properties_name": "20509:28314:尺码:S;1627207:4950473:颜色:桔红色",
"quantity": "156",
"sku_id": "50665750"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28315;1627207:28341",
"properties_name": "20509:28315:尺码:M;1627207:28341:颜色:黑色",
"quantity": "156",
"sku_id": "44766602"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28315;1627207:4950473",
"properties_name": "20509:28315:尺码:M;1627207:4950473:颜色:桔红色",
"quantity": "156",
"sku_id": "50665752"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28316;1627207:28341",
"properties_name": "20509:28316:尺码:L;1627207:28341:颜色:黑色",
"quantity": "156",
"sku_id": "44766601"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28316;1627207:4950473",
"properties_name": "20509:28316:尺码:L;1627207:4950473:颜色:桔红色",
"quantity": "156",
"sku_id": "50665751"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28317;1627207:28341",
"properties_name": "20509:28317:尺码:XL;1627207:28341:颜色:黑色",
"quantity": "156",
"sku_id": "44766598"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:28317;1627207:4950473",
"properties_name": "20509:28317:尺码:XL;1627207:4950473:颜色:桔红色",
"quantity": "156",
"sku_id": "50665749"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:6145171;1627207:28341",
"properties_name": "20509:6145171:尺码:2XL;1627207:28341:颜色:黑色",
"quantity": "156",
"sku_id": "44895352"
},
{
"price": "39.00",
"orginal_price": "78.00",
"properties": "20509:6145171;1627207:4950473",
"properties_name": "20509:6145171:尺码:2XL;1627207:4950473:颜色:桔红色",
"quantity": "156",
"sku_id": "50665748"
}
]
},
"desc_img": [
"https://img.alicdn.com/imgextra/i4/665379942/TB2syVujYBkpuFjy1zkXXbSpFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i1/665379942/TB2XhPMlOpnpuFjSZFIXXXh2VXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2oWLOlJ0opuFjSZFxXXaDNVXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i4/665379942/TB2zBYPlItnpuFjSZFvXXbcTpXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i2/665379942/TB2aVn1lHBmpuFjSZFuXXaG_XXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i2/665379942/TB2lHcalNlmpuFjSZPfXXc9iXXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB29DfOlUhnpuFjSZFEXXX0PFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2YV_RlOlnpuFjSZFgXXbi7FXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i2/665379942/TB2g1elfJhvOuFjSZFBXXcZgFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2BJbBlNBmpuFjSZFsXXcXpFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i2/665379942/TB2M7vKlUdnpuFjSZPhXXbChpXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i1/665379942/TB2TlbPlItnpuFjSZFvXXbcTpXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2H.PhlHBnpuFjSZFGXXX51pXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i4/665379942/TB2eoLhlHBnpuFjSZFGXXX51pXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2b4vElUhnpuFjSZFpXXcpuXXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i1/665379942/TB2d4DPlNxmpuFjSZFNXXXrRXXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i1/665379942/TB2cjBIj3xlpuFjSszgXXcJdpXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2YszBlNBmpuFjSZFsXXcXpFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i3/665379942/TB2JPFfj3JkpuFjSszcXXXfsFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i4/665379942/TB2WTFCj80lpuFjSszdXXcdxFXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i2/665379942/TB2BLBMjYFlpuFjy0FgXXbRBVXa_!!665379942.jpg",
"https://img.alicdn.com/imgextra/i1/665379942/TB24JdPj1J8puFjy1XbXXagqVXa_!!665379942.jpg"
]
},
"secache": "e399d97b3d320748d1ff0a3e9306db52",
"secache_time": 1615423814,
"secache_date": "2021-03-11 08:50:14",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 2.221,
"server_time": "Beijing/2021-03-11 08:50:14",
"client_ip": "106.6.35.144",
"call_args": {
"num_iid": "4459879",
"area_id": "440111"
},
"api_type": "vvic",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.12MB",
"request_id": "gw-4.6049694488c0c"
}
异常示例
{
"error": "item-not-found",
"reason": "商品没找到",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}
错误码解释
状态代码(error_code) | 状态信息 | 详细描述 | 是否收费 |
---|---|---|---|
0000 | success | 接口调用成功并返回相关数据 | 是 |
2000 | Search success but no result | 接口访问成功,但是搜索没有结果 | 是 |
4000 | Server internal error | 服务器内部错误 | 否 |
4001 | Network error | 网络错误 | 否 |
4002 | Target server error | 目标服务器错误 | 否 |
4003 | Param error | 用户输入参数错误 | 忽略 |
4004 | Account not found | 用户帐号不存在 | 忽略 |
4005 | Invalid authentication credentials | 授权失败 | 忽略 |
4006 | API stopped | 您的当前API已停用 | 忽略 |
4007 | Account stopped | 您的账户已停用 | 忽略 |
4008 | API rate limit exceeded | 并发已达上限 | 忽略 |
4009 | API maintenance | API维护中 | 忽略 |
4010 | API not found with these values | API不存在 | 忽略 |
4012 | Please add api first | 请先添加api | 忽略 |
4013 | Number of calls exceeded | 调用次数超限 | 忽略 |
4014 | Missing url param | 参数缺失 | 忽略 |
4015 | Wrong pageToken | 参数pageToken有误 | 忽略 |
4016 | Insufficient balance | 余额不足 | 忽略 |
4017 | timeout error | 请求超时 | 否 |
5000 | unknown error | 未知错误 | 否 |
请注意,不同的电商平台或API提供商可能会有不同的接口设计、参数要求以及返回数据的格式。因此,在使用搜款网的API时,务必参考其官方提供的API文档,以确保正确使用API并获取准确的数据。
另外,由于API的使用可能涉及到数据安全和隐私保护的问题,您还需要确保在使用API的过程中遵守相关的法律法规和平台规定,不得滥用API或泄露用户的个人信息。
综上所述,搜款网根据商品ID获取商品详情API的使用涉及到注册开发者账号、申请API密钥、构建API请求、发送请求以及处理响应等多个步骤。正确使用API可以帮助您快速获取商品详情,提升业务效率。