item_search - 根据关键词获取拼多多商品列表

为了进行电商平台API开发,我们需要做下面几件事情。

1)开发者注册一个账号

2)然后在平台应用注册一个应用程序键(App Key) 。

3)下载平台API的SDK并掌握基本的API基础知识和调用

4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。

5)利用平台提供的API文档中心和测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是电商平台的API应用开发的关键流程,其中通过平台文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。lazada 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。

 拼多多根据关键词取商品列表 API 返回值说明

点击获取key和secret

API 返回结果

Request address:
https://api-1.onebound.cn/pinduoduo/item_search/?key=test_api_key&
&q=女装&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
	"items": {
		"keyword": "女装",
		"page": "1",
		"real_total_results": 171,
		"total_results": 171,
		"list_count": 20,
		"item": [
			{
				"title": "冰丝高腰阔腿裤女春夏小个子垂感直筒裤女韩版宽松显高休闲拖地裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-26/e8743e0d2cc3f247d66c36053c739185.jpeg",
				"price": 13.14,
				"promotion_price": 13.14,
				"sales": 100000,
				"num_iid": 106126652542,
				"sample_id": "",
				"seller_nick": "云米露女装旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=106126652542"
			},
			{
				"title": "垂坠感高腰春夏季西裤休闲拖地西装裤女2022新款宽松直筒阔腿裤子",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-04-23/98e7651f586f2fddb5507fcb846e1baa.jpeg",
				"price": 22.26,
				"promotion_price": 22.26,
				"sales": 100000,
				"num_iid": 238039572411,
				"sample_id": "",
				"seller_nick": "三冬四夏女装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=238039572411"
			},
			{
				"title": "春夏新款阔腿裤女高腰直筒休闲运动裤韩版学生宽松显瘦垂感长裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-03-16/289007844aa28d1ad58e30edb57a0404.jpeg",
				"price": 8.9,
				"promotion_price": 8.9,
				"sales": 100000,
				"num_iid": 336938859881,
				"sample_id": "",
				"seller_nick": "诺宝拉女装旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=336938859881"
			},
			{
				"title": "防晒衣女2022新款冰丝防紫外线短款骑开车防晒服轻薄带帽长袖外套",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-03-21/b8c79fdef11a3681f9eb9b40f3e736a8.jpeg",
				"price": 19.23,
				"promotion_price": 19.23,
				"sales": 100000,
				"num_iid": 338689537874,
				"sample_id": "",
				"seller_nick": "慕青乐服饰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=338689537874"
			},
			{
				"title": "日本觅橘防晒衣女2022夏季新款冰丝防晒服防紫外线透气超薄皮肤衣",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-04-27/5a8ba53e50d593bb825e1e79ec2b63b3.jpeg",
				"price": 24.9,
				"promotion_price": 24.9,
				"sales": 100000,
				"num_iid": 355424936897,
				"sample_id": "",
				"seller_nick": "NICO盛装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=355424936897"
			},
			{
				"title": "防晒衣女长款过膝2021新款夏薄冰丝长袖防晒衫防紫外线透气防晒服",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-07-02/3e29ef3a21ffc40a292187dd27a15134.jpeg",
				"price": 25.7,
				"promotion_price": 25.7,
				"sales": 100000,
				"num_iid": 257666085404,
				"sample_id": "",
				"seller_nick": "弄昕服饰官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=257666085404"
			},
			{
				"title": "RPIN 防晒衣外套女夏季薄款透气防紫外线连帽长袖开衫外套上衣ins",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-03/33770b61e380a86572d23bb19ee2c7ff.jpeg",
				"price": 33.8,
				"promotion_price": 33.8,
				"sales": 100000,
				"num_iid": 384229587180,
				"sample_id": "",
				"seller_nick": "RPIN男女装官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=384229587180"
			},
			{
				"title": "阔腿西装裤女2021秋韩版高腰宽松显瘦直筒气质垂感休闲黑色长裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2021-08-28/21ce1a9d2da3433d660b49513012e13b.jpeg",
				"price": 23.66,
				"promotion_price": 23.66,
				"sales": 100000,
				"num_iid": 273495329972,
				"sample_id": "",
				"seller_nick": "木的宅宅",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=273495329972"
			},
			{
				"title": "买一送一黑色阔腿裤女裤子夏季薄款冰丝显瘦高腰垂感直筒休闲西裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-17/b2dfa5917be6c5abb94d5620c5e581bb.jpeg",
				"price": 12.5,
				"promotion_price": 12.5,
				"sales": 30000,
				"num_iid": 391074058686,
				"sample_id": "",
				"seller_nick": "念琪大码女装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=391074058686"
			},
			{
				"title": "纯色无袖大码300斤睡裙女夏宽松甜美背心裙中长款吊带睡衣夏薄款",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-08-11/54421204fb8c1ae1c48cdf0ef8bb4a32.jpeg",
				"price": 7.88,
				"promotion_price": 7.88,
				"sales": 51000,
				"num_iid": 264108757488,
				"sample_id": "",
				"seller_nick": "质优品服饰",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=264108757488"
			},
			{
				"title": "C CRLU冰丝阔腿裤夏季新款高腰垂感宽松显瘦直筒抽绳ins风休闲裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-09/5050b7a96a52f54fe894b7255f59579b.jpeg",
				"price": 28.8,
				"promotion_price": 28.8,
				"sales": 24000,
				"num_iid": 373059364965,
				"sample_id": "",
				"seller_nick": "C CRLU蓝尔星专卖店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=373059364965"
			},
			{
				"title": "冰丝短裤女夏季薄款2022年新款宽松高腰直筒休闲阔腿运动五分裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-09/9baa287d65bb8893052e34f4580eec50.jpeg",
				"price": 18.8,
				"promotion_price": 18.8,
				"sales": 65000,
				"num_iid": 355943495625,
				"sample_id": "",
				"seller_nick": "藿藿不熬夜",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=355943495625"
			},
			{
				"title": "黑色抽绳阔腿裤女早春宽松显瘦大码胖mm高腰垂感直筒休闲运动裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-02-28/d6a9e4936bf6df9197c1ebc8a48a3362.jpeg",
				"price": 12.8,
				"promotion_price": 12.8,
				"sales": 85000,
				"num_iid": 331886034586,
				"sample_id": "",
				"seller_nick": "钡珀琳女装旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=331886034586"
			},
			{
				"title": "阔腿裤女夏季薄款2022新款高腰垂感宽松显瘦休闲直筒冰丝格子裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-01/e458a5eaa61cb006723b6f538002d8f9.jpeg",
				"price": 19.8,
				"promotion_price": 19.8,
				"sales": 8188,
				"num_iid": 383227798794,
				"sample_id": "",
				"seller_nick": "汀媱官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=383227798794"
			},
			{
				"title": "RAMPAGE 冰丝阔腿裤女夏季薄款高腰垂感显瘦直筒裤宽松休闲西装裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-16/4c3cf8d428daa1433000fa9fb4696834.jpeg",
				"price": 21.8,
				"promotion_price": 21.8,
				"sales": 100000,
				"num_iid": 376148286062,
				"sample_id": "",
				"seller_nick": "RAMPAGE时尚女装官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=376148286062"
			},
			{
				"title": "冰丝雪纺阔腿裤女高腰垂坠感胖mm大码休闲拖地西装裤夏季薄款裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-04-18/3995001b01d17518758453fe912f99ad.jpeg",
				"price": 38.89,
				"promotion_price": 38.89,
				"sales": 100000,
				"num_iid": 351247131166,
				"sample_id": "",
				"seller_nick": "魅力时尚女裤",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=351247131166"
			},
			{
				"title": "RAMPAGE 阔腿裤女夏季薄款条纹垂感拖地显瘦直筒裤宽松休闲运动裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-07/f8479dbb4b401e40f813f2d69ee680b3.jpeg",
				"price": 29.8,
				"promotion_price": 29.8,
				"sales": 100000,
				"num_iid": 372014405726,
				"sample_id": "",
				"seller_nick": "RAMPAGE男女装官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=372014405726"
			},
			{
				"title": "拼接裤子女宽松显瘦夏季薄款阔腿裤女学生韩版高腰垂感休闲直筒裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-11/6be026958951a782f1fd3dc811402bbb.jpeg",
				"price": 11.61,
				"promotion_price": 11.61,
				"sales": 38000,
				"num_iid": 374072064951,
				"sample_id": "",
				"seller_nick": "雅依潮流女装店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=374072064951"
			},
			{
				"title": "RAMPAGE 冰丝休闲裤女阔腿裤子春夏2022新款宽松显瘦直筒拖地裤潮",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-31/edca4a7a49d4009d31249f6ef184492a.jpeg",
				"price": 29.8,
				"promotion_price": 29.8,
				"sales": 30000,
				"num_iid": 369304554741,
				"sample_id": "",
				"seller_nick": "RAMPAGE男女装官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=369304554741"
			},
			{
				"title": "150cm矮小个子冰丝阔腿裤子女夏季薄款宽松显瘦145休闲直筒裤XS码",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-13/35960535aa5a29c87652e4ecc1816568.jpeg",
				"price": 14.9,
				"promotion_price": 14.9,
				"sales": 17000,
				"num_iid": 375011231042,
				"sample_id": "",
				"seller_nick": "米纱韩版定制女装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=375011231042"
			}
		]
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "a8881ed5637e3c7e84f03acdc86be64f",
	"secache_time": 1661218581,
	"secache_date": "2022-08-23 09:36:21",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:24 max:10000 all[61=24+17+20];expires:2030-12-31",
	"execution_time": "0.551",
	"server_time": "Beijing/2022-08-23 09:36:21",
	"client_ip": "106.6.39.114",
	"call_args": {
		"q": "女装",
		"start_price": "0",
		"end_price": "0",
		"page": "1",
		"cat": "0"
	},
	"api_type": "pinduoduo",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "3.19MB",
	"request_id": "1.63042f14ce07c",
	"last_id": "1168829509"
}

猜你喜欢

转载自blog.csdn.net/suiyuaneranLucy/article/details/126478330