搜款网根据ID取商品详情 API接口vvic.item_get,使用方法和步骤

 

搜款网根据商品ID获取商品详情API的具体使用方法和步骤如下:

首先,您需要注册成为搜款网的开发者,并申请API密钥。确保您已经获得了访问该接口的权限和相关的访问令牌(Access Token)。

其次,构建API请求。您需要知道目标商品的ID,这是获取商品详情的关键参数。同时,您可能还需要提供其他参数,如API密钥,以证明您的访问权限。

然后,将请求发送到搜款网指定的API接口地址。通常,这会是一个HTTP POST或GET请求,具体取决于搜款网的API文档要求。

最后,处理API的响应。一旦搜款网的服务器处理了您的请求,它会返回一个响应。这个响应通常是一个JSON格式的数据包,包含了您请求的商品详情。您需要使用编程语言中的JSON解析库来解析这个响应,并从中提取出您需要的商品信息。

vvic.item_get

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

 

请求参数

请求参数: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)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误

请注意,不同的电商平台或API提供商可能会有不同的接口设计、参数要求以及返回数据的格式。因此,在使用搜款网的API时,务必参考其官方提供的API文档,以确保正确使用API并获取准确的数据。

另外,由于API的使用可能涉及到数据安全和隐私保护的问题,您还需要确保在使用API的过程中遵守相关的法律法规和平台规定,不得滥用API或泄露用户的个人信息。

综上所述,搜款网根据商品ID获取商品详情API的使用涉及到注册开发者账号、申请API密钥、构建API请求、发送请求以及处理响应等多个步骤。正确使用API可以帮助您快速获取商品详情,提升业务效率。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值