1688批发工厂商品详情数据接口、商品采集接口(标题、详情、价格、主图)

接口背景

阿里巴巴(1688.com)是全球企业间(B2B)电子商务的著名品牌,为数千万网商提供海量商机信息和便捷安全的在线交易市场,也是商人们以商会友、真实互动的社区平台。供应商在该平台上展示和销售各类商品,而买家可以根据自己的需求选择合适的商品进行采购。为了提供更好的服务和方便用户获取商品信息,开发1688批发工厂的商品详情数据接口成为一项必要工作。

商品详情数据接口的开发背景主要有以下几个方面:

1. 数据获取:1688批发工厂上的供应商发布了大量商品,这些商品的详细信息包括商品名称、价格、规格、图片、描述等。为了获取这些信息,需要通过接口获取,并将其展示给买家。

2. 数据更新:由于供应商的商品信息可能会发生变动,比如价格调整、库存更新等,因此需要及时更新商品详情数据接口,以确保展示给买家的信息是最新的。

3. 平台对接:1688批发工厂可能需要将商品详情数据接口提供给其他平台或合作伙伴使用,比如供应链管理系统、ERP系统等。这样可以实现不同平台之间的数据互通和共享,提高工作效率。

4. 用户需求:买家在选择商品时需要获取商品的详细信息,通过商品详情数据接口可以方便地获取所需信息,并进行比较和选择。这样能够满足用户对商品信息的需求,提升用户体验。

总之,为了提供更好的服务和满足用户需求,开发1688批发工厂商品详情数据接口是必要的工作。通过接口的开发和使用,可以方便地获取和更新商品信息,实现不同系统之间的数据共享和互通,提高工作效率和用户体验。

1688商品详情页 

1688批发工厂商品详情数据接口、商品采集接口(标题、详情、价格、主图)_第1张图片

 商品详情接口item_get调用示例

&secret=<您自己的apiSecret>&num_iid=705570417259";
$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": {
		"num_iid": "705570417259",
		"title": "新品上市,多亲QIN3 Pro全面屏智能防沉迷学生手机小爱同学备用机",
		"desc_short": "",
		"price": "1399.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "1399.00",
		"nick": "深圳市多亲科技有限公司",
		"num": "280",
		"min_num": "2",
		"detail_url": "https://detail.1688.com/offer/705570417259.html",
		"pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN018vf1yj1YmlPigSdfh_!!2206619673102-0-cib.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": "7",
		"cid": "50903",
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "
", "desc_img": [ "https://cbu01.alicdn.com/img/ibank/O1CN01JSbB5A1YmlPVs0mku_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Nj6fg21YmlPfAEIY9_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01WZnAkw1YmlPVs1Fqv_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01b2x51H1YmlPeniVHA_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01IK6R9l1YmlPeniEd3_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01DGL2dj1YmlPelHVrk_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Fgy7ys1YmlPfAGyt8_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Kag7zp1YmlPaY75kR_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Vjk0hm1YmlPenm3h1_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01kRPhJ61YmlPgHMUml_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01oU3luz1YmlPelINzJ_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01lYmUlX1YmlPbuOZHE_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01kiMBSS1YmlPelIvF3_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Qo3B541YmlPelH6xI_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01haL2TM1YmlPhsIIuc_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01obaWiU1YmlPmwqOOx_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01hj2GrO1YmlPl25UKm_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01kPe2uH1YmlPid67jy_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01q9hFvq1YmlPbuMcgr_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01pvGGSn1YmlPaY7tit_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01Jzh9SU1YmlPjJsXL1_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN015NwUYK1YmlPm6jPXu_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01eSxJPf1YmlPVs4g1e_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01lmmz141YmlPbuO229_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01fv4ROa1YmlPgHOJBe_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN017RKsxs1YmlPhsJmQp_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01AAfudR1YmlPenmGFo_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01mHM4Il1YmlPennT6T_!!2206619673102-0-cib.jpg", "https://cbu01.alicdn.com/img/ibank/O1CN01hqEyLj1YmlPmwq3fh_!!2206619673102-0-cib.jpg" ], "item_imgs": [ { "url": "https://cbu01.alicdn.com/img/ibank/O1CN018vf1yj1YmlPigSdfh_!!2206619673102-0-cib.jpg" }, { "url": "https://cbu01.alicdn.com/img/ibank/O1CN01rri00G1YmlPcj7TeV_!!2206619673102-0-cib.jpg" }, { "url": "https://cbu01.alicdn.com/img/ibank/O1CN01HGKdHY1YmlPnkv1HB_!!2206619673102-0-cib.jpg" }, { "url": "https://cbu01.alicdn.com/img/ibank/O1CN01sW23VT1YmlPmv7uhF_!!2206619673102-0-cib.jpg" }, { "url": "https://cbu01.alicdn.com/img/ibank/O1CN01fEwY9p1YmlPcj5CHG_!!2206619673102-0-cib.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/255265859583.mp4", "is_virtual": "", "sample_id": "", "is_promotion": "", "props_name": "0:0:机身内存:128GB;1:0:颜色:深灰色;1:1:颜色:白色;1:2:颜色:粉红色", "prop_imgs": { "prop_img": [] }, "property_alias": "0:0:128GB;1:0:深灰色;1:1:白色;1:2:粉红色", "props": [ { "name": "品牌", "value": "多亲" }, { "name": "型号", "value": "QIN3 PRO" }, { "name": "手机类型", "value": "通用型" }, { "name": "外形", "value": "直板" }, { "name": "主屏尺寸", "value": "大屏幕(5.0英寸—5.9英寸)" }, { "name": "网络制式", "value": "移动4G(TD-LTE),联通/电信4G(FDD-LTE)" }, { "name": "操作系统", "value": "ANDROID" }, { "name": "电池容量", "value": "3000mAh-3999mAh" }, { "name": "摄像头像素", "value": "800万-1199万" }, { "name": "存储卡", "value": "不支持存储卡" }, { "name": "处理器核心", "value": "八核" }, { "name": "运行内存", "value": "6GB" }, { "name": "手机版本", "value": "大陆行货" }, { "name": "售后类型", "value": "店铺三包" }, { "name": "上市时间", "value": "2023年3月" }, { "name": "OEM", "value": "可OEM" }, { "name": "适用送礼场合", "value": "生日,节日,展销会,广告促销,周年庆典,商务馈赠" }, { "name": "3C证书编号", "value": "2023161606683286" }, { "name": "CPU品牌", "value": "联发科" }, { "name": "运营商", "value": "中国移动,中国联通,中国电信" }, { "name": "网络模式", "value": "单卡单模" }, { "name": "机身内存", "value": "128GB" }, { "name": "颜色", "value": "深灰色,白色,粉红色" }, { "name": "是否跨境出口专供货源", "value": "否" }, { "name": "电信设备进网许可证编号", "value": "02-B613-223892" }, { "name": "是否专利货源", "value": "否" } ], "total_sold": null, "skus": { "sku": [ { "price": "1399.00", "total_price": 0, "sales": "20", "properties": "0:0;1:0", "properties_name": "0:0:机身内存:128GB;1:0:颜色:深灰色", "quantity": "80", "sku_id": "5137600727655", "spec_id": "8f44c352fddfc2eb1ebf504fc3438ce1" }, { "price": "1399.00", "total_price": 0, "sales": "0", "properties": "0:0;1:1", "properties_name": "0:0:机身内存:128GB;1:1:颜色:白色", "quantity": "100", "sku_id": "5137600727656", "spec_id": "ff1c4045a7ba7f9f2737602c444fde10" }, { "price": "1399.00", "total_price": 0, "sales": "0", "properties": "0:0;1:2", "properties_name": "0:0:机身内存:128GB;1:2:颜色:粉红色", "quantity": "100", "sku_id": "5137600727657", "spec_id": "ef491d2e5721d9f41ae5b575a359946c" } ] }, "seller_id": "2206619673102", "sales": 0, "shop_id": "2206619673102", "props_list": { "0:0": "机身内存:128GB", "1:0": "颜色:深灰色", "1:1": "颜色:白色", "1:2": "颜色:粉红色" }, "seller_info": { "nick": "深圳市多亲科技有限公司", "user_num_id": "2206619673102", "sid": "b2b-2206619673102e9470", "title": "深圳市多亲科技有限公司", "zhuy": "https://winport.m.1688.com/page/index.html?memberId=b2b-2206619673102e9470", "shop_name": "qin多亲科技" },

商品sku信息

"skus": {
			"sku": [
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "20",
					"properties": "0:0;1:0",
					"properties_name": "0:0:机身内存:128GB;1:0:颜色:深灰色",
					"quantity": "80",
					"sku_id": "5137600727655",
					"spec_id": "8f44c352fddfc2eb1ebf504fc3438ce1"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:1",
					"properties_name": "0:0:机身内存:128GB;1:1:颜色:白色",
					"quantity": "100",
					"sku_id": "5137600727656",
					"spec_id": "ff1c4045a7ba7f9f2737602c444fde10"
				},
				{
					"price": "1399.00",
					"total_price": 0,
					"sales": "0",
					"properties": "0:0;1:2",
					"properties_name": "0:0:机身内存:128GB;1:2:颜色:粉红色",
					"quantity": "100",
					"sku_id": "5137600727657",
					"spec_id": "ef491d2e5721d9f41ae5b575a359946c"
				}
			]
		},

你可能感兴趣的:(1688,API,接口,java,http,servlet,网络爬虫,数据挖掘)