• 拼多多商品详情api接口


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

    返回数据格式:  请求链接
     

    1. {
    2. "item": {
    3. "num_iid": "272509462368",
    4. "title": "爱丽思收纳盒学生宿舍大容量家用储物塑料网红玩具衣服书本整理箱",
    5. "desc_short": "",
    6. "price": "164",
    7. "total_price": "",
    8. "suggestive_price": "",
    9. "orginal_price": "230",
    10. "nick": "爱丽思IRIS天创专卖店",
    11. "num": 200,
    12. "min_num": 0,
    13. "detail_url": "http://yangkeduo.com/goods.html?goods_id=272509462368",
    14. "pic_url": "https://img.pddpic.com/mms-material-img/2021-09-10/d8a2245d-ef39-4e02-a790-17bae1f4988c.jpeg.a.jpeg",
    15. "brand": "",
    16. "brandId": "",
    17. "item_imgs": [
    18. {
    19. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/d8a2245d-ef39-4e02-a790-17bae1f4988c.jpeg.a.jpeg"
    20. },
    21. {
    22. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/c4d95d6f-6ce6-4637-ace7-4b7ea35d5ee1.jpeg.a.jpeg"
    23. },
    24. {
    25. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/e36612af-40fb-442d-9a2b-f7965dd39b64.jpeg.a.jpeg"
    26. },
    27. {
    28. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/d246be75-5480-46dd-bc9c-dac4030f3b4b.jpeg.a.jpeg"
    29. },
    30. {
    31. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/fe02ec56-ce1a-498d-b6ad-9da4755d31a1.jpeg.a.jpeg"
    32. },
    33. {
    34. "url": "https://img.pddpic.com/mms-material-img/2021-09-10/4f194e7c-ece9-4cd2-b147-834626e3be8e.jpeg.a.jpeg"
    35. },
    36. {
    37. "url": "https://img.pddpic.com/mms-material-img/2021-09-12/992ca5b6-a4d8-41ea-9d7b-769e37d86af6.jpeg"
    38. },
    39. {
    40. "url": "https://img.pddpic.com/mms-material-img/2021-09-12/87d7af09-8727-45b5-881c-8f92cf46bbf7.jpeg"
    41. }
    42. ],
    43. "rootCatId": 16794,
    44. "cid": 16827,
    45. "favcount": 0,
    46. "fanscount": 0,
    47. "crumbs": [],
    48. "created_time": "",
    49. "modified_time": "",
    50. "delist_time": "",
    51. "desc": "
      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\">
      https://www.o0b.cn/i.php?t.png&rid=gw-1.655c086521877&p=1032056093&k=i_key&t=1700530278\" style=\"display:none\" />",
    52. "item_weight": "",
    53. "item_size": "",
    54. "location": "",
    55. "post_fee": "",
    56. "express_fee": "",
    57. "ems_fee": "",
    58. "shipping_to": "",
    59. "has_discount": "",
    60. "video": null,
    61. "is_virtual": "",
    62. "sample_id": "",
    63. "is_promotion": "",
    64. "props_name": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装;1218:18833734338:款式:【抽屉版-长45高30cm】三个装;1218:18833703882:款式:【抽屉版-长50高18cm】四个装;1218:18833713657:款式:【抽屉版-长50高30cm】三个装;1218:20203026181:款式:【抽屉版-长45高23cm】三个装",
    65. "prop_imgs": {
    66. "prop_img": [
    67. {
    68. "properties": "1218:18833715922",
    69. "url": "https://img.pddpic.com/mms-material-img/2022-11-22/86e38308-f97c-4958-87d7-354b7ae8beca.jpeg.a.jpeg"
    70. },
    71. {
    72. "properties": "1218:18833734338",
    73. "url": "https://img.pddpic.com/mms-material-img/2022-11-22/09fe854d-f9eb-4094-badf-0d6b2db8dd12.jpeg.a.jpeg"
    74. },
    75. {
    76. "properties": "1218:18833703882",
    77. "url": "https://img.pddpic.com/mms-material-img/2022-11-23/1a7a7543-c06e-42b9-98d9-bbaa2da2c81b.jpeg"
    78. },
    79. {
    80. "properties": "1218:18833713657",
    81. "url": "https://img.pddpic.com/mms-material-img/2022-11-23/b8effb8d-1594-485b-866c-9ab4d127379a.jpeg"
    82. },
    83. {
    84. "properties": "1218:20203026181",
    85. "url": "https://img.pddpic.com/mms-material-img/2022-11-22/60ec60e8-6dc4-43d8-ba6a-ef3e2aa2fe48.jpeg.a.jpeg"
    86. }
    87. ]
    88. },
    89. "property_alias": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装;1218:18833734338:款式:【抽屉版-长45高30cm】三个装;1218:18833703882:款式:【抽屉版-长50高18cm】四个装;1218:18833713657:款式:【抽屉版-长50高30cm】三个装;1218:20203026181:款式:【抽屉版-长45高23cm】三个装",
    90. "props": [
    91. {
    92. "name": "品牌",
    93. "value": "IRIS/爱丽思"
    94. },
    95. {
    96. "name": "材质",
    97. "value": "聚丙烯(pp)"
    98. },
    99. {
    100. "name": "打开方式",
    101. "value": "抽屉式"
    102. },
    103. {
    104. "name": "使用对象",
    105. "value": "玩具"
    106. },
    107. {
    108. "name": "适用人群",
    109. "value": "通用"
    110. },
    111. {
    112. "name": "适用场景",
    113. "value": "客厅"
    114. },
    115. {
    116. "name": "风格",
    117. "value": "日式"
    118. }
    119. ],
    120. "total_sold": "",
    121. "skus": {
    122. "sku": [
    123. {
    124. "price": "175",
    125. "total_price": "207",
    126. "properties": "1218:18833715922",
    127. "properties_name": "1218:18833715922:款式:【抽屉版-长45高18cm】四个装",
    128. "orginal_price": "207",
    129. "quantity": 783,
    130. "sku_id": 1396957108231
    131. },
    132. {
    133. "price": "186",
    134. "total_price": "240",
    135. "properties": "1218:18833734338",
    136. "properties_name": "1218:18833734338:款式:【抽屉版-长45高30cm】三个装",
    137. "orginal_price": "240",
    138. "quantity": 0,
    139. "sku_id": 1396957108232
    140. },
    141. {
    142. "price": "197",
    143. "total_price": "251",
    144. "properties": "1218:18833703882",
    145. "properties_name": "1218:18833703882:款式:【抽屉版-长50高18cm】四个装",
    146. "orginal_price": "251",
    147. "quantity": 799,
    148. "sku_id": 1396955859217
    149. },
    150. {
    151. "price": "230",
    152. "total_price": "295",
    153. "properties": "1218:18833713657",
    154. "properties_name": "1218:18833713657:款式:【抽屉版-长50高30cm】三个装",
    155. "orginal_price": "295",
    156. "quantity": 789,
    157. "sku_id": 1396955859219
    158. },
    159. {
    160. "price": "164",
    161. "total_price": "196",
    162. "properties": "1218:20203026181",
    163. "properties_name": "1218:20203026181:款式:【抽屉版-长45高23cm】三个装",
    164. "orginal_price": "196",
    165. "quantity": 783,
    166. "sku_id": 1428874022402
    167. }
    168. ]
    169. },
    170. "seller_id": "",
    171. "sales": 7504,
    172. "shop_id": "729330386",
    173. "props_list": {
    174. "1218:18833715922": "款式:【抽屉版-长45高18cm】四个装",
    175. "1218:18833734338": "款式:【抽屉版-长45高30cm】三个装",
    176. "1218:18833703882": "款式:【抽屉版-长50高18cm】四个装",
    177. "1218:18833713657": "款式:【抽屉版-长50高30cm】三个装",
    178. "1218:20203026181": "款式:【抽屉版-长45高23cm】三个装"
    179. },
    180. "seller_info": {
    181. "nick": "爱丽思IRIS天创专卖店",
    182. "zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=729330386",
    183. "shop_name": "爱丽思IRIS天创专卖店"
    184. },
    185. "tmall": false,
    186. "error": "",
    187. "warning": "",
    188. "url_log": [],
    189. "coupon_activity": "",
    190. "stuff_status": "",
    191. "shopinfo": [],
    192. "method": "",
    193. "promo_type": "",
    194. "props_img": {
    195. "1218:18833715922": "https://img.pddpic.com/mms-material-img/2022-11-22/86e38308-f97c-4958-87d7-354b7ae8beca.jpeg.a.jpeg",
    196. "1218:18833734338": "https://img.pddpic.com/mms-material-img/2022-11-22/09fe854d-f9eb-4094-badf-0d6b2db8dd12.jpeg.a.jpeg",
    197. "1218:18833703882": "https://img.pddpic.com/mms-material-img/2022-11-23/1a7a7543-c06e-42b9-98d9-bbaa2da2c81b.jpeg",
    198. "1218:18833713657": "https://img.pddpic.com/mms-material-img/2022-11-23/b8effb8d-1594-485b-866c-9ab4d127379a.jpeg",
    199. "1218:20203026181": "https://img.pddpic.com/mms-material-img/2022-11-22/60ec60e8-6dc4-43d8-ba6a-ef3e2aa2fe48.jpeg.a.jpeg"
    200. },
    201. "_ddf": "xbd",
    202. "format_check": "ok",
    203. "desc_img": [
    204. "https://img.pddpic.com/mms-material-img/2021-09-10/387101c5-d50d-4fad-aa2f-a23a51db4c59.jpeg.a.jpeg",
    205. "https://img.pddpic.com/mms-material-img/2021-09-10/cd30691a-5b12-4110-937c-4994368d1b7b.jpeg.a.jpeg",
    206. "https://img.pddpic.com/mms-material-img/2021-09-10/c0c61c07-373c-40fb-936d-8cfa4b0abfb9.jpeg.a.jpeg",
    207. "https://img.pddpic.com/mms-material-img/2021-09-10/15e3e023-2a6a-4a1c-a85c-f101db6275db.jpeg.a.jpeg",
    208. "https://img.pddpic.com/mms-material-img/2021-09-10/1c04415b-5c9f-45f0-804d-72843a595e14.jpeg.a.jpeg",
    209. "https://img.pddpic.com/mms-material-img/2021-09-10/eb574e7d-11c9-4e91-be3d-4a269f240961.jpeg.a.jpeg",
    210. "https://img.pddpic.com/mms-material-img/2021-09-10/1175664e-b608-425b-b27f-b03db0c2af29.jpeg.a.jpeg",
    211. "https://img.pddpic.com/mms-material-img/2021-09-10/0e825292-9ba8-4365-9e00-c7d97918819b.jpeg.a.jpeg",
    212. "https://img.pddpic.com/mms-material-img/2021-09-10/44294652-99e7-4de3-af48-b81d7087ed97.jpeg.a.jpeg",
    213. "https://img.pddpic.com/mms-material-img/2021-09-10/8601b4c7-7da3-4c1d-8ef0-9b3868f3c704.jpeg.a.jpeg",
    214. "https://img.pddpic.com/mms-material-img/2021-09-10/cceb1b2e-afd3-4631-a95b-6cd340d366c4.jpeg.a.jpeg",
    215. "https://img.pddpic.com/mms-material-img/2021-09-10/ae906f0e-4f49-400c-a9f6-0a70a6fd3f19.jpeg.a.jpeg",
    216. "https://img.pddpic.com/mms-material-img/2021-09-10/10e25a91-7140-48d4-aee4-c6e27e6ca5cb.jpeg.a.jpeg",
    217. "https://img.pddpic.com/mms-material-img/2021-09-10/7ad322b9-fd8e-4c0d-a165-4e01f0f60d8d.jpeg.a.jpeg",
    218. "https://img.pddpic.com/mms-material-img/2021-09-10/00d81f48-eab2-42ee-ac14-5d82cf3cace0.jpeg.a.jpeg",
    219. "https://img.pddpic.com/mms-material-img/2021-09-10/1306b4cd-6d33-42b9-b4a1-96a5a4f4067a.jpeg.a.jpeg",
    220. "https://img.pddpic.com/mms-material-img/2021-09-10/a1b7fdc4-80fb-49a9-89ad-88e266cb3ef1.jpeg.a.jpeg",
    221. "https://img.pddpic.com/mms-material-img/2021-09-10/ac174187-f40c-4819-82d9-dde6593127c6.jpeg.a.jpeg"
    222. ],
    223. "shop_item": [],
    224. "relate_items": []
    225. },
    226. "error": "",
    227. "secache": "b21e6f013f5220631f986cd98945d6dd",
    228. "secache_time": 1700530278,
    229. "secache_date": "2023-11-21 09:31:18",
    230. "translate_status": "",
    231. "translate_time": 0,
    232. "language": {
    233. "default_lang": "cn",
    234. "current_lang": "cn"
    235. },
    236. "reason": "",
    237. "error_code": "0000",
    238. "cache": 0,
    239. "api_info": "today:228 max:10000 all[1388=228+81+1079];expires:2030-12-31",
    240. "execution_time": "1.714",
    241. "server_time": "Beijing/2023-11-21 09:31:18",
    242. "client_ip": "61.131.237.29",
    243. "call_args": {
    244. "num_iid": "272509462368"
    245. },
    246. "api_type": "pinduoduo",
    247. "translate_language": "zh-CN",
    248. "translate_engine": "baidu",
    249. "server_memory": "3.17MB",
    250. "request_id": "gw-1.655c086521877",
    251. "last_id": "2292341611"
    252. }

  • 相关阅读:
    Windows安装GDB调试器
    Java 反射机制到底是什么?
    MySQL8.0优化 - 锁 - 从数据操作的粒度划分:表级锁、页级锁、行锁
    V-for中 key 值的作用,如何选择key
    No.1 - 职场关键角色通识宝典之课程内容先导
    简单了解一下:Node全局对象和事件监听和触发
    文心一言 vs gpt-4 全面横向比较
    flowable异步任务加锁流程
    DOS学习-目录与文件应用操作经典案例-type
    MySQL递归查询
  • 原文地址:https://blog.csdn.net/thankyou0790/article/details/134530130