• 淘宝API接入说明(商品详情数据示例)


    1. API地址:
      https://api-gw.onebound.cn/taobao/

    2. 调用示例:
      https://api-gw.onebound.cn/taobao/item_search/?key=& &q=女装&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=&&lang=zh-CN&secret=

    3. 参数说明

      • 通用参数说明
        • 参数不要乱传,否则不管成功失败都会扣费
        • url说明 https://api-gw.onebound.cn/平台/API类型/ 平台:淘宝,京东等, API类型:[item_search,item_get,item_search_shop等]
        • version:API版本
        • key:调用key,测试key:test_api_key
        • secret:调用secret,测试secret:(不用填写)
        • cache:[yes,no]默认yes,将调用缓存的数据,速度比较快
        • result_type:[json,xml,serialize,var_export]返回数据格式,默认为json
        • lang:[cn,en,ru] 翻译语言,默认cn简体中文
        • secret:密钥
      • API:item_search 参数说明:

        • q:搜索关键字
        • cat:分类ID
        • start_price:开始价格
        • end_price:结束价格
        • sort:排序[bid,bid,bid2,_bid2,_sale,_credit]
          (bid:总价,bid2:商品价格,sale:销量,credit信用,加
          前缀为从大到小排序)
        • page:页数
        • page_size:每页宝贝数量,默认40
        • seller_info:是否获取商家信息[yes,no],默认yes
      • API:item_get 参数说明: num_iid:宝贝ID

    4. 此API目前支持以下基本接口:

    item_get - 获得淘宝商品详情 

    请求参数

    请求参数:num_iid=520813250866&is_promotion=1

    参数说明:num_iid:淘宝商品ID
    is_promotion:是否获取取促销价

     

    1. Request address:
    2. https://api-gw.onebound.cn/taobao/item_get/?key=&
    3. &num_iid=558486062697&is_promotion=1&&lang=zh-CN&secret=
    4. ---------------------------------------
    5. Result Object:
    6. ---------------------------------------
    7. {
    8. "item": {
    9. "num_iid": "558486062697",
    10. "title": "白酒整箱贵州酱香型53度纯粮食原浆老酒高度陈酿纯坤沙高梁酒",
    11. "desc_short": "",
    12. "price": 116,
    13. "orginal_price": 116,
    14. "nick": "猛将酒",
    15. "num": 0,
    16. "pic_url": "https://gw.alicdn.com/imgextra/O1CN01jwY20828oQvn1tkXL_!!3156547979.jpg",
    17. "brand": null,
    18. "brandId": 0,
    19. "rootCatId": 0,
    20. "cid": 50008144,
    21. "crumbs": null,
    22. "detail_url": "https://item.taobao.com/item.htm?id=558486062697",
    23. "desc": "

       

      \n
      \n \"http://img.alicdn.com/imgextra/i4/14192221/TB2mRB8gFXXXXbQXXXXXXXXXXXX-14192221.png?p=wonbao_mjs_coupon_9237328020_start\" />\n
      \n
      \n \"http://img.alicdn.com/imgextra/i4/14192221/TB2mRB8gFXXXXbQXXXXXXXXXXXX-14192221.png?p=wonbao_mjs_coupon_9237328020_end\" />\n
      \n

      \"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN0128oQfGcvD7rD8w6_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/TB2QZ44dJnJ8KJjSszdXXaxuFXa_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/3156547979/O1CN0128oQfGYNMv5FIhr_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN0128oQfGDFdccFxvm_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/TB2eWGteIrI8KJjy0FhXXbfnpXa_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/TB28IWClvNNTKJjSspeXXaSwpXa_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/TB2vPzZePgy_uJjSZLeXXaPlFXa_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/O1CN01HLpyIi28oQvr9XveV_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN01jmURln28oQvkqPceK_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/O1CN01IGMemU28oQvwrijKa_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/3156547979/O1CN01YfUBP828oQvqn6paE_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/O1CN01O5fhxq28oQvpqt55S_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN01HOkBr928oQvtt41nF_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN01EVmmk928oQvg2v3EE_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN01zHoSUU28oQvqn8NEe_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/3156547979/O1CN01uSgZwD28oQvvn0yp9_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/3156547979/O1CN01PX2UpJ28oQvg2ti2g_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/3156547979/O1CN01Q94itu28oQvg2vO2S_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/3156547979/O1CN01RTHi0n28oQvr9bPtu_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/3156547979/O1CN01UT2v3Z28oQvv3l67u_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/3156547979/O1CN01ruEeWO28oQvn2IJzX_!!3156547979.jpg\" />\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/3156547979/O1CN01Wt6tw228oQvtKMIiE_!!3156547979.jpg\" />

      \"
      https://www.o0b.cn/i.php?t.png&rid=gw-3.62dc40a4154f6&p=2342515475&k=41690&t=1658601637\" style=\"display:none\" />",
    24. "item_imgs": [
    25. {
    26. "url": "https://gw.alicdn.com/imgextra/O1CN01jwY20828oQvn1tkXL_!!3156547979.jpg"
    27. },
    28. {
    29. "url": "//img.alicdn.com/bao/uploaded/i3/3156547979/O1CN01GdKoZz28oQvp9PYqQ_!!3156547979.jpg"
    30. },
    31. {
    32. "url": "//img.alicdn.com/bao/uploaded/i3/3156547979/O1CN01iBHRl528oQvwrMJEW_!!3156547979.jpg"
    33. },
    34. {
    35. "url": "//img.alicdn.com/bao/uploaded/i3/3156547979/O1CN0186MMCz28oQvp9QV1P_!!3156547979.jpg"
    36. },
    37. {
    38. "url": "//img.alicdn.com/bao/uploaded/i4/3156547979/O1CN01T9TLW528oQvg2Z28Y_!!3156547979.jpg"
    39. }
    40. ],
    41. "item_weight": 0,
    42. "location": null,
    43. "post_fee": 0,
    44. "express_fee": 0,
    45. "ems_fee": 0,
    46. "shipping_to": "",
    47. "has_discount": "false",
    48. "video": [],
    49. "is_virtual": null,
    50. "sample_id": "",
    51. "is_promotion": "false",
    52. "prop_imgs": {
    53. "prop_img": []
    54. },
    55. "property_alias": "",
    56. "props": [
    57. {
    58. "name": "生产日期",
    59. "value": "2019年05月18日 至 2020年10月31日"
    60. },
    61. {
    62. "name": "生产许可证编号",
    63. "value": "SC11552032110418"
    64. },
    65. {
    66. "name": "产品标准号",
    67. "value": "Q/MJ000IS-2014"
    68. },
    69. {
    70. "name": "厂名",
    71. "value": "遵义猛酱窖酒有限公司"
    72. },
    73. {
    74. "name": "厂址",
    75. "value": "播州区乌江镇养龙村马场坝组"
    76. },
    77. {
    78. "name": "厂家联系方式",
    79. "value": "18786616818"
    80. },
    81. {
    82. "name": "配料表",
    83. "value": "高粱 、小麦、 水"
    84. },
    85. {
    86. "name": "储藏方法",
    87. "value": "密封、阴凉、干燥、常温"
    88. },
    89. {
    90. "name": "保质期",
    91. "value": "999999"
    92. },
    93. {
    94. "name": "食品添加剂",
    95. "value": "否"
    96. },
    97. {
    98. "name": "品牌",
    99. "value": "底蕴"
    100. },
    101. {
    102. "name": "品名",
    103. "value": "底蕴"
    104. },
    105. {
    106. "name": "省份",
    107. "value": "贵州"
    108. },
    109. {
    110. "name": "产地",
    111. "value": "中国大陆地区"
    112. },
    113. {
    114. "name": "净含量",
    115. "value": "500ml*1瓶"
    116. },
    117. {
    118. "name": "包装种类",
    119. "value": "裸瓶装"
    120. },
    121. {
    122. "name": "香型",
    123. "value": "酱香型"
    124. },
    125. {
    126. "name": "体积(ml)",
    127. "value": "500"
    128. },
    129. {
    130. "name": "包装方式",
    131. "value": "包装"
    132. },
    133. {
    134. "name": "度数",
    135. "value": "53%Vol."
    136. },
    137. {
    138. "name": "包装规格",
    139. "value": "6瓶"
    140. },
    141. {
    142. "name": "单瓶净含量",
    143. "value": "500ml"
    144. }
    145. ],
    146. "props_name": "",
    147. "total_sold": 27,
    148. "skus": {
    149. "sku": []
    150. },
    151. "seller_id": "3156547979",
    152. "shop_id": "537244787",
    153. "props_list": [],
    154. "seller_info": {
    155. "nick": "猛将酒",
    156. "item_score": 4.68729,
    157. "score_p": 4.71478,
    158. "delivery_score": 4.67354,
    159. "shop_type": "",
    160. "user_num_id": "3156547979",
    161. "sid": "537244787",
    162. "title": "",
    163. "zhuy": "https://shop537244787.taobao.com",
    164. "cert": null,
    165. "open_time": "",
    166. "credit_score": "tb-rank-cap:3",
    167. "shop_name": "茅台镇酱酒坊"
    168. },
    169. "tmall": false,
    170. "update_time": "2022-07-24 02:40:37",
    171. "data_update": "2022-07-24 02:40:37",
    172. "data_f": "Ha",
    173. "data_from": "hid",
    174. "promo_type": null,
    175. "props_img": [],
    176. "error": null,
    177. "format_check": "ok",
    178. "sales": 0,
    179. "desc_img": [
    180. "http://img.alicdn.com/imgextra/i4/14192221/TB2mRB8gFXXXXbQXXXXXXXXXXXX-14192221.png?p=wonbao_mjs_coupon_9237328020_start",
    181. "http://img.alicdn.com/imgextra/i4/14192221/TB2mRB8gFXXXXbQXXXXXXXXXXXX-14192221.png?p=wonbao_mjs_coupon_9237328020_end",
    182. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN0128oQfGcvD7rD8w6_!!3156547979.jpg",
    183. "http://img.alicdn.com/imgextra/i2/3156547979/TB2QZ44dJnJ8KJjSszdXXaxuFXa_!!3156547979.jpg",
    184. "http://img.alicdn.com/imgextra/i4/3156547979/O1CN0128oQfGYNMv5FIhr_!!3156547979.jpg",
    185. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN0128oQfGDFdccFxvm_!!3156547979.jpg",
    186. "http://img.alicdn.com/imgextra/i1/3156547979/TB2eWGteIrI8KJjy0FhXXbfnpXa_!!3156547979.jpg",
    187. "http://img.alicdn.com/imgextra/i2/3156547979/TB28IWClvNNTKJjSspeXXaSwpXa_!!3156547979.jpg",
    188. "http://img.alicdn.com/imgextra/i2/3156547979/TB2vPzZePgy_uJjSZLeXXaPlFXa_!!3156547979.jpg",
    189. "http://img.alicdn.com/imgextra/i2/3156547979/O1CN01HLpyIi28oQvr9XveV_!!3156547979.jpg",
    190. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN01jmURln28oQvkqPceK_!!3156547979.jpg",
    191. "http://img.alicdn.com/imgextra/i2/3156547979/O1CN01IGMemU28oQvwrijKa_!!3156547979.jpg",
    192. "http://img.alicdn.com/imgextra/i3/3156547979/O1CN01YfUBP828oQvqn6paE_!!3156547979.jpg",
    193. "http://img.alicdn.com/imgextra/i2/3156547979/O1CN01O5fhxq28oQvpqt55S_!!3156547979.jpg",
    194. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN01HOkBr928oQvtt41nF_!!3156547979.jpg",
    195. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN01EVmmk928oQvg2v3EE_!!3156547979.jpg",
    196. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN01zHoSUU28oQvqn8NEe_!!3156547979.jpg",
    197. "http://img.alicdn.com/imgextra/i3/3156547979/O1CN01uSgZwD28oQvvn0yp9_!!3156547979.jpg",
    198. "http://img.alicdn.com/imgextra/i3/3156547979/O1CN01PX2UpJ28oQvg2ti2g_!!3156547979.jpg",
    199. "http://img.alicdn.com/imgextra/i1/3156547979/O1CN01Q94itu28oQvg2vO2S_!!3156547979.jpg",
    200. "http://img.alicdn.com/imgextra/i4/3156547979/O1CN01RTHi0n28oQvr9bPtu_!!3156547979.jpg",
    201. "http://img.alicdn.com/imgextra/i2/3156547979/O1CN01UT2v3Z28oQvv3l67u_!!3156547979.jpg",
    202. "http://img.alicdn.com/imgextra/i4/3156547979/O1CN01ruEeWO28oQvn2IJzX_!!3156547979.jpg",
    203. "http://img.alicdn.com/imgextra/i3/3156547979/O1CN01Wt6tw228oQvtKMIiE_!!3156547979.jpg",
    204. "https://www.o0b.cn/i.php?t.png&rid=gw-3.62dc40a4154f6&p=2342515475&k=41690&t=1658601637"
    205. ],
    206. "shop_item": [],
    207. "relate_items": []
    208. },
    209. "error": "",
    210. "secache": "b51e3abe4edd8d50ba12c95ae7e0043d",
    211. "secache_time": 1660119467,
    212. "secache_date": "2022-08-10 16:17:47",
    213. "translate_status": "",
    214. "translate_time": 0,
    215. "language": {
    216. "default_lang": "cn",
    217. "current_lang": "cn"
    218. },
    219. "reason": "",
    220. "error_code": "0000",
    221. "cache": 0,
    222. "api_info": "today:165 max:10100 all[259=165+44+51];expires:2030-12-31",
    223. "execution_time": "0.245",
    224. "server_time": "Beijing/2022-08-10 16:17:47",
    225. "client_ip": "106.6.34.3",
    226. "call_args": {
    227. "num_iid": "558486062697",
    228. "is_promotion": "1"
    229. },
    230. "api_type": "taobao",
    231. "translate_language": "zh-CN",
    232. "translate_engine": "google_new",
    233. "server_memory": "0.9MB",
    234. "request_id": "gw-4.62f369ab62eaf",
    235. "last_id": "1142624495"
    236. }

  • 相关阅读:
    python开发实验管理系统(lims)中的标准管理--检测项目
    yocs_velocity_smoother速度平滑库知识
    MYSQL 查询重复数据
    odoo15重建数据库(windows版本)
    nodejs DEBUG=*
    Visual Components Robotics OLP解决方案 北京衡祖
    NoSql之Redis整数集合(intset)源码探究
    python采集小破站视频弹幕
    如何反编译去掉安卓应用的版本更新功能
    Python网络编程
  • 原文地址:https://blog.csdn.net/api_Anzexi/article/details/126268841