拼多多关键搜索、商品列表接口、商品详情接口

为了进行此平台API的调用,首先我们需要做下面几件事情。

1、 获取一个KEY。

2、 参考API文档里的接入方式和示例。

3、查看测试工具是否有需要的接口,响应实例的返回字段是否符合参数要求。

4、利用平台的文档中心和API测试工具,对接口进行测试、程序获取。

以下是行业内了解到的一些情况,本帖只展示部分代码,API 返回值说明、简单调用示例。
需要更多了解和测试调用请移步

http://console.open.onebound.cn/console/?i=Turbo

公共参数

名称 类型 必须 描述
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版本

拼多多关键搜索、商品列表接口、商品详情接口_第1张图片

{
	"items": {
		"keyword": "女装",
		"page": "1",
		"real_total_results": 836,
		"total_results": 836,
		"list_count": 20,
		"item": [
			{
				"title": "冰丝短裤女夏季薄款2022年新款宽松高腰直筒休闲阔腿运动五分裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-09/9baa287d65bb8893052e34f4580eec50.jpeg",
				"price": 18.8,
				"promotion_price": 18.8,
				"sales": 55000,
				"num_iid": 355943495625,
				"sample_id": "",
				"seller_nick": "藿藿不熬夜",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=355943495625"
			},
			{
				"title": "2022新款夏季黑色阔腿裤女网红裤显瘦高腰垂感小个子垂感冰丝裤子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-09/4b27deec18fb60ca669195db8cc6e83b.jpeg",
				"price": 18.39,
				"promotion_price": 18.39,
				"sales": 100000,
				"num_iid": 335337103674,
				"sample_id": "",
				"seller_nick": "百大针织服饰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=335337103674"
			},
			{
				"title": "李宁短袖T恤女 纯棉大logo运动短袖女装上衣 圆领套头衫女AHSS482",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2020-08-31/2c323c5b289ed85915493aaeab05fb29.jpeg",
				"price": 35.8,
				"promotion_price": 35.8,
				"sales": 100000,
				"num_iid": 94000916880,
				"sample_id": "",
				"seller_nick": "李宁尊享专卖店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=94000916880"
			},
			{
				"title": "亚麻阔腿裤女高腰垂感2022夏季薄款休闲棉麻裤子花苞腰亚麻拖地裤",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-06-25/be6ee3d14919e13a429deefb48c777c9.jpeg",
				"price": 47.9,
				"promotion_price": 47.9,
				"sales": 6513,
				"num_iid": 255940450234,
				"sample_id": "",
				"seller_nick": "伊之魅棉麻大码女装折扣店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=255940450234"
			},
			{
				"title": "碎花连衣裙女2022夏季新款方领泡泡袖韩版中长款开叉显瘦气质裙子",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-21/3cb5b783206038078b23d41c11d67718.jpeg",
				"price": 29.8,
				"promotion_price": 29.8,
				"sales": 2945,
				"num_iid": 378381161898,
				"sample_id": "",
				"seller_nick": "艾伊赏服饰",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=378381161898"
			},
			{
				"title": "大码连衣裙polo领a字裙灯笼袖遮肚大肚子胖mm裙子夏天法式长款",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-04-17/079d6951e17ca0114086a91ff5968f5e.jpeg",
				"price": 59,
				"promotion_price": 59,
				"sales": 3252,
				"num_iid": 351022783660,
				"sample_id": "",
				"seller_nick": "羊城秀大码女装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=351022783660"
			},
			{
				"title": "2021夏季新款短袖女套装运动T恤女装短袖五分套最新T恤冰瓷棉短袖",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2020-07-11/f67e33bcc514648e5ddd35a9050efc15.jpeg",
				"price": 49.8,
				"promotion_price": 49.8,
				"sales": 5843,
				"num_iid": 151114121357,
				"sample_id": "",
				"seller_nick": "燃燃运动户外服装",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=151114121357"
			},
			{
				"title": "安踏短袖女夏季翻领t恤女polo衫2022新款宽松大码速干运动上衣女",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-01-25/f1b62963891493724372cbf378a389be.jpeg",
				"price": 69,
				"promotion_price": 69,
				"sales": 1400,
				"num_iid": 258347411970,
				"sample_id": "",
				"seller_nick": "安踏宏义专卖店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=258347411970"
			},
			{
				"title": "防晒衣女2022新款夏季冰丝外套防晒开衫骑车防紫外线电动车防晒服",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-03-14/e5bf8e7caf59b23fe2bc9075612ef8fd.jpeg",
				"price": 14.38,
				"promotion_price": 14.38,
				"sales": 100000,
				"num_iid": 21482491797,
				"sample_id": "",
				"seller_nick": "北宛依旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=21482491797"
			},
			{
				"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": "Rampage100%纯棉美式复古高街玫瑰短袖T恤女ins宽松欧美潮牌上衣",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-09/747183e31a07dca5ab6f75d17b3f56b5.jpeg",
				"price": 19.8,
				"promotion_price": 19.8,
				"sales": 8199,
				"num_iid": 371858782176,
				"sample_id": "",
				"seller_nick": "RAMPAGE欣旺良专卖店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=371858782176"
			},
			{
				"title": "单件/套装 夏季新款雪纺两件套女装学生韩版系带宽松时尚阔腿裤",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2019-04-25/d4adf230944dde5e366dcceac33793e3.jpeg",
				"price": 15.99,
				"promotion_price": 15.99,
				"sales": 55000,
				"num_iid": 7140103339,
				"sample_id": "",
				"seller_nick": "红叮当服装旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=7140103339"
			},
			{
				"title": "短袖小西装套装女士薄款2022夏季新款休闲设计感小众韩版西服外套",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-04-13/9bc9f7eac52577115d1cc16949ac6873.jpeg",
				"price": 44.3,
				"promotion_price": 44.3,
				"sales": 7720,
				"num_iid": 349376788940,
				"sample_id": "",
				"seller_nick": "梨三岁官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=349376788940"
			},
			{
				"title": "森马羽绒服女长款保暖连帽2022春季三防宽松抽绳厚外套甜酷风",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-01-17/5e288a60feb9f26a5d2c01b8a6981ef1.jpeg",
				"price": 199,
				"promotion_price": 199,
				"sales": 5816,
				"num_iid": 285432996790,
				"sample_id": "",
				"seller_nick": "森马官方奥莱店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=285432996790"
			},
			{
				"title": "单/两件装 设计感小众短袖t恤女夏季宽松大码女装中长款半袖上衣",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-12/34ba55f6be049f42f2556c1067695f66.jpeg",
				"price": 16.8,
				"promotion_price": 16.8,
				"sales": 4088,
				"num_iid": 374598592423,
				"sample_id": "",
				"seller_nick": "香芸衣舍",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=374598592423"
			},
			{
				"title": "大码宽松100%纯棉条纹短袖T恤女装2021夏新款韩版休闲减龄妈妈装",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-04-21/5769bbda0072eb3fd18f4d227c762df5.jpeg",
				"price": 16.8,
				"promotion_price": 16.8,
				"sales": 20000,
				"num_iid": 237265161482,
				"sample_id": "",
				"seller_nick": "港角魅力",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=237265161482"
			},
			{
				"title": "大码女装夏季套装女2022新款泡泡袖收腰上衣开叉牛仔半身裙两件套",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2021-06-17/a134d33392beede07c9bac3b557a699a.jpeg",
				"price": 16.8,
				"promotion_price": 16.8,
				"sales": 10000,
				"num_iid": 253550303330,
				"sample_id": "",
				"seller_nick": "NK轩轩服饰",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=253550303330"
			},
			{
				"title": "胖MM加大码女装短裤子女夏季薄款2022新款街头个性运动休闲五分裤",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-03-30/27783fe8f4b1674dbcdf4fa4beb3f1ea.jpeg",
				"price": 19.9,
				"promotion_price": 19.9,
				"sales": 100000,
				"num_iid": 343162404469,
				"sample_id": "",
				"seller_nick": "港韩风潮流女装店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=343162404469"
			},
			{
				"title": "大码女装夏季套装女2022新款洋气衬衫遮肚显瘦百搭牛仔短裤两件套【15天内发货】",
				"pic_url": "https://t00img.yangkeduo.com/goods/images/2020-06-03/6734faccd1965253eb8ea1b6bb39c9b8.jpeg",
				"price": 15.3,
				"promotion_price": 15.3,
				"sales": 88000,
				"num_iid": 132218185327,
				"sample_id": "",
				"seller_nick": "倪江服饰官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=132218185327"
			},
			{
				"title": "大码女装夏季套装女2022新款法式复古防晒衫显瘦碎花吊带裙两件套",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-08/2dc650623ccded5c72c5ac3fce4da613.jpeg",
				"price": 19.9,
				"promotion_price": 19.9,
				"sales": 2076,
				"num_iid": 360150786752,
				"sample_id": "",
				"seller_nick": "倪菲儿良品店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=360150786752"
			}
		]
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "a8881ed5637e3c7e84f03acdc86be64f",
	"secache_time": 1658215060,
	"secache_date": "2022-07-19 15:17:40",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:130 max:10100 all[188=130+33+25];expires:2030-12-31",
	"execution_time": "0.912",
	"server_time": "Beijing/2022-07-19 15:17:40",
	"client_ip": "106.6.35.176",
	"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": "0.83MB",
	"request_id": "gw-4.62d65a9402508",
	"last_id": "1086800404"
}

你可能感兴趣的:(电商平台api,大数据,python,json)