• 阿里巴巴店铺的所有商品API接口(item_search_shop-获得店铺的所有商品接口),阿里巴巴API接口


    阿里巴巴店铺的所有商品API接口(item_search_shop-获得店铺的所有商品接口),阿里巴巴API接口对接可获取到店铺所有商品标题,价格,商品图片,商品链接,最小起批量等页面上有的数据均可以获取到,接口代码对接可适用于选品上架,数据分析,代购商城建站,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.请求参数

    请求参数:seller_nick=sheenstar.en.alibaba.com&start_price=0&end_price=0&q=&page=1&cid=&sort=

    参数说明:seller_nick:店铺域名
    start_price:开始价格
    end_price:结束价格
    q:搜索关键字
    page:页数
    cid:分类ID
    sort:排序[bid,_bid,bid2,_bid2,_sale,_credit]
      (bid:总价,sale:销量,new:新品,like:收藏,加_前缀为从大到小排序)

    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_shop/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&seller_nick=sheenstar.en.alibaba.com&start_price=0&end_price=0&q=&page=1&cid=&sort="
    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. "user": {
    3. "zhuy": "https://sheenstar.en.alibaba.com/productlist.html",
    4. "menu": []
    5. },
    6. "items": {
    7. "item": [
    8. {
    9. "title": "",
    10. "num_iid": 1600550316116,
    11. "pic_url": "//sc04.alicdn.com/kf/Hb6f161c2a11d4496b1b93e85b7a150daO/Automatic-pineapple-making-juice-making-machine.jpg",
    12. "price": "$10,000.00 / set",
    13. "min_order": "1 set",
    14. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Automatic-pineapple-making-juice-making-machine_1600550316116.html"
    15. },
    16. {
    17. "title": "",
    18. "num_iid": 1600550088893,
    19. "pic_url": "//sc04.alicdn.com/kf/H944ba8527d64488689d294b72bef0edaM/Automatic-glass-bottle-lemon-orange-juice-packing.jpg",
    20. "price": "$10,000.00 / set",
    21. "min_order": "1 set",
    22. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Automatic-glass-bottle-lemon-orange-juice_1600550088893.html"
    23. },
    24. {
    25. "title": "",
    26. "num_iid": 1600543442846,
    27. "pic_url": "//sc04.alicdn.com/kf/H5dc35eeffabb455a9d9ea588796ee626Q/Hot-sale-drinking-water-mineral-water-filling.jpg",
    28. "price": "$10,000.00 - $13,500.00 / set",
    29. "min_order": "1 set",
    30. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-drinking-water-mineral-water_1600543442846.html"
    31. },
    32. {
    33. "title": "",
    34. "num_iid": 1600543420982,
    35. "pic_url": "//sc04.alicdn.com/kf/H9cd0d7442e774f06b00d353dfe5452b8u/Hot-sale-full-automatic-500-ml-pet.jpg",
    36. "price": "$7,500.00 - $8,000.00 / set",
    37. "min_order": "1 set",
    38. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-full-automatic-500-ml_1600543420982.html"
    39. },
    40. {
    41. "title": "",
    42. "num_iid": 1600536339790,
    43. "pic_url": "//sc04.alicdn.com/kf/H1e5788b1e9eb43d8aca5f3c1d474f70dY/Hot-sale-20000-bph-full-automatic-mineral.jpg",
    44. "price": "$70,000.00 / set",
    45. "min_order": "1 set",
    46. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-20000-bph-full-automatic_1600536339790.html"
    47. },
    48. {
    49. "title": "Hot Sale 20000 bph mineral water filling and packaging machine plant factory",
    50. "num_iid": 1600536229973,
    51. "pic_url": "//sc04.alicdn.com/kf/Hf58b48101fb14ce9a6625a2e69a61363q/Hot-Sale-20000-bph-mineral-water-filling.jpg",
    52. "price": "$70,000.00 / set",
    53. "min_order": "1 set",
    54. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-Sale-20000-bph-mineral-water_1600536229973.html"
    55. },
    56. {
    57. "title": "",
    58. "num_iid": 1600529416522,
    59. "pic_url": "//sc04.alicdn.com/kf/H20361382302d4f2aa210c9600fcd9becQ/13-liter-big-bottle-non-touch-automatic.jpg",
    60. "price": "$22,000.00 - $23,500.00 / set",
    61. "min_order": "1 set",
    62. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/13-liter-big-bottle-non-touch_1600529416522.html"
    63. },
    64. {
    65. "title": "",
    66. "num_iid": 1600529366814,
    67. "pic_url": "//sc04.alicdn.com/kf/H09cbc68ca90f43f38d4d2510560049ffu/New-technology-non-touch-automatic-bottled-water.jpg",
    68. "price": "$22,000.00 - $23,500.00 / set",
    69. "min_order": "1 set",
    70. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/New-technology-non-touch-automatic-bottled_1600529366814.html"
    71. },
    72. {
    73. "title": "Hot sale 13 liter big bottle 3 in 1 drinking water filling machine automatic",
    74. "num_iid": 1600529422249,
    75. "pic_url": "//sc04.alicdn.com/kf/H2a01319f4f9143ceb97894ed036163das/Hot-sale-13-liter-big-bottle-3.jpg",
    76. "price": "$22,000.00 - $23,500.00 / set",
    77. "min_order": "1 set",
    78. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-13-liter-big-bottle_1600529422249.html"
    79. },
    80. {
    81. "title": "13 liter big bottle drinking water filling machine production line",
    82. "num_iid": 1600529457029,
    83. "pic_url": "//sc04.alicdn.com/kf/H8349ab9b215141ae9e2a4b7d05d21095w/13-liter-big-bottle-drinking-water-filling.jpg",
    84. "price": "$22,000.00 - $23,500.00 / set",
    85. "min_order": "1 set",
    86. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/13-liter-big-bottle-drinking-water_1600529457029.html"
    87. },
    88. {
    89. "title": "Hot sale mineral water pure water filling machine plant",
    90. "num_iid": 1600529209871,
    91. "pic_url": "//sc04.alicdn.com/kf/H143ba0ccc27d442a9584d7cd68bc4928h/Hot-sale-mineral-water-pure-water-filling.jpg",
    92. "price": "$22,000.00 - $23,500.00 / set",
    93. "min_order": "1 set",
    94. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-mineral-water-pure-water_1600529209871.html"
    95. },
    96. {
    97. "title": "Hot sale 13 liter big bottle water filling line 1200bph",
    98. "num_iid": 1600529314095,
    99. "pic_url": "//sc04.alicdn.com/kf/Hbbe86b6d800446ddabeb7138b3143d2cA/Hot-sale-13-liter-big-bottle-water.jpg",
    100. "price": "$22,000.00 - $23,500.00 / set",
    101. "min_order": "1 set",
    102. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-13-liter-big-bottle_1600529314095.html"
    103. },
    104. {
    105. "title": "Hot sale automatic watermelon juice bottle filling processing capping machine line",
    106. "num_iid": 1600523728620,
    107. "pic_url": "//sc04.alicdn.com/kf/H0f78e92f3068439ca849dc5ad14c2f07p/Hot-sale-automatic-watermelon-juice-bottle-filling.jpg",
    108. "price": "$30,000.00 - $32,000.00 / set",
    109. "min_order": "1 set",
    110. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-automatic-watermelon-juice-bottle_1600523728620.html"
    111. },
    112. {
    113. "title": "Hot sale fruit juice filling processing machine line in turkey",
    114. "num_iid": 1600523621831,
    115. "pic_url": "//sc04.alicdn.com/kf/H35507ffa7f7d465a93b73d2712fcf1f68/Hot-sale-fruit-juice-filling-processing-machine.jpg",
    116. "price": "$30,000.00 - $32,000.00 / set",
    117. "min_order": "1 set",
    118. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-fruit-juice-filling-processing_1600523621831.html"
    119. },
    120. {
    121. "title": "Hot sale complete plastic juice liquid filling production machine line",
    122. "num_iid": 1600523674570,
    123. "pic_url": "//sc04.alicdn.com/kf/Hc7ffee032c8b4036a3e7f74bd500d0816/Hot-sale-complete-plastic-juice-liquid-filling.jpg",
    124. "price": "$30,000.00 - $32,000.00 / set",
    125. "min_order": "1 set",
    126. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-complete-plastic-juice-liquid_1600523674570.html"
    127. },
    128. {
    129. "title": "Hot sale automatic plastic bottle juice filling and capping machine",
    130. "num_iid": 1600523406918,
    131. "pic_url": "//sc04.alicdn.com/kf/H28e82ad617ed4acd9011fe7facc7b29cJ/Hot-sale-automatic-plastic-bottle-juice-filling.jpg",
    132. "price": "$30,000.00 - $32,000.00 / set",
    133. "min_order": "1 set",
    134. "detail_url": "https://sheenstar.en.alibaba.com//www.alibaba.com/product-detail/Hot-sale-automatic-plastic-bottle-juice_1600523406918.html"
    135. }
    136. ],
    137. "total_results": 32,
    138. "page_size": "",
    139. "pagecount": "",
    140. "page": 1,
    141. "url": null
    142. },
    143. "error": "",
    144. "secache": "1beea913e1dc8e0e07c8327858ef87b9",
    145. "secache_time": 1656485734,
    146. "secache_date": "2022-06-29 14:55:34",
    147. "translate_status": "error",
    148. "translate_time": 3.969,
    149. "language": {
    150. "current_lang": "cn",
    151. "source_lang": "en"
    152. },
    153. "reason": "",
    154. "error_code": "0000",
    155. "cache": 0,
    156. "api_info": "today:167 max:10100 all[296=167+91+44];expires:2030-12-31",
    157. "execution_time": "5.38",
    158. "server_time": "Beijing/2022-06-29 14:55:38",
    159. "client_ip": "106.6.35.151",
    160. "call_args": {
    161. "seller_nick": "sheenstar.en.alibaba.com",
    162. "start_price": "0",
    163. "end_price": "0",
    164. "page": "1"
    165. },
    166. "api_type": "alibaba",
    167. "translate_language": "zh-CN",
    168. "translate_engine": "baidu",
    169. "server_memory": "4.47MB",
    170. "request_id": "gw-1.62bbf7651629e",
    171. "last_id": "1047769118"
    172. }

  • 相关阅读:
    ctfshow-web11(session绕过)
    约瑟夫环真的那么难吗?
    【代码随想录算法训练营】第41天 | 第九章 动态规划(三)+ 复习第11天 第五章 栈与队列(一)
    Python3:@property属性装饰器
    故障诊断 | GADF+Swin-CNN-GAM 的轴承故障诊断模型附matlab代码
    探索Django REST框架构建强大的API
    FFM论文翻译
    DOM系列之DOM事件流
    运维学习之部署Alertmanager-0.24.0
    网络读卡器开发,带你智能感知无线设备
  • 原文地址:https://blog.csdn.net/weixin_44591885/article/details/125522303