拼多多商品详情api接口

     pdd的反爬虫机制十分严,而很多时候,没办法高效的拿到数据内容响应终端需求,而依赖爬虫就会造成动不动就出现滑块验证,让人很无解,正好,公司有这样的需求,让我负责解决这个问题,刚开始各种尝试,始终没有绕过pdd的滑块验证码,搞了好几天,都没有进展; 然后各种网上资料查询,最终还是不负努力,找到更好的解决方案,让它不再出现任何滑块验证码,完全绕过,实现更好的用户体验。下面就说说封装好的
接口说明:
我已经把该方法封装成接口,只需要把要得到的数据URL,传给我就可以,然后及时的响应你的数据内容需求,可用于实现电商行业多种常见场景。

返回数据格式:  请求链接
 

{
	"item": {
		"num_iid": "272509462368",
		"title": "爱丽思收纳盒学生宿舍大容量家用储物塑料网红玩具衣服书本整理箱",
		"desc_short": "",
		"price": "164",
		"total_price": "",
		"suggestive_price": "",
		"orginal_price": "230",
		"nick": "爱丽思IRIS天创专卖店",
		"num": 200,
		"min_num": 0,
		"detail_url": "http://yangkeduo.com/goods.html?goods_id=272509462368",
		"pic_url": "https://img.pddpic.com/mms-material-img/2021-09-10/d8a2245d-ef39-4e02-a790-17bae1f4988c.jpeg.a.jpeg",
		"brand": "",
		"brandId": "",
		"item_imgs": [
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/d8a2245d-ef39-4e02-a790-17bae1f4988c.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/c4d95d6f-6ce6-4637-ace7-4b7ea35d5ee1.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/e36612af-40fb-442d-9a2b-f7965dd39b64.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/d246be75-5480-46dd-bc9c-dac4030f3b4b.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/fe02ec56-ce1a-498d-b6ad-9da4755d31a1.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-10/4f194e7c-ece9-4cd2-b147-834626e3be8e.jpeg.a.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-12/992ca5b6-a4d8-41ea-9d7b-769e37d86af6.jpeg"
			},
			{
				"url": "https://img.pddpic.com/mms-material-img/2021-09-12/87d7af09-8727-45b5-881c-8f92cf46bbf7.jpeg"
			}
		],
		"rootCatId": 16794,
		"cid": 16827,
		"favcount": 0,
		"fanscount": 0,
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "
", "item_weight": "", "item_size": "", "location": "", "post_fee": "", "express_fee": "", "ems_fee": "", "shipping_to": "", "has_discount": "", "video": null, "is_virtual": "", "sample_id": "", "is_promotion": "", "props_name": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装;1218:18833734338:款式:【抽屉版-长45高30cm】三个装;1218:18833703882:款式:【抽屉版-长50高18cm】四个装;1218:18833713657:款式:【抽屉版-长50高30cm】三个装;1218:20203026181:款式:【抽屉版-长45高23cm】三个装", "prop_imgs": { "prop_img": [ { "properties": "1218:18833715922", "url": "https://img.pddpic.com/mms-material-img/2022-11-22/86e38308-f97c-4958-87d7-354b7ae8beca.jpeg.a.jpeg" }, { "properties": "1218:18833734338", "url": "https://img.pddpic.com/mms-material-img/2022-11-22/09fe854d-f9eb-4094-badf-0d6b2db8dd12.jpeg.a.jpeg" }, { "properties": "1218:18833703882", "url": "https://img.pddpic.com/mms-material-img/2022-11-23/1a7a7543-c06e-42b9-98d9-bbaa2da2c81b.jpeg" }, { "properties": "1218:18833713657", "url": "https://img.pddpic.com/mms-material-img/2022-11-23/b8effb8d-1594-485b-866c-9ab4d127379a.jpeg" }, { "properties": "1218:20203026181", "url": "https://img.pddpic.com/mms-material-img/2022-11-22/60ec60e8-6dc4-43d8-ba6a-ef3e2aa2fe48.jpeg.a.jpeg" } ] }, "property_alias": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装;1218:18833734338:款式:【抽屉版-长45高30cm】三个装;1218:18833703882:款式:【抽屉版-长50高18cm】四个装;1218:18833713657:款式:【抽屉版-长50高30cm】三个装;1218:20203026181:款式:【抽屉版-长45高23cm】三个装", "props": [ { "name": "品牌", "value": "IRIS/爱丽思" }, { "name": "材质", "value": "聚丙烯(pp)" }, { "name": "打开方式", "value": "抽屉式" }, { "name": "使用对象", "value": "玩具" }, { "name": "适用人群", "value": "通用" }, { "name": "适用场景", "value": "客厅" }, { "name": "风格", "value": "日式" } ], "total_sold": "", "skus": { "sku": [ { "price": "175", "total_price": "207", "properties": "1218:18833715922", "properties_name": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装", "orginal_price": "207", "quantity": 783, "sku_id": 1396957108231 }, { "price": "186", "total_price": "240", "properties": "1218:18833734338", "properties_name": "1218:18833734338:款式:【抽屉版-长45高30cm】三个装", "orginal_price": "240", "quantity": 0, "sku_id": 1396957108232 }, { "price": "197", "total_price": "251", "properties": "1218:18833703882", "properties_name": "1218:18833703882:款式:【抽屉版-长50高18cm】四个装", "orginal_price": "251", "quantity": 799, "sku_id": 1396955859217 }, { "price": "230", "total_price": "295", "properties": "1218:18833713657", "properties_name": "1218:18833713657:款式:【抽屉版-长50高30cm】三个装", "orginal_price": "295", "quantity": 789, "sku_id": 1396955859219 }, { "price": "164", "total_price": "196", "properties": "1218:20203026181", "properties_name": "1218:20203026181:款式:【抽屉版-长45高23cm】三个装", "orginal_price": "196", "quantity": 783, "sku_id": 1428874022402 } ] }, "seller_id": "", "sales": 7504, "shop_id": "729330386", "props_list": { "1218:18833715922": "款式:【抽屉版-长45高18cm】四个装", "1218:18833734338": "款式:【抽屉版-长45高30cm】三个装", "1218:18833703882": "款式:【抽屉版-长50高18cm】四个装", "1218:18833713657": "款式:【抽屉版-长50高30cm】三个装", "1218:20203026181": "款式:【抽屉版-长45高23cm】三个装" }, "seller_info": { "nick": "爱丽思IRIS天创专卖店", "zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=729330386", "shop_name": "爱丽思IRIS天创专卖店" }, "tmall": false, "error": "", "warning": "", "url_log": [], "coupon_activity": "", "stuff_status": "", "shopinfo": [], "method": "", "promo_type": "", "props_img": { "1218:18833715922": "https://img.pddpic.com/mms-material-img/2022-11-22/86e38308-f97c-4958-87d7-354b7ae8beca.jpeg.a.jpeg", "1218:18833734338": "https://img.pddpic.com/mms-material-img/2022-11-22/09fe854d-f9eb-4094-badf-0d6b2db8dd12.jpeg.a.jpeg", "1218:18833703882": "https://img.pddpic.com/mms-material-img/2022-11-23/1a7a7543-c06e-42b9-98d9-bbaa2da2c81b.jpeg", "1218:18833713657": "https://img.pddpic.com/mms-material-img/2022-11-23/b8effb8d-1594-485b-866c-9ab4d127379a.jpeg", "1218:20203026181": "https://img.pddpic.com/mms-material-img/2022-11-22/60ec60e8-6dc4-43d8-ba6a-ef3e2aa2fe48.jpeg.a.jpeg" }, "_ddf": "xbd", "format_check": "ok", "desc_img": [ "https://img.pddpic.com/mms-material-img/2021-09-10/387101c5-d50d-4fad-aa2f-a23a51db4c59.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/cd30691a-5b12-4110-937c-4994368d1b7b.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/c0c61c07-373c-40fb-936d-8cfa4b0abfb9.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/15e3e023-2a6a-4a1c-a85c-f101db6275db.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/1c04415b-5c9f-45f0-804d-72843a595e14.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/eb574e7d-11c9-4e91-be3d-4a269f240961.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/1175664e-b608-425b-b27f-b03db0c2af29.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/0e825292-9ba8-4365-9e00-c7d97918819b.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/44294652-99e7-4de3-af48-b81d7087ed97.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/8601b4c7-7da3-4c1d-8ef0-9b3868f3c704.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/cceb1b2e-afd3-4631-a95b-6cd340d366c4.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/ae906f0e-4f49-400c-a9f6-0a70a6fd3f19.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/10e25a91-7140-48d4-aee4-c6e27e6ca5cb.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/7ad322b9-fd8e-4c0d-a165-4e01f0f60d8d.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/00d81f48-eab2-42ee-ac14-5d82cf3cace0.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/1306b4cd-6d33-42b9-b4a1-96a5a4f4067a.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/a1b7fdc4-80fb-49a9-89ad-88e266cb3ef1.jpeg.a.jpeg", "https://img.pddpic.com/mms-material-img/2021-09-10/ac174187-f40c-4819-82d9-dde6593127c6.jpeg.a.jpeg" ], "shop_item": [], "relate_items": [] }, "error": "", "secache": "b21e6f013f5220631f986cd98945d6dd", "secache_time": 1700530278, "secache_date": "2023-11-21 09:31:18", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }, "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:228 max:10000 all[1388=228+81+1079];expires:2030-12-31", "execution_time": "1.714", "server_time": "Beijing/2023-11-21 09:31:18", "client_ip": "61.131.237.29", "call_args": { "num_iid": "272509462368" }, "api_type": "pinduoduo", "translate_language": "zh-CN", "translate_engine": "baidu", "server_memory": "3.17MB", "request_id": "gw-1.655c086521877", "last_id": "2292341611" }

你可能感兴趣的:(拼多多详情,python)