1688开放平台API接口获取商品详情信息

news2025/1/10 20:34:12

一、API接口简介

1688开放平台提供了丰富的API接口,帮助开发者快速实现各种业务需求。其中,商品详情信息的获取是很多业务场景中的基础功能。通过调用相应的API接口,您可以获取到商品的基本信息、价格、库存等数据,为您的业务提供强大的支持。

二、API接口请求方式

1688开放平台的API接口采用了RESTful设计风格,您可以通过HTTP协议的GET和POST方法来调用这些接口。为了确保数据的安全性,建议您使用HTTPS协议进行请求。

三、获取商品详情信息的API接口

要获取商品详情信息,您需要调用以下API接口:

  1. 商品详细信息查询接口(product_get):通过商品ID获取商品的详细信息。
  2. 商品属性查询接口(product_attribute_get):通过商品ID和属性ID获取商品的属性值。
  3. 商品图片查询接口(product_image_get):通过商品ID和图片类型获取商品的图片信息。

四、API接口参数说明

返回数据:  请求示例

{
	"item": {
		"num_iid": "570076908845",
		"title": "2023夏季新款女装韩版连衣裙印花女中长款短袖t恤女学生上衣打底",
		"desc_short": "",
		"price": "9.50",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "10.50",
		"nick": "鹏发制衣厂",
		"num": "48430",
		"min_num": "1",
		"detail_url": "https://detail.1688.com/offer/570076908845.html",
		"pic_url": "https://cbu01.alicdn.com/img/ibank/2018/087/474/8898474780_1830039265.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "10166",
		"cid": "1031919",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "<div id=\"offer-template-0\"></div><p><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/364/997/8935799463_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/187/474/8898474781_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/464/997/8935799464_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/960/632/8918236069_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/079/277/8935772970_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/817/444/8898444718_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/475/564/8898465574_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/558/397/8935793855_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/416/967/8935769614_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/027/444/8898444720_1830039265.jpg\" align=\"absmiddle\"/><img  src=\"https://cbu01.alicdn.com/img/ibank/2018/202/405/8898504202_1830039265.jpg\" align=\"absmiddle\"/></p>\r\n<div >...........</div><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.655c4c98aa7cd&p=1032056093&k=i_key&t=1700547741\" style=\"display:none\" />",
		"desc_img": [
			"https://cbu01.alicdn.com/img/ibank/2018/364/997/8935799463_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/187/474/8898474781_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/464/997/8935799464_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/960/632/8918236069_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/079/277/8935772970_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/817/444/8898444718_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/475/564/8898465574_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/558/397/8935793855_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/416/967/8935769614_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/027/444/8898444720_1830039265.jpg",
			"https://cbu01.alicdn.com/img/ibank/2018/202/405/8898504202_1830039265.jpg"
		],
		"item_imgs": [
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2018/087/474/8898474780_1830039265.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2018/027/444/8898444720_1830039265.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2019/886/157/10421751688_1830039265.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2019/531/521/10448125135_1830039265.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2019/405/397/10421793504_1830039265.jpg"
			},
			{
				"url": "https://cbu01.alicdn.com/img/ibank/2018/817/444/8898444718_1830039265.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "广东揭阳",
		"post_fee": 3,
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "",
		"video": "https://cloud.video.taobao.com/play/u/2204599425/p/2/e/6/t/1/315338923798.mp4",
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "",
		"props_name": "0:0:颜色:黑色;0:1:颜色:白色;1:0:尺码:M;1:1:尺码:L;1:2:尺码:XL;1:3:尺码:XXL;1:4:尺码:3XL",
		"prop_imgs": {
			"prop_img": [
				{
					"properties": "0:0",
					"url": "https://cbu01.alicdn.com/img/ibank/2018/027/444/8898444720_1830039265.jpg"
				},
				{
					"properties": "0:1",
					"url": "https://cbu01.alicdn.com/img/ibank/2018/817/444/8898444718_1830039265.jpg"
				}
			]
		},
		"property_alias": "0:0:黑色;0:1:白色;1:0:M;1:1:L;1:2:XL;1:3:XXL;1:4:3XL",
		"props": [
			{
				"name": "面料名称",
				"show": false,
				"value": "牛奶丝"
			},
			{
				"name": "主面料成分",
				"show": false,
				"value": "聚酯纤维(涤纶)"
			},
			{
				"name": "主面料成分2",
				"show": false,
				"value": "聚酯纤维(涤纶)"
			},
			{
				"name": "图案",
				"show": false,
				"value": "印花"
			},
			{
				"name": "款式",
				"show": false,
				"value": "套头"
			},
			{
				"name": "袖长",
				"show": false,
				"value": "短袖"
			},
			{
				"name": "工艺",
				"show": false,
				"value": "印花/印染"
			},
			{
				"name": "货号",
				"show": false,
				"value": "903#"
			},
			{
				"name": "品牌",
				"show": false,
				"value": "茵如澜"
			},
			{
				"name": "版型",
				"show": false,
				"value": "宽松型"
			},
			{
				"name": "衣长",
				"show": false,
				"value": "中长款(65cm<衣长≤80cm)"
			},
			{
				"name": "领型",
				"show": false,
				"value": "圆领"
			},
			{
				"name": "袖型",
				"show": false,
				"value": "常规袖"
			},
			{
				"name": "流行元素",
				"show": false,
				"value": "印花"
			},
			{
				"name": "上市年份/季节",
				"show": false,
				"value": "2023年夏季"
			},
			{
				"name": "颜色",
				"show": false,
				"value": "黑色,白色"
			},
			{
				"name": "尺码",
				"show": false,
				"value": "M,L,XL,XXL,3XL"
			},
			{
				"name": "风格类型",
				"show": false,
				"value": "气质通勤"
			},
			{
				"name": "主面料成分含量",
				"show": false,
				"value": "90%(不含)-95%(含)"
			},
			{
				"name": "风格",
				"show": false,
				"value": "通勤风"
			},
			{
				"name": "跨境风格类型",
				"show": false,
				"value": "气质优雅"
			},
			{
				"name": "是否跨境货源",
				"show": false,
				"value": "是"
			},
			{
				"name": "主面料成分2含量",
				"show": false,
				"value": "90%(不含)-95%(含)"
			},
			{
				"name": "主要下游销售地区1",
				"show": false,
				"value": "欧美"
			},
			{
				"name": "主要下游销售地区2",
				"show": false,
				"value": "东南亚"
			}
		],
		"total_sold": null,
		"skus": {
			"sku": [
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "8391",
					"properties": "0:0;1:0",
					"properties_name": "0:0:颜色:黑色;1:0:尺码:M",
					"quantity": "4035",
					"sku_id": "3672970980984",
					"spec_id": "4b2120e532948daa11e58e09bb260801"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "7529",
					"properties": "0:0;1:1",
					"properties_name": "0:0:颜色:黑色;1:1:尺码:L",
					"quantity": "4166",
					"sku_id": "3672970980986",
					"spec_id": "b99ece08861a79e13a4dba90e97ebff8"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "6742",
					"properties": "0:0;1:2",
					"properties_name": "0:0:颜色:黑色;1:2:尺码:XL",
					"quantity": "4914",
					"sku_id": "3672970980988",
					"spec_id": "5c337082186ff55b2d8267560ac89d59"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "3384",
					"properties": "0:0;1:3",
					"properties_name": "0:0:颜色:黑色;1:3:尺码:XXL",
					"quantity": "6911",
					"sku_id": "3843956243934",
					"spec_id": "dc048f4577f72dd6b932615edef1fab6"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "2713",
					"properties": "0:0;1:4",
					"properties_name": "0:0:颜色:黑色;1:4:尺码:3XL",
					"quantity": "2874",
					"sku_id": "3954190437042",
					"spec_id": "4488bdac02f75a3cbe99ddaa5eb60838"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "5517",
					"properties": "0:1;1:0",
					"properties_name": "0:1:颜色:白色;1:0:尺码:M",
					"quantity": "5457",
					"sku_id": "3672970980983",
					"spec_id": "cef93beef156f1799e736c649f36efae"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "5365",
					"properties": "0:1;1:1",
					"properties_name": "0:1:颜色:白色;1:1:尺码:L",
					"quantity": "5585",
					"sku_id": "3672970980985",
					"spec_id": "82114cbd2c10b5e97b01af1510807e2d"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "4510",
					"properties": "0:1;1:2",
					"properties_name": "0:1:颜色:白色;1:2:尺码:XL",
					"quantity": "6285",
					"sku_id": "3672970980987",
					"spec_id": "c45d8408137e34adf8e695250c42a2e9"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "2188",
					"properties": "0:1;1:3",
					"properties_name": "0:1:颜色:白色;1:3:尺码:XXL",
					"quantity": "7705",
					"sku_id": "3843956243933",
					"spec_id": "df78564262818d6eb0c428a37ab4a251"
				},
				{
					"price": "10.50",
					"total_price": 0,
					"sales": "1737",
					"properties": "0:1;1:4",
					"properties_name": "0:1:颜色:白色;1:4:尺码:3XL",
					"quantity": "498",
					"sku_id": "3954190437041",
					"spec_id": "f10897bb259d8dcf6717ed95fd2cfb95"
				}
			]
		},
		"seller_id": "2204599425",
		"sales": 2882,
		"shop_id": "2204599425",
		"props_list": {
			"0:0": "颜色:黑色",
			"0:1": "颜色:白色",
			"1:0": "尺码:M",
			"1:1": "尺码:L",
			"1:2": "尺码:XL",
			"1:3": "尺码:XXL",
			"1:4": "尺码:3XL"
		},
		"seller_info": {
			"nick": "鹏发制衣厂",
			"user_num_id": "2204599425",
			"sid": "b2b-2204599425",
			"title": "汕头鹏发服装实力供应商",
			"zhuy": "https://winport.m.1688.com/page/index.html?memberId=b2b-2204599425",
			"shop_name": "鹏发制衣厂"
		},
		"tmall": "false",
		"error": "",
		"warning": "",
		"url_log": [],
		"unit": null,
		"is_support_mix": "true",
		"mix_amount": "1",
		"mix_begin": "0",
		"mix_number": "2147483647",
		"scale": "",
		"sellUnit": "件",
		"props_img": {
			"0:0": "https://cbu01.alicdn.com/img/ibank/2018/027/444/8898444720_1830039265.jpg",
			"0:1": "https://cbu01.alicdn.com/img/ibank/2018/817/444/8898444718_1830039265.jpg"
		},
		"sales_data": null,
		"priceRange": [
			[
				"1",
				"10.50"
			],
			[
				"50",
				"10.00"
			],
			[
				"500",
				"9.50"
			]
		],
		"priceRangeOriginal": [],
		"_ddf": "ti",
		"sales_info": {
			"seller_num": "",
			"repeat_rate_purchase": "",
			"per_capita_purchases": "",
			"comment_num": "",
			"comment_url": ""
		},
		"format_check": "ok",
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "3705ef5a309b3740ed93a4be9ddd7d64",
	"secache_time": 1700547741,
	"secache_date": "2023-11-21 14:22:21",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:95 max:10000 all[328=95+173+60];expires:2030-12-31",
	"execution_time": "4.514",
	"server_time": "Beijing/2023-11-21 14:22:21",
	"client_ip": "61.131.237.29",
	"call_args": {
		"num_iid": "570076908845"
	},
	"api_type": "1688",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "3.59MB",
	"request_id": "gw-1.655c4c98aa7cd",
	"last_id": "2293375807"
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1234492.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Android Jetpack】理解ViewModel

文章目录 ViewModel实现ViewModelViewModel的生命周期在Fragments间分享数据ViewModel和SavedInstanceState对比ViewModel原理ViewModel与AndroidViewModel ViewModel Android系统提供控件&#xff0c;比如Activity和Fragment&#xff0c;这些控件都是具有生命周期方法&#x…

鸿蒙系统扫盲(二):再谈鸿蒙是不是安卓套壳?

最近小米发布了澎湃OS&#xff0c;vivo发布了蓝OS&#xff0c;好像自从华为回归后&#xff0c;大伙都开始写自己的OS了&#xff0c;小米官方承认是套壳安卓&#xff0c;然后被大家喷了&#xff0c;于是鸿蒙是不是安卓套壳的话题又回到了大众的视野&#xff0c;今天在讨论下这个…

HarmonyOS ArkTS开发语言介绍(三)

1 引言 Mozilla创造了JS&#xff0c;Microsoft创建了TS&#xff0c;Huawei进一步推出了ArkTS。 从最初的基础的逻辑交互能力&#xff0c;到具备类型系统的高效工程开发能力&#xff0c;再到融合声明式UI、多维状态管理等丰富的应用开发能力&#xff0c;共同组成了相关的演进脉…

vue3 uniapp h5 安卓和iOS开发适配踩坑记录

font-size适配屏幕大小及iOS和安卓状态栏及安全距离的处理 App.vue <script setup lang"ts"> import { onLaunch, onShow, onHide } from "dcloudio/uni-app"; import ./main.scss onLaunch(() > {console.log("App Launch");var wid…

gitlab设置项目clone地址

直接在线修改地址 虽然是个小问题但是我查了很多都是说要去修改配置文件&#xff0c;可是我是docker部署的&#xff0c;修改配置文件之后我还要重新打包镜像想想都不咋规范&#xff0c;后才终于知道可以直接设置&#xff0c;不要改配置文件&#xff01;&#xff01;&#xff0…

亚马逊运营中动态/静态住宅IP代理的应用有哪些?跨境电商必备

作为全球最大的电商平台之一&#xff0c;亚马逊已经成为许多商家的首选销售平台。而代理IP作为近几天互联网的热门工具&#xff0c;在跨境电商界也起着非常强大的作用。那么在亚马逊运营中&#xff0c;适合动态住宅代理还是静态住宅代理呢&#xff1f;下面我们一起来探索&#…

C语言for循环实现斐波那契数列

斐波那契数列指的是这样一个数列 0,1, 1, 2, 3, 5, 8, 13, 21… 这个数列从第3项开始&#xff0c;每一项都等于前两项之和。 int main(){//前两项分别定义为i&#xff0c;j 两项之和我们定义为k//由于从第三项开始&#xff0c;所以先将前两项打印出来0和1int i0,j1,k;printf(&…

解决requests库进行爬虫ip请求时遇到的错误的方法

目录 一、超时错误 二、连接错误 三、拒绝服务错误 四、内容编码错误 五、HTTP错误 在利用requests库进行网络爬虫的IP请求时&#xff0c;我们可能会遇到各种错误&#xff0c;如超时、连接错误、拒绝服务等等。这些错误通常是由目标网站的限制、网络问题或我们的爬虫代码中…

手机照片一键去水印轻松摆脱不需要的旁观者

是什么让照片中的意外客人成为挑战&#xff1f;我们都经历过这种情况——在热门地标或繁忙的城市街道拍照&#xff0c;不可避免地会在画面中捕捉到陌生人。有时他们会无意中抢尽风头&#xff0c;转移观众的注意力。 这些水印不仅影响了照片的美观度&#xff0c;还给我们的观赏体…

【Element】el-progress 自定义进度条

一、背景 要求弹窗内显示进度条&#xff0c;根据接口获取当前进度值&#xff0c;间隔5秒调用接口获取最新进度值&#xff0c;当进度值为100时&#xff0c;允许关闭进度条弹窗 二、效果 三、实现步骤 3.1、按钮绑定事件&#xff0c;打开弹窗 <el-button class"cance…

dump备份命令

dump备份文件系统&#xff0c;或者目录 文件系统有等级划分&#xff0c;0为全部备份&#xff0c;1.针对上一次有变动的文件进行备份&#xff0c;以此类崔 目录备份&#xff1a;只有一个等级0&#xff0c; 针对文件系统类型有要求ext2&#xff0c;ext3&#xff0c;如果是其他…

(附源码)基于SSM多源异构数据关联技术构建智能校园-计算机毕设 64366

SSM多源异构数据关联技术构建智能校园 摘 要 随着科学技术的飞速发展&#xff0c;社会的方方面面、各行各业都在努力与现代的先进技术接轨&#xff0c;通过科技手段来提高自身的优势&#xff0c;高校当然也不能排除在外。多源异构数据关联技术构建的智能校园是以实际运用为开发…

养猫7年:猫罐头牌子哪个好用?5款口碑好的猫罐头推荐!

猫罐头牌子哪个好用&#xff1f;刚开始养猫真的好心累&#xff0c;因为一开始啥也不懂&#xff0c;关于猫猫的饮食这也不会选那也不会选&#xff0c;就很容易踩雷&#xff0c;为此花了不少钱&#xff0c;相信很多新手铲屎官现在也处于这种状态吧。 作为一个养猫7年的资深铲屎官…

高德地图点击搜索触发输入提示

减少调用次数&#xff0c;不用每输入一次调用一次&#xff0c;输入完后再触发搜索 效果图&#xff1a; ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png dom结构 <div class"seach"><van-searchshow-actionv-model"addressVal"…

docker和docker-compose生产的容器,不在同一个网段,解决方式

在实际项目中&#xff0c;使用docker run xxXx 和docker-compose up -d 不在同一个网段&#xff0c;一个是默认是172.17.x.x, 另一个是172.19.x.x。为解决这个问题需要自定义一个网络&#xff0c;我命名为“my-bridge” 首先熟悉几条命令&#xff1a; docker network ls 或…

构建和应用卡尔曼滤波器 (KF)--扩展卡尔曼滤波器 (EKF)

作为一名数据科学家&#xff0c;我们偶尔会遇到需要对趋势进行建模以预测未来值的情况。虽然人们倾向于关注基于统计或机器学习的算法&#xff0c;但我在这里提出一个不同的选择&#xff1a;卡尔曼滤波器&#xff08;KF&#xff09;。 1960 年代初期&#xff0c;Rudolf E. Kal…

学生党的福利!移动云重磅升级存储产品体系

如今&#xff0c;随着科学技术不断发展进步&#xff0c;电子产品的生产技术也变得越来越成熟。一方面&#xff0c;电子产品的功能越来越强大&#xff0c;质量越来越可靠&#xff1b;另一方面&#xff0c;产品价格越来越便宜&#xff0c;在人们生活中越来越普及。大学生群体可以…

解决ubuntu23.10 wifi不能使用的问题

解决ubuntu23.10 wifi不能使用的问题 今天升级到了ubuntu23.10之后&#xff0c;wifi不能使用。 参考此视频解决了问题&#xff1a; https://www.youtube.com/watch?appdesktop&vn92O8rNKVb0 sudo lshw -class networkcd /etc/pm/sleep.dlssudo touch configsudo gedit co…

HelpLook VS Zendesk:哪种知识库软件更适合您的业务

为任何组织创造一个开放且协作的环境至关重要。然而&#xff0c;高水平的员工每周可能会花费多达30个小时处理电子邮件和协作&#xff0c;对他们的工作效率产生了重大影响。 为了解决这个挑战&#xff0c;建立一种高效的信息共享方法至关重要&#xff0c;不会妨碍团队的生产力…

WinEdt 11.1编辑器的尝鲜体验

WinEdt 11.1编辑器的尝鲜体验 2023年5月19日&#xff0c;WinEdt 11.1版本发布了&#xff0c;相比WinEdt 10.3, 最新版更加漂亮&#xff0c;更加友好&#xff0c;更加好用了&#xff01; 最大的改变是WinEdt 11.1 有了自带的WinEdtPDF阅读器&#xff0c;所以不再需要下载第三方…