• 阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口


    阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口可以获取到整个页面上看的到的数据,包括:商品ID,商品标题,商品图片,优惠价,价格,价格范围,销量,卖家昵称,物流费用,店铺所在地等参数,接口代码对接可适用于选品上架,数据分析,代购商城建站,erp系统商品数据选品,价格监控,品牌维权,商家搬货,店铺铺货,商家工具等业务,希望能够帮助到有需要的朋友,接口代码对接如下:
    1.公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中,点击获取测试key和secret
    secretString调用密钥
    api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
    cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
    result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
    langString[cn,en,ru]翻译语言,默认cn简体中文
    versionStringAPI版本

    2.请求参数

    q=shoe&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=

    参数说明:q:搜索关键字
    cat:分类ID
    start_price:开始价格
    end_price:结束价格
    sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
      (bid:总价,bid2:商品价格,sale:销量,credit信用,加_前缀为从大到小排序)
    page:

    3.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)

    1. # coding:utf-8
    2. """
    3. Compatible for python2.x and python3.x
    4. requirement: pip install requests
    5. """
    6. from __future__ import print_function
    7. import requests
    8. # 请求示例 url 默认请求参数已经做URL编码
    9. url = "https://vx19970108018/alibaba/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=shoe&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath="
    10. headers = {
    11. "Accept-Encoding": "gzip",
    12. "Connection": "close"
    13. }
    14. if __name__ == "__main__":
    15. r = requests.get(url, headers=headers)
    16. json_obj = r.json()
    17. print(json_obj)

    4.响应示例

    1. {
    2. "items": {
    3. "page": "",
    4. "error": null,
    5. "real_total_results": 382309,
    6. "total_results": 382309,
    7. "item": [
    8. {
    9. "title": "Manufacturers customized round elastic laces for leisure shoes leather shoes sports shoes",
    10. "pic_url": "https://s.alicdn.com/@sc04/kf/H95725c2b308b4d30b6083bd936f2729fP.jpg",
    11. "promotion_price": "0.35",
    12. "price": "0.58",
    13. "sales": 500,
    14. "num_iid": 1600260956077,
    15. "sample_id": "",
    16. "seller_nick": "Shenzhen Guangliyuan Technology Co., Ltd.",
    17. "post_fee": "",
    18. "area": null,
    19. "detail_url": "https://www.alibaba.com/product-detail/Manufacturers-customized-round-elastic-laces-for_1600260956077.html"
    20. },
    21. {
    22. "title": "BC-326 Clean room shoes CPE plastic disposable shoes cover",
    23. "pic_url": "https://s.alicdn.com/@sc04/kf/HTB13iq3JVXXXXcIXVXXq6xXFXXXA.jpg",
    24. "promotion_price": "1.0",
    25. "price": "10.0",
    26. "sales": 5000,
    27. "num_iid": 60148071118,
    28. "sample_id": "",
    29. "seller_nick": "BHO TECH SUPPLY CO., LTD.",
    30. "post_fee": "",
    31. "area": null,
    32. "detail_url": "https://www.alibaba.com/product-detail/BC-326-Clean-room-shoes-CPE_60148071118.html?s=p"
    33. },
    34. {
    35. "title": "High Quality Roller Skate Shoes Toe Stop Girls Boys Double Row Rollerskate toe stops",
    36. "pic_url": "https://s.alicdn.com/@sc04/kf/H41dbc2ec6eae46808d7248fdc3b770daz.png_300x300.png",
    37. "promotion_price": "1.9",
    38. "price": "1.9",
    39. "sales": 100,
    40. "num_iid": 1600407598414,
    41. "sample_id": "",
    42. "seller_nick": "Dongguan Sporting Goods Co., Ltd.",
    43. "post_fee": "",
    44. "area": null,
    45. "detail_url": "https://www.alibaba.com/product-detail/High-Quality-Roller-Skate-Shoes-Toe_1600407598414.html?s=p"
    46. },
    47. {
    48. "title": "Sneakers Decrease For Force Trainer Anti Crease Sneaker Multiple Shield Utility Protector Against Shoe Creases Shoes Shield",
    49. "pic_url": "https://s.alicdn.com/@sc04/kf/Hc48da250d1a647869cb85b264b1b99abi.jpg",
    50. "promotion_price": "0.5",
    51. "price": "0.8",
    52. "sales": 1,
    53. "num_iid": 1600144073721,
    54. "sample_id": "",
    55. "seller_nick": "Dongguan Jiuhui Industrial Limited",
    56. "post_fee": "",
    57. "area": null,
    58. "detail_url": "https://www.alibaba.com/product-detail/Sneakers-Decrease-For-Force-Trainer-Anti_1600144073721.html?s=p"
    59. },
    60. {
    61. "title": "Shoe Shoe Insole Board 1mm Customs Shoe Paper Inside Insole Board Laminated Material Shank",
    62. "pic_url": "https://s.alicdn.com/@sc04/kf/Hc85db925e7ad4838ba9203a68a1cde4bK.jpg",
    63. "promotion_price": "1.0",
    64. "price": "1.0",
    65. "sales": 2000,
    66. "num_iid": 1600540437502,
    67. "sample_id": "",
    68. "seller_nick": "Jiangyin Besto Special Paper Board Co., Ltd.",
    69. "post_fee": "",
    70. "area": null,
    71. "detail_url": "https://www.alibaba.com/product-detail/Shoe-Shoe-Insole-Board-1mm-Customs_1600540437502.html?s=p"
    72. },
    73. {
    74. "title": "6oz Shoe repellent spray for suede leather nubuck and most materials",
    75. "pic_url": "https://s.alicdn.com/@sc04/kf/H8d5ef9b3a49d4cf7b88862aa49e43482p.jpg",
    76. "promotion_price": "0.95",
    77. "price": "1.0",
    78. "sales": 3000,
    79. "num_iid": 1600509423841,
    80. "sample_id": "",
    81. "seller_nick": "Jiangyin Yinghuameng Houseware Co., Ltd.",
    82. "post_fee": "",
    83. "area": null,
    84. "detail_url": "https://www.alibaba.com/product-detail/6oz-Shoe-repellent-spray-for-suede_1600509423841.html?s=p"
    85. },
    86. {
    87. "title": "Wholesale Cheap Price Men Work Safety Shoes Boots with Steel Toe and Steel Plate",
    88. "pic_url": "https://s.alicdn.com/@sc04/kf/H8972c88cf64044ce8e54ccb0c9b43daeO.jpg",
    89. "promotion_price": "4.3",
    90. "price": "6.5",
    91. "sales": 2,
    92. "num_iid": 62461121070,
    93. "sample_id": "",
    94. "seller_nick": "Beijing Diamond Sport International Trading Company Limited",
    95. "post_fee": "",
    96. "area": null,
    97. "detail_url": "https://www.alibaba.com/product-detail/Wholesale-Cheap-Price-Men-Work-Safety_62461121070.html"
    98. },
    99. {
    100. "title": "2022 New Arrival Women's Classic High Top Canvas Sneakers Trending White Casual Skateboarding Shoes for men Custom Sneakers OEM",
    101. "pic_url": "https://s.alicdn.com/@sc04/kf/Ha6840296bd9a47dea86c8bd8c89e7355r.jpg",
    102. "promotion_price": "4.74",
    103. "price": "6.56",
    104. "sales": 1,
    105. "num_iid": 1600184611602,
    106. "sample_id": "",
    107. "seller_nick": "XIAMEN XURUIHANG IMPORT AND EXPORT CO., LTD.",
    108. "post_fee": "",
    109. "area": null,
    110. "detail_url": "https://www.alibaba.com/product-detail/2022-New-Arrival-Women-s-Classic_1600184611602.html"
    111. },
    112. {
    113. "title": "Hot Style Fashion Breathable Sport Casual Canvas Shoes For Men",
    114. "pic_url": "https://s.alicdn.com/@sc04/kf/HTB1d471KzDpK1RjSZFrq6y78VXa4.jpg",
    115. "promotion_price": "2.99",
    116. "price": "4.35",
    117. "sales": 5,
    118. "num_iid": 62027834889,
    119. "sample_id": "",
    120. "seller_nick": "Yiwu Mingchang Fashion Co., Ltd.",
    121. "post_fee": "",
    122. "area": null,
    123. "detail_url": "https://www.alibaba.com/product-detail/Hot-Style-Fashion-Breathable-Sport-Casual_62027834889.html"
    124. },
    125. {
    126. "title": "Good quality luxury formal mens genuine leather dress loafers shoes for men",
    127. "pic_url": "https://s.alicdn.com/@sc04/kf/Hcdcefa59455d4cb7a5f61a798fc1d638L.jpg",
    128. "promotion_price": "23.0",
    129. "price": "30.6",
    130. "sales": 6,
    131. "num_iid": 1600202768045,
    132. "sample_id": "",
    133. "seller_nick": "Wenzhou Wuxing International Trade Co., Ltd.",
    134. "post_fee": "",
    135. "area": null,
    136. "detail_url": "https://www.alibaba.com/product-detail/Good-quality-luxury-formal-mens-genuine_1600202768045.html"
    137. },
    138. {
    139. "title": "Cheap Second Hand Shoes Branded Used Shoes In Bales For Sale In Kenya",
    140. "pic_url": "https://s.alicdn.com/@sc04/kf/H5785cec0083e449e9ceba7fa6c542c84g.jpg",
    141. "promotion_price": "1.0",
    142. "price": "1.5",
    143. "sales": 1000,
    144. "num_iid": 62253070151,
    145. "sample_id": "",
    146. "seller_nick": "Guangzhou Gracer Renewable Resources Co., Ltd.",
    147. "post_fee": "",
    148. "area": null,
    149. "detail_url": "https://www.alibaba.com/product-detail/Cheap-Second-Hand-Shoes-Branded-Used_62253070151.html"
    150. },
    151. {
    152. "title": "Labor insurance shoes lightweight breathable deodorant work shoes summer Men's casual sports safety shoes with rubber bottom",
    153. "pic_url": "https://s.alicdn.com/@sc04/kf/H3777d778b5d64d179dd36446d99a7b11b.jpg",
    154. "promotion_price": "8.7",
    155. "price": "9.52",
    156. "sales": 2,
    157. "num_iid": 62048892454,
    158. "sample_id": "",
    159. "seller_nick": "Gaomi Manwei Labor Product Co., Ltd.",
    160. "post_fee": "",
    161. "area": null,
    162. "detail_url": "https://www.alibaba.com/product-detail/Labor-insurance-shoes-lightweight-breathable-deodorant_62048892454.html"
    163. },
    164. {
    165. "title": "2019 new fashion mesh upper breathable casual running men sport shoes",
    166. "pic_url": "https://s.alicdn.com/@sc04/kf/H6396f3ae83544d03888d63dbf60afeb1l.jpg",
    167. "promotion_price": "2.5",
    168. "price": "2.8",
    169. "sales": 1,
    170. "num_iid": 62347145180,
    171. "sample_id": "",
    172. "seller_nick": "Wangdu Baoyuan Shoes Co., Ltd.",
    173. "post_fee": "",
    174. "area": null,
    175. "detail_url": "https://www.alibaba.com/product-detail/2019-new-fashion-mesh-upper-breathable_62347145180.html"
    176. },
    177. {
    178. "title": "OEM ODM Industrial Construction Work Genuine Leather Steel Toe Cap Boots zapatos de seguridad sepatu Safety Shoes With CE S3",
    179. "pic_url": "https://s.alicdn.com/@sc04/kf/H7417d9abc34d463182854179354f7d80m.jpg",
    180. "promotion_price": "6.45",
    181. "price": "6.99",
    182. "sales": 500,
    183. "num_iid": 62280389410,
    184. "sample_id": "",
    185. "seller_nick": "Guangzhou Aj Flying Import&export Co., Ltd.",
    186. "post_fee": "",
    187. "area": null,
    188. "detail_url": "https://www.alibaba.com/product-detail/OEM-ODM-Industrial-Construction-Work-Genuine_62280389410.html"
    189. },
    190. {
    191. "title": "Baby Walking Shoes Custom Logo Soft Soled Non Slip Socks Indoor Baby Breathable Shoes And Socks",
    192. "pic_url": "https://s.alicdn.com/@sc04/kf/Hef9f843cac3e48e2ab29bef5045d704am.jpg",
    193. "promotion_price": "1.89",
    194. "price": "2.29",
    195. "sales": 50,
    196. "num_iid": 1600290923877,
    197. "sample_id": "",
    198. "seller_nick": "Aoyatex Co., Ltd.",
    199. "post_fee": "",
    200. "area": null,
    201. "detail_url": "https://www.alibaba.com/product-detail/Baby-Walking-Shoes-Custom-Logo-Soft_1600290923877.html"
    202. },
    203. {
    204. "title": "2021 Factory Lace Up Army Desert Commando Men Safety Boots Army Boot Military Boot Shoes Camouflage Shoes Women",
    205. "pic_url": "https://s.alicdn.com/@sc04/kf/Hf976b6f3e4dc4a37a6e112a887002aa9g.jpg",
    206. "promotion_price": "9.9",
    207. "price": "11.9",
    208. "sales": 2,
    209. "num_iid": 1600368371763,
    210. "sample_id": "",
    211. "seller_nick": "Wuhan Jinteng Manufacturing & Trading Co., Ltd.",
    212. "post_fee": "",
    213. "area": null,
    214. "detail_url": "https://www.alibaba.com/product-detail/2021-Factory-Lace-Up-Army-Desert_1600368371763.html"
    215. },
    216. {
    217. "title": "Amazon Top Sell Best Quality Unisex Reusable Shoes Protectors Waterproof Anti Slip Water Resistant Rain Silicone Shoes Covers",
    218. "pic_url": "https://s.alicdn.com/@sc04/kf/Heb9608e129874dc689c94a52c7249c63b.jpg",
    219. "promotion_price": "0.3",
    220. "price": "1.83",
    221. "sales": 10,
    222. "num_iid": 1600054059930,
    223. "sample_id": "",
    224. "seller_nick": "Ningbo Pinbo Plastic Manufactory Co., Ltd.",
    225. "post_fee": "",
    226. "area": null,
    227. "detail_url": "https://www.alibaba.com/product-detail/Amazon-Top-Sell-Best-Quality-Unisex_1600054059930.html"
    228. },
    229. {
    230. "title": "sneaker manufacturer Latest Sport Breathable Leather Made White Flat Sneakers Black Casual Shoes Men and Women",
    231. "pic_url": "https://s.alicdn.com/@sc04/kf/Hb28f6f81708546a6b3600cdbf5b3e372a.jpg",
    232. "promotion_price": "7.53",
    233. "price": "8.61",
    234. "sales": 2,
    235. "num_iid": 1600084302276,
    236. "sample_id": "",
    237. "seller_nick": "Xiamen Kaisun Trading Co., Ltd.",
    238. "post_fee": "",
    239. "area": null,
    240. "detail_url": "https://www.alibaba.com/product-detail/sneaker-manufacturer-Latest-Sport-Breathable-Leather_1600084302276.html"
    241. },
    242. {
    243. "title": "New Arrival Running Shoes Footwear Hot Sale Casual Sport Other Trendy Shoes for Men",
    244. "pic_url": "https://s.alicdn.com/@sc04/kf/H140e9a8ed45247c293b4d0d7144c474dq.jpg",
    245. "promotion_price": "2.5",
    246. "price": "5.0",
    247. "sales": 50,
    248. "num_iid": 62140293620,
    249. "sample_id": "",
    250. "seller_nick": "Wangdu Yuxing Shoes Factory",
    251. "post_fee": "",
    252. "area": null,
    253. "detail_url": "https://www.alibaba.com/product-detail/New-Arrival-Running-Shoes-Footwear-Hot_62140293620.html"
    254. },
    255. {
    256. "title": "Oil water resistant anti slip work shoes steel toe puncture proof men industrial groundwork safety shoes boots S3",
    257. "pic_url": "https://s.alicdn.com/@sc04/kf/H0264650718f047d3968b142448800cd4M.jpg",
    258. "promotion_price": "7.8",
    259. "price": "12.8",
    260. "sales": 100,
    261. "num_iid": 60417544305,
    262. "sample_id": "",
    263. "seller_nick": "Heilongjiang Safer Co., Ltd.",
    264. "post_fee": "",
    265. "area": null,
    266. "detail_url": "https://www.alibaba.com/product-detail/Oil-water-resistant-anti-slip-work_60417544305.html"
    267. },
    268. {
    269. "title": "Custom Mens Sneakers OEM logo basketball style Casual sport man white black Footwear shoes customized",
    270. "pic_url": "https://s.alicdn.com/@sc04/kf/H0300f7d533954e8aa4157479983c0a8af.jpg",
    271. "promotion_price": "8.01",
    272. "price": "9.79",
    273. "sales": 15,
    274. "num_iid": 1600345155835,
    275. "sample_id": "",
    276. "seller_nick": "Fuzhou Harvest Land Industry Co., Ltd.",
    277. "post_fee": "",
    278. "area": null,
    279. "detail_url": "https://www.alibaba.com/product-detail/Custom-Mens-Sneakers-OEM-logo-basketball_1600345155835.html"
    280. },
    281. {
    282. "title": "Rain Serhoe Covers, Reusable Silicone Shoe Covs Waterproof Foldable Slip Cycling Outdoor Shoe Covers for Women,Men",
    283. "pic_url": "https://s.alicdn.com/@sc04/kf/H71fc7311714f4be182f8c557207cbbe6u.jpg",
    284. "promotion_price": "1.75",
    285. "price": "2.0",
    286. "sales": 100,
    287. "num_iid": 62556370358,
    288. "sample_id": "",
    289. "seller_nick": "Shenzhen Kean Silicone Baby Product Co., Ltd.",
    290. "post_fee": "",
    291. "area": null,
    292. "detail_url": "https://www.alibaba.com/product-detail/Rain-Serhoe-Covers-Reusable-Silicone-Shoe_62556370358.html"
    293. },
    294. {
    295. "title": "2020 New Fashion Custom Breathable Mesh Running Shoes Sports Shoes For Men",
    296. "pic_url": "https://s.alicdn.com/@sc04/kf/H824f883e266044f1b7cf498198bfeed60.png_300x300.png",
    297. "promotion_price": "2.9",
    298. "price": "3.8",
    299. "sales": 300,
    300. "num_iid": 62404329999,
    301. "sample_id": "",
    302. "seller_nick": "Adit Shoes Manufacture Co., Ltd.",
    303. "post_fee": "",
    304. "area": null,
    305. "detail_url": "https://www.alibaba.com/product-detail/2020-New-Fashion-Custom-Breathable-Mesh_62404329999.html"
    306. },
    307. {
    308. "title": "China Factory Fashion Low Price Durable Lace-up Non-slip Mens Sports Running Shoes And sneakers for men and women",
    309. "pic_url": "https://s.alicdn.com/@sc04/kf/Hdef3fef707074889a504db78bd01e089v.jpg",
    310. "promotion_price": "16.5",
    311. "price": "22.5",
    312. "sales": 1,
    313. "num_iid": 62418696379,
    314. "sample_id": "",
    315. "seller_nick": "Yangzhou Haixing Slipper Co.,ltd.",
    316. "post_fee": "",
    317. "area": null,
    318. "detail_url": "https://www.alibaba.com/product-detail/China-Factory-Fashion-Low-Price-Durable_62418696379.html"
    319. }
    320. ]
    321. },
    322. "error_code": "0000",
    323. "reason": "ok",
    324. "secache": "a799cd7c0b5c3217932480868ddb51cc",
    325. "secache_time": 1656485047,
    326. "secache_date": "2022-06-29 14:44:07",
    327. "translate_status": "error",
    328. "translate_time": 0.044,
    329. "language": {
    330. "current_lang": "cn",
    331. "source_lang": "en"
    332. },
    333. "error": "",
    334. "cache": 0,
    335. "api_info": "today:166 max:10100 all[294=166+90+44];expires:2030-12-31",
    336. "execution_time": "1.529",
    337. "server_time": "Beijing/2022-06-29 14:44:07",
    338. "client_ip": "106.6.35.151",
    339. "call_args": {
    340. "q": "shoe"
    341. },
    342. "api_type": "alibaba",
    343. "translate_language": "zh-CN",
    344. "translate_engine": "baidu",
    345. "server_memory": "4.43MB",
    346. "request_id": "gw-1.62bbf4b5bdf9b",
    347. "last_id": "1047750564"
    348. }

  • 相关阅读:
    计算机网络模型(OSI架构、TCP/IP架构)
    加工制造业的升级突破必备系统
    设计模式 - 享元模式
    Mysql的定时备份与恢复
    【知识增强】A Survey of Knowledge-Enhanced Pre-trained LM 论文笔记
    大数据:Trino简介及ETL场景的解决方案
    五:Dubbo中Provider参数配置及源码讲解
    Vue的数据控制-----计算属性(computed)&&侦听器(watch)
    [机缘参悟-52]:交浅言深要因人而异
    Django(三)接口自动化平台HttpRunnerManager本地部署
  • 原文地址:https://blog.csdn.net/weixin_44591885/article/details/125521931