当前位置:   article > 正文

淘宝天猫商品详情页全页数据抓取API接口(商品价格库存销量商品主图)_淘宝主图详情页抓取

淘宝主图详情页抓取

淘宝天猫商品详情页全页数据抓取API接口(商品价格库存销量商品主图)的主要功能包括但不限于:

  1. 商品详情获取:API接口能够抓取淘宝天猫商品详情页的全页数据,包括商品的价格、库存、销量以及商品主图等关键信息。
  2. 数据更新与同步:通过定期调用API接口,可以实时获取最新的商品数据,保持数据的更新与同步,从而确保数据的准确性和及时性。
  3. 自定义抓取规则:API接口通常支持自定义抓取规则,用户可以根据自己的需求设定抓取的内容、格式和频率等,实现更加灵活和个性化的数据抓取。
  4. 批量处理与高效抓取:对于需要处理大量商品数据的用户,API接口支持批量处理和高效抓取,能够大幅提升数据处理效率和速度。
  5. 数据整合与分析:通过API接口获取的商品数据可以进行整合和分析,为商家提供有价值的市场洞察和决策支持,帮助商家更好地了解市场需求和竞争态势。

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

  • item_get 获得淘宝商品详情
  • item_get_pro 获得淘宝商品详情高级版
  • item_review 获得淘宝商品评论
  • item_fee 获得淘宝商品快递费用
  • item_password 获得淘口令真实url
  • item_list_updown 批量获得淘宝商品上下架时间
  • seller_info 获得淘宝店铺详情
  • item_search 按关键字搜索淘宝商品
  • item_search_tmall 按关键字搜索天猫商品
  • item_search_pro 高级关键字搜索淘宝商品
  • item_search_img 按图搜索淘宝商品(拍立淘)
  • item_search_shop 获得店铺的所有商品
  • item_search_seller 搜索店铺列表
  • item_search_guang 爱逛街
  • item_search_suggest 获得搜索词推荐
  • item_search_jupage 天天特价
  • item_search_coupon 优惠券查询
  • cat_get 获得淘宝分类详情
  • item_cat_get 获得淘宝商品类目
  • item_search_samestyle 搜索同款的商品
  • item_search_similar 搜索相似的商品
  • item_sku 获取sku详细信息
  • item_recommend 获取推荐商品列表
  • brand_cat 获取品牌分类列表
  • brand_cat_top 获取分类推荐品牌列表
  • brand_cat_list 得到指定分类的品牌列表
  • brand_keyword_list 得到指定关键词的品牌列表
  • brand_info 得到品牌相关信息
  • brand_product_list 得到指定品牌的产品
  • custom 自定义API操作
  • buyer_cart_add 添加到购物车
  • buyer_cart_remove 删除购物车商品
  • buyer_cart_clear 清空购物车
  • buyer_cart_list 获取购物车的商品列表
  • buyer_cart_order 将购物车商品保存为订单
  • buyer_order_list 获取购买到的商品订单列表
  • buyer_order_detail 获取购买到的商品订单详情
  • buyer_order_express 获取购买到的商品订单物流
  • buyer_order_message 获取购买到的订单买家留言
  • buyer_address_list 收货地址列表
  • buyer_address_clear 清除收货地址
  • buyer_address_remove 删除收货地址
  • buyer_address_modify 修改收货地址
  • buyer_address_add 添加收货地址
  • buyer_info 买家信息
  • buyer_token 买家token
  • seller_order_list 获取卖出的商品订单列表
  • seller_order_detail 获取卖出的商品订单详情
  • seller_order_close 卖家关闭一笔交易
  • seller_order_message 获取或修改卖出去的订单备注
  • seller_auction_list 商品可上下架商品列表
  • seller_auction 商品上下架
  • seller_item_add 商品上传
  • upload_img 上传图片到淘宝
  • img2text 图片识别商品接口
  • tbk_order_query 淘宝客订单查询
  • item_list_weight 批量获取商品信息
  • item_history_price 获取商品历史价格信息
  • item_get_app 获得淘宝app商品详情原数据

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
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版本

请求参数

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

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

响应参数

Version: Date:2022-04-04

名称类型必须示例值描述

item

item[]1宝贝详情数据

 

响应示例

  1. {
  2. "item": {
  3. "num_iid": "520813250866",
  4. "title": "三刃木折叠刀过安检创意迷你钥匙扣钥匙刀军刀随身多功能小刀包邮",
  5. "desc_short": "",
  6. "price": 25.8,
  7. "total_price": 0,
  8. "suggestive_price": 0,
  9. "orginal_price": "25.80",
  10. "nick": "欢乐购客栈",
  11. "num": "832",
  12. "min_num": 0,
  13. "detail_url": "http://item.taobao.com/item.htm?id=520813250866",
  14. "pic_url": "//img.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg",
  15. "brand": "三刃木",
  16. "brandId": "4036703",
  17. "rootCatId": "50013886",
  18. "cid": "50014822",
  19. "favcount": "4824",
  20. "fanscount": "1469",
  21. "crumbs": [],
  22. "created_time": "",
  23. "modified_time": "",
  24. "delist_time": "",
  25. "desc": "<p style=\"text-align:center;\"><span style=\"color:#ff0000;\"><span style=\"font-size:24.0px;\"><strong>小店所有产品都支持刻字,如需刻字,拍之前联系客服即可。</strong></span></span></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>炎炎夏日来临,一把随身携带便携式的折叠小刀,<span style=\"color:#ff0000;\">带开瓶器功能</span>,喝酒不用愁。(钥匙刀不带开瓶器功能)</strong></span></p> <p style=\"text-align:center;\"><strong style=\"color:#000000;line-height:1.5;\"><span style=\"font-size:18.0px;\"><span style=\"line-height:18.0px;\">可以当吊牌项链装饰,也可当钥匙扣挂饰, 水果刀 开瓶器 户外防身.</span></span></strong></p> <p style=\"text-align:center;\"><strong style=\"line-height:1.5;\"><span style=\"font-size:24.0px;\">部分客户跟我们反映链子质量还不够好,因此小店已重新订购一批质量更好的链子赠送,<span style=\"color:#ff0000;\">加量不加价</span>,只为让你买的更舒心,戴的更放心。</span></strong></p> <p style=\"text-align:center;\"><span style=\"font-size:36.0px;\"><strong>购买就送<span style=\"color:#ff0000;\">工具刀卡和链子</span>一条</strong></span></p> <p style=\"text-align:center;\"><span style=\"font-size:36.0px;\"><strong><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2Sci2jXXXXXXFXpXXXXXXXXXX_!!2596264565.png\" size=\"611x442\"> </strong></span></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>璀璨钻石套餐包含【SK016D钥匙扣+GJ019C折叠刀+GJ017D工具卡】</strong></span><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg\" size=\"750x600\" /></p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>超凡大师套餐包括【304不锈钢钥匙扣+GJ019C折叠刀+GJ017D工具卡】</strong></span><a href=\"//item.taobao.com/item.htm?id=520798805877\" target=\"_blank\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"float:none;margin:0.0px;\" /></a></p> <p style=\"text-align:center;\">&nbsp;</p> <p style=\"text-align:center;\"><span style=\"font-size:18.0px;\"><strong>最强王者套餐包括【钛钢钥匙扣+GJ019C折叠刀+GJ017D工具卡】<a href=\"//item.taobao.com/item.htm?id=520801586805\" target=\"_blank\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"float:none;margin:0.0px;\" /></a> </strong></span></p> <p style=\"text-align:center;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB28Ox4b77OyuJjSsplXXXqdpXa_!!2596264565.jpg\" size=\"749x553\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2.mTddVXXXXbeXpXXXXXXXXXX_!!2596264565.jpg\" style=\"line-height:1.5;\" size=\"750x653\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB21Ro.jl0lpuFjSszdXXcdxFXa_!!2596264565.jpg\" size=\"750x653\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2q9CelVXXXXcUXXXXXXXXXXXX_!!2596264565.jpg\" size=\"750x340\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB21EX9lVXXXXaXXpXXXXXXXXXX_!!2596264565.jpg\" size=\"750x416\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2udCylVXXXXXgXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2EARxjB8lpuFjSspaXXXJKpXa_!!2596264565.jpg\" size=\"750x515\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2ssuwlVXXXXafXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2nAHqgyC9MuFjSZFoXXbUzFXa_!!2596264565.jpg\" size=\"750x606\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2ahCelVXXXXc_XXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2w1JnjwRkpuFjy1zeXXc.6FXa_!!2596264565.jpg\" size=\"750x469\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2C902lVXXXXbnXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2sGR3lVXXXXblXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2ZBGxlVXXXXXMXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i1/2596264565/TB2MjWklVXXXXcaXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2UgV3lVXXXXbdXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2ip5XlVXXXXX2XpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\"> <img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2sMTBdVXXXXXlXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2d3HfdVXXXXahXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2AVbBdVXXXXXkXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2nf_wdVXXXXaMXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2dLYddVXXXXbtXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2H1_adVXXXXbWXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2eBzsdVXXXXbuXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i4/2596264565/TB2dOTndVXXXXcCXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB2fK2tdVXXXXbkXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i2/2596264565/TB29zjedVXXXXaFXpXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\"><img align=\"absmiddle\" src=\"//img.alicdn.com/imgextra/i3/2596264565/TB2i7rmdVXXXXcTXXXXXXXXXXXX_!!2596264565.jpg_q90.jpg\" style=\"line-height:1.5;\" /></p>",
  26. "item_imgs": [
  27. {
  28. "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2p30elFXXXXXQXpXXXXXXXXXX_!!2596264565.jpg"
  29. },
  30. {
  31. "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2onxRlVXXXXcDXpXXXXXXXXXX_!!2596264565.jpg"
  32. },
  33. {
  34. "url": "//img.alicdn.com/imgextra/i1/2596264565/TB2a.x.lVXXXXXPXpXXXXXXXXXX_!!2596264565.jpg"
  35. },
  36. {
  37. "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2iWE6bKZkyKJjSszbXXblwFXa_!!2596264565.jpg"
  38. },
  39. {
  40. "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2j2cTXib_F1JjSZFzXXc6KXXa_!!2596264565.jpg"
  41. }
  42. ],
  43. "item_weight": "0",
  44. "item_size": "",
  45. "location": "广东深圳",
  46. "post_fee": "",
  47. "express_fee": "0.00",
  48. "ems_fee": "",
  49. "shipping_to": "广东广州白云区",
  50. "has_discount": "false",
  51. "video": [],
  52. "is_virtual": "",
  53. "sample_id": "",
  54. "is_promotion": "false",
  55. "props_name": "1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子;1627207:1195392087:颜色分类:GJ018X钥匙刀+送工具刀卡+链子;1627207:1331112595:颜色分类:超凡大师套餐【送工具卡+链子】;1627207:1331112594:颜色分类:最强王者套餐【送工具卡+链子】;1627207:1331264247:颜色分类:璀璨钻石套餐【送工具卡+链子】",
  56. "prop_imgs": {
  57. "prop_img": [
  58. {
  59. "properties": "1627207:1347647754",
  60. "url": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg"
  61. },
  62. {
  63. "properties": "1627207:1347647753",
  64. "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg"
  65. },
  66. {
  67. "properties": "1627207:1195392087",
  68. "url": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg"
  69. },
  70. {
  71. "properties": "1627207:1331112595",
  72. "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg"
  73. },
  74. {
  75. "properties": "1627207:1331112594",
  76. "url": "//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg"
  77. },
  78. {
  79. "properties": "1627207:1331264247",
  80. "url": "//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg"
  81. }
  82. ]
  83. },
  84. "property_alias": "1627207:1347647754:长方形带开瓶器+送工具刀卡+链子;1627207:1347647753:椭圆形带开瓶器+送工具刀卡+链子;1627207:1195392087:GJ018X钥匙刀+送工具刀卡+链子;1627207:1331112595:超凡大师套餐【送工具卡+链子】;1627207:1331112594:最强王者套餐【送工具卡+链子】;1627207:1331264247:璀璨钻石套餐【送工具卡+链子】",
  85. "props": [
  86. {
  87. "name": "品牌",
  88. "value": "三刃木"
  89. },
  90. {
  91. "name": "产地",
  92. "value": "中国"
  93. },
  94. {
  95. "name": "颜色分类",
  96. "value": "长方形带开瓶器+送工具刀卡+链子,椭圆形带开瓶器+送工具刀卡+链子,GJ018X钥匙刀+送工具刀卡+链子,超凡大师套餐【送工具卡+链子】,最强王者套餐【送工具卡+链子】,璀璨钻石套餐【送工具卡+链子】"
  97. },
  98. {
  99. "name": "吊牌价",
  100. "value": "46"
  101. },
  102. {
  103. "name": "功能数量",
  104. "value": "5个及以下"
  105. },
  106. {
  107. "name": "货号",
  108. "value": "GJ019C"
  109. },
  110. {
  111. "name": "附加功能",
  112. "value": "开瓶器,刀,螺丝刀,钥匙圈,其他"
  113. }
  114. ],
  115. "total_sold": "1",
  116. "skus": {
  117. "sku": [
  118. {
  119. "price": "39",
  120. "orginal_price": "39.00",
  121. "properties": "1627207:1347647754",
  122. "properties_name": "1627207:1347647754:颜色分类:长方形带开瓶器+送工具刀卡+链子",
  123. "quantity": "104",
  124. "sku_id": "3166598625985"
  125. },
  126. {
  127. "price": "39",
  128. "orginal_price": "39.00",
  129. "properties": "1627207:1347647753",
  130. "properties_name": "1627207:1347647753:颜色分类:椭圆形带开瓶器+送工具刀卡+链子",
  131. "quantity": "370",
  132. "sku_id": "3166598625984"
  133. },
  134. {
  135. "price": "25.8",
  136. "orginal_price": "25.80",
  137. "properties": "1627207:1195392087",
  138. "properties_name": "1627207:1195392087:颜色分类:GJ018X钥匙刀+送工具刀卡+链子",
  139. "quantity": "34",
  140. "sku_id": "3144644292458"
  141. },
  142. {
  143. "price": "73.8",
  144. "orginal_price": "73.80",
  145. "properties": "1627207:1331112595",
  146. "properties_name": "1627207:1331112595:颜色分类:超凡大师套餐【送工具卡+链子】",
  147. "quantity": "157",
  148. "sku_id": "3161300228970"
  149. },
  150. {
  151. "price": "91.8",
  152. "orginal_price": "91.80",
  153. "properties": "1627207:1331112594",
  154. "properties_name": "1627207:1331112594:颜色分类:最强王者套餐【送工具卡+链子】",
  155. "quantity": "0",
  156. "sku_id": "3161300228969"
  157. },
  158. {
  159. "price": "63.8",
  160. "orginal_price": "63.80",
  161. "properties": "1627207:1331264247",
  162. "properties_name": "1627207:1331264247:颜色分类:璀璨钻石套餐【送工具卡+链子】",
  163. "quantity": "167",
  164. "sku_id": "3161107666655"
  165. }
  166. ]
  167. },
  168. "seller_id": "2596264565",
  169. "sales": "1",
  170. "shop_id": "127203758",
  171. "props_list": {
  172. "1627207:1347647754": "颜色分类:长方形带开瓶器+送工具刀卡+链子",
  173. "1627207:1347647753": "颜色分类:椭圆形带开瓶器+送工具刀卡+链子",
  174. "1627207:1195392087": "颜色分类:GJ018X钥匙刀+送工具刀卡+链子",
  175. "1627207:1331112595": "颜色分类:超凡大师套餐【送工具卡+链子】",
  176. "1627207:1331112594": "颜色分类:最强王者套餐【送工具卡+链子】",
  177. "1627207:1331264247": "颜色分类:璀璨钻石套餐【送工具卡+链子】"
  178. },
  179. "seller_info": {
  180. "title": "欢乐购客栈",
  181. "shop_name": "欢乐购客栈",
  182. "sid": "127203758",
  183. "zhuy": "//shop127203758.taobao.com",
  184. "level": "12",
  185. "shop_type": "C",
  186. "user_num_id": "2596264565",
  187. "nick": "欢乐购客栈",
  188. "cid": null,
  189. "delivery_score": "4.8 ",
  190. "item_score": "4.8 ",
  191. "score_p": "4.8 "
  192. },
  193. "tmall": "false",
  194. "error": "",
  195. "warning": "",
  196. "url_log": [],
  197. "stuff_status": "",
  198. "shopinfo": {
  199. "shop_name": "欢乐购客栈",
  200. "shop_id": "127203758"
  201. },
  202. "data_from": "mtop",
  203. "method": "item_mtop:item_get",
  204. "promo_type": null,
  205. "props_img": {
  206. "1627207:1347647754": "//img.alicdn.com/imgextra/i3/2596264565/TB2.XeblVXXXXXkXpXXXXXXXXXX_!!2596264565.jpg",
  207. "1627207:1347647753": "//img.alicdn.com/imgextra/i4/2596264565/TB2dTrjdVXXXXXBXpXXXXXXXXXX_!!2596264565.jpg",
  208. "1627207:1195392087": "//img.alicdn.com/imgextra/i2/2596264565/TB2j22kdVXXXXXdXpXXXXXXXXXX_!!2596264565.jpg",
  209. "1627207:1331112595": "//img.alicdn.com/imgextra/i4/2596264565/TB2_uiXnFXXXXXBXXXXXXXXXXXX_!!2596264565.jpg",
  210. "1627207:1331112594": "//img.alicdn.com/imgextra/i4/2596264565/TB2Gm9xnFXXXXbmXXXXXXXXXXXX_!!2596264565.jpg",
  211. "1627207:1331264247": "//img.alicdn.com/imgextra/i3/2596264565/TB2wWohmXXXXXX8XXXXXXXXXXXX_!!2596264565.jpg"
  212. },
  213. "rate_grade": "",
  214. "shop_item": [],
  215. "relate_items": []
  216. },
  217. "secache": "d8bd20b8f0d9df02dd030dd374110240",
  218. "secache_time": 1591841298,
  219. "secache_date": "2020-06-11 10:08:18",
  220. "translate_status": "error",
  221. "translate_time": 0.001,
  222. "language": {
  223. "current_lang": "zh-CN",
  224. "source_lang": "cn"
  225. },
  226. "error": "",
  227. "reason": "",
  228. "error_code": "0000",
  229. "cache": 1,
  230. "api_info": "today:7033 max:10000",
  231. "execution_time": 0.211,
  232. "server_time": "Beijing/2020-06-11 10:12:27",
  233. "call_args": {
  234. "num_iid": "520813250866",
  235. "area_id": "440111"
  236. },
  237. "api_type": "taobao",
  238. "translate_language": "zh-CN",
  239. "translate_engine": "google_cn",
  240. "server_memory": "8.26MB",
  241. "request_id": "15ee1930b4e098"
  242. }

 异常示例

  1. {
  2. "error": "item-not-found",
  3. "reason": "商品没找到",
  4. "error_code": "2000",
  5. "success": 0,
  6. "cache": 0,
  7. "api_info": "today:0 max:10000",
  8. "execution_time": 0.081,
  9. "server_time": "Beijing/2020-06-10 23:44:00",
  10. "call_args": [],
  11. "api_type": "taobao",
  12. "request_id": "15ee0ffc041242"}

 错误码解释

状态代码(error_code)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误

请注意,使用淘宝天猫商品详情页全页数据抓取API接口需要遵守相关法律法规和平台规定,确保数据的合法获取和使用。同时,也需要注意保护用户隐私和数据安全,避免数据泄露和滥用等问题。

至于具体的API接口名称和功能细节,可能因淘宝天猫平台的更新和变化而有所不同。因此,建议直接访问淘宝开放平台或天猫开放平台,查阅最新的API文档和开发者指南,以获取最准确和详细的信息。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/668831
推荐阅读
相关标签
  

闽ICP备14008679号