阿里巴巴1688API接口调用获取商品详情,获得1688商品详情展示示例(封装可高并发)

发布时间 2023-05-26 18:11:43作者: API测试开发Cris

 

阿里巴巴1688是中国最大的B2B电子商务平台之一,它的模式是电商平台+批发市场。与其他B2B平台不同,1688平台一开始就被设计成为由制造商直接销售给经销商和零售商的批发市场。这些制造商以自己的公司名义进行销售,而不是通过代理商或经销商销售,这有助于减少中间环节的费用,从而使整个系统更加高效。 

在阿里巴巴1688上,买家可以通过搜索关键词或者浏览不同的类别来找到他们想要的产品,同时还可以与卖家沟通交流,了解产品的详细信息,进一步确定是否合适购买。卖家也可以根据买家的需求推荐适合的产品,并提供相应的服务。

在采购过程中,买家可以与多个卖家进行比较,选择最佳的供应商。同时,阿里巴巴1688还提供了交易保障服务,确保买卖双方的权益得到保护。

总之,阿里巴巴1688采用了B2B电商平台和批发市场结合的模式,通过优化供应链和中间环节,实现了高效的采购体验,并为买卖双方提供交易保障服务。

接下来我会展示阿里巴巴1688API接口调用获取商品详情,获得1688商品详情具体操作展示示例

  1. 参数说明

    • 通用参数说明

      • version:API版本
      • key:>>GET<<调用key,测试key:test_api_key

      • api_name:API类型[item_get,item_search]
      • cache:[yes,no]默认yes,将调用缓存的数据,速度比较快
      • result_type:[json,xml,serialize,var_export]返回数据格式,默认为json
      • lang:[cn,en,ru] 翻译语言,默认cn简体中文
    • API:item_get 参数说明: num_iid:宝贝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=610947572360

参数说明:num_iid:1688商品ID
sales_data:&sales_data=1 获取近30天成交数据
agent:&agent=1 获取1688分销代发价格数据

{
	"item": {
		"num_iid": "610947572360",
		"title": "官网Qin2 pro多亲AI手机戒网瘾学生机智能助手同学防沉迷4G手机",
		"desc_short": "",
		"price": "799.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "799.00",
		"nick": "qin多亲科技",
		"num": "2",
		"min_num": "2",
		"detail_url": "https://detail.1688.com/offer/610947572360.html",
		"pic_url": "https://cbu01.alicdn.com/img/ibank/2020/063/830/13235038360_979836901.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "7",
		"cid": "50903",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "<div id=\"offer-template-0\"></div><p>深圳市多亲科技有限公司(简称&ldquo;多亲科技&rdquo;)成立于2014年9月是国内人工智能硬件解决方案供应商。多亲科技积极推动人工智能技术的创新研发,在人工智能终端设备、系统软件的研发和生产领域,具有深厚的技术沉淀与实力。</p><p>多亲产品销售网络覆盖线上线下,欢迎企业定制、团购、经销代理。</p><p>优质的产品、过硬的技术、完善的服务、是我们合作双赢的开篇。</p><p>欢迎有意向者实地考察,<strong><span >来电垂询:13662284449.</span></strong></p><p>温馨提示:</p><p>1、可定制:承接各种订单订制!为客户定制机身、开机画面、预装软件、包装等定制!<br />2、质量保证:通讯行业十年以上,质量保障看得见。<br />3、价格实惠:本店是工厂直供,没有中间商差价,yi站到客,薄利多销。<br />4、售后服务:本店出售的所有产品均提供壹年的质保。因质量原因退换货(非人为因素)30天内换新。</p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/588/942/13197249885_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/778/789/13234987877_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/109/489/13234984901_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/156/072/13197270651_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/270/710/13235017072_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/735/999/13234999537_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/549/252/13197252945_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/409/552/13197255904_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/247/935/13278539742_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/355/845/13278548553_979836901.jpg\" /><br /><br /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/917/372/13197273719_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/969/099/13234990969_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/175/455/13278554571_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/427/386/13314683724_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/331/365/13278563133_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/654/500/13235005456_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/542/110/13235011245_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/291/020/13235020192_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/329/635/13278536923_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/996/155/13278551699_979836901.jpg\" /></p><p><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/230/920/13235029032_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/464/972/13197279464_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/380/275/13278572083_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/999/462/13197264999_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/868/245/13278542868_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/843/410/13235014348_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/897/200/13235002798_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/914/800/13235008419_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/709/762/13197267907_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/427/545/13278545724_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/741/003/13197300147_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/175/710/13235017571_979836901.jpg\" /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/410/485/13278584014_979836901.jpg\" /><br /><br /><img alt=\"undefined\" src=\"https://cbu01.alicdn.com/img/ibank/2020/863/665/13278566368_979836901.jpg\" /><br /><br /><br /></p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.64706fe56243e&p=1778788018&k=i_key&t=1685090278\" style=\"display:none\" />",
		"desc_img": [
			"https://cbu01.alicdn.com/img/ibank/2020/588/942/13197249885_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/778/789/13234987877_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/109/489/13234984901_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/156/072/13197270651_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/270/710/13235017072_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/735/999/13234999537_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/549/252/13197252945_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/409/552/13197255904_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/247/935/13278539742_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/355/845/13278548553_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/917/372/13197273719_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/969/099/13234990969_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/175/455/13278554571_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/427/386/13314683724_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/331/365/13278563133_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/654/500/13235005456_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/542/110/13235011245_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/291/020/13235020192_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/329/635/13278536923_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/996/155/13278551699_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/230/920/13235029032_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/464/972/13197279464_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/380/275/13278572083_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/999/462/13197264999_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/868/245/13278542868_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/843/410/13235014348_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/897/200/13235002798_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/914/800/13235008419_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/709/762/13197267907_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/427/545/13278545724_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/741/003/13197300147_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/175/710/13235017571_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/410/485/13278584014_979836901.jpg",
			"https://cbu01.alicdn.com/img/ibank/2020/863/665/13278566368_979836901.jpg"
		],
		"item_imgs": [
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/063/830/13235038360_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/445/748/13819847544_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/487/543/13234345784_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/296/695/13418596692_979836901.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2020/167/778/13462877761_979836901.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "广东省 深圳市",
		"post_fee": "0",
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "",
		"video": "https://cloud.video.taobao.com/play/u/2206619673102/p/2/e/6/t/1/254600009298.mp4",
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "",
		"props_name": "0:0:64GB;1:0:铁灰色;1:1:瓷白色",
		"prop_imgs": {
			"prop_img": []
		},
		"property_alias": "0:0:64GB;1:0:铁灰色;1:1:瓷白色",
		"props": [
			{
				"name": "品牌",
				"show": false,
				"value": "多亲"
			},
			{
				"name": "型号",
				"show": false,
				"value": "Qin 2 Pro"
			},
			{
				"name": "手机类型",
				"show": false,
				"value": "老人手机"
			},
			{
				"name": "外形",
				"show": false,
				"value": "直板"
			},
			{
				"name": "主屏尺寸",
				"show": false,
				"value": "大屏幕(5.0英寸—5.9英寸)"
			},
			{
				"name": "网络制式",
				"show": false,
				"value": "移动4G(TD-LTE),联通/电信4G(FDD-LTE)"
			},
			{
				"name": "操作系统",
				"show": false,
				"value": "Android 9.0系统"
			},
			{
				"name": "电池容量",
				"show": false,
				"value": "2100"
			},
			{
				"name": "摄像头像素",
				"show": false,
				"value": "1200万-1999万"
			},
			{
				"name": "存储卡",
				"show": false,
				"value": "支持存储卡"
			},
			{
				"name": "处理器核心",
				"show": false,
				"value": "八核"
			},
			{
				"name": "运行内存",
				"show": false,
				"value": "2GB"
			},
			{
				"name": "手机版本",
				"show": false,
				"value": "大陆行货"
			},
			{
				"name": "售后类型",
				"show": false,
				"value": "全国联保"
			},
			{
				"name": "上市时间",
				"show": false,
				"value": "2019"
			},
			{
				"name": "适用送礼场合",
				"show": false,
				"value": "生日,节日,展销会,广告促销,员工福利,商务馈赠,颁奖纪念,公关策划"
			},
			{
				"name": "3C证书编号",
				"show": false,
				"value": "2019161606319519"
			},
			{
				"name": "CPU品牌",
				"show": false,
				"value": "展讯"
			},
			{
				"name": "运营商",
				"show": false,
				"value": "中国移动,中国联通,中国电信"
			},
			{
				"name": "网络模式",
				"show": false,
				"value": "单卡单模"
			},
			{
				"name": "机身内存",
				"show": false,
				"value": "64GB"
			},
			{
				"name": "颜色",
				"show": false,
				"value": "铁灰色,瓷白色"
			},
			{
				"name": "电信设备进网许可证编号",
				"show": false,
				"value": "02-B613-192425"
			},
			{
				"name": "是否专利货源",
				"show": false,
				"value": "否"
			}
		],
		"total_sold": null,
		"skus": {
			"sku": [
				{
					"price": "799.00",
					"total_price": 0,
					"sales": "165",
					"properties": "0:0;1:0",
					"properties_name": "0:0:机身内存:64GB;1:0:颜色:铁灰色",
					"quantity": "1",
					"sku_id": "4302217872901",
					"spec_id": "0eb631954bfe8fb00a45824fc6193f2f"
				},
				{
					"price": "799.00",
					"total_price": 0,
					"sales": "88",
					"properties": "0:0;1:1",
					"properties_name": "0:0:机身内存:64GB;1:1:颜色:瓷白色",
					"quantity": "1",
					"sku_id": "4309097072612",
					"spec_id": "63828b15ad641fdb131775f32e4c050c"
				}
			]
		},
		"seller_id": "2206619673102",
		"sales": 0,
		"shop_id": "2206619673102",
		"props_list": {
			"0:0": "机身内存:64GB",
			"1:0": "颜色:铁灰色",
			"1:1": "颜色:瓷白色"
		},
		"seller_info": {
			"nick": "qin多亲科技",
			"user_num_id": "2206619673102",
			"sid": "b2b-2206619673102e9470",
			"title": "深圳市多亲科技有限公司",
			"zhuy": "https://winport.m.1688.com/page/index.html?memberId=b2b-2206619673102e9470",
			"shop_name": "深圳市多亲科技有限公司"
		},
		"tmall": "false",
		"error": "",
		"warning": "",
		"url_log": [],
		"unit": null,
		"is_support_mix": null,
		"mix_amount": null,
		"mix_begin": null,
		"mix_number": null,
		"scale": "",
		"sellUnit": "部",
		"sales_data": null,
		"_ddf": "ti",
		"props_img": [],
		"sales_info": {
			"seller_num": "",
			"repeat_rate_purchase": "",
			"per_capita_purchases": "",
			"comment_num": "",
			"comment_url": ""
		},
		"format_check": "ok",
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "f75c59301daa3fc1610a8563c998f851",
	"secache_time": 1685090278,
	"secache_date": "2023-05-26 16:37:58",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:62 max:10100 all[137=62+36+39];expires:2030-12-31",
	"execution_time": "1.407",
	"server_time": "Beijing/2023-05-26 16:37:58",
	"client_ip": "106.6.38.178",
	"call_args": {
		"num_iid": "610947572360"
	},
	"api_type": "1688",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "0.85MB",
	"request_id": "gw-4.64706fe56243e",
	"last_id": "1765058424"
}