• 抖音API接口汇总及解析式(网络爬虫)


    抖音API接口列表:

    item_search根据关键词取商品列表

    item_get获得抖音商品详情

    item_get_app获取抖音商品原数据

    item_search_video根据关键词取视频列表

    item_get_video获取抖音视频详情

    item_search_keyword抖音关键词月搜查询

    item_search_shop获得店铺的所有商品

    item_password获取douyin分享口令url

    抖音获得抖音商品详情 API 返回值说明

    item_get-获得抖音商品详情

     公共参数

    请求地址: https://console.open.onebound.cn/console/?i=Anzexi

    名称类型必须描述
    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=3514453298386183303

    参数说明:num_iid:抖音商品ID

    响应参数

    Version: Date:

     

    请求示例

    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://api-gw.onebound.cn/douyin/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=3514453298386183303"
    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)

     响应示例

    1. {
    2. "item": {
    3. "num_iid": "3514453298386183303",
    4. "title": "【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女春装新款 高档磨毛衬衫 ",
    5. "desc_short": "",
    6. "price": 72,
    7. "total_price": "",
    8. "suggestive_price": "",
    9. "orginal_price": 72,
    10. "nick": "黄岛区古蒂歌服饰店",
    11. "num": "",
    12. "detail_url": "",
    13. "pic_url": "https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876",
    14. "brand": "Gudige/古蒂歌",
    15. "brandId": null,
    16. "rootCatId": 20005,
    17. "cid": 20179,
    18. "desc": "

      \"https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/330154d06bd7acfbc9fe46744a84f295www750-987\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/00ad2cafeffa2a85f3ef914fe1e17d35www1098-616\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/5910e6bf5d211c448fa269d67b7b22bccbc7e01bwww750-1038\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/ef7c2487660576bb1e35e0f675a7d5ee89566e7ewww750-971\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/f3ba562f0e4762641049268a558a243d68d0f4d9www750-1136\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/9130ca6f53486030a306f48f44923e8796e59ca9www750-1105\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/a3bf398e3439fe5c42c6cec8c3b2d008523a6f99www750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/25f773b7a62d0b789d015198261c3aac0224d676www750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/216c81f4115d9866134976c4e55b79d1cdfcfbdbwww750-955\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/c819abbf998aa58443c6e383fe8da9a9d7a25afewww750-834\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/82c9518b7438a5d30fb58efa1d872e3b50fa4a2ewww750-1136\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/78c6e8944f3d936654accf6059e6f5adwww800-800\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/40c2fc84c9e265b8a9897b8b77ce7764f347d00fwww750-952\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/79b4eecb3924bc01d2143270ebf015fdb2d0127fwww750-960\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/502e0ebbb534d4bcbdbca0ce158ee0ef917d9d1fwww750-1014\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/7c3272bbd8ae080d91636773df0c0bc8bc2c5b1cwww750-1038\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/2f9805ac9215f89da063aa3da473b06fa0591780www750-1080\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/2713d6e8adf3fe59c0fd3d2c15829e924f63a46ewww750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/b7331dd00e686a261912a54af4ae3f2b61311082www750-1136\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/682379cd908fc0ee170b6ab914e9df374651c44bwww750-1136\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/c1bc79f0eec46b8d6dc0c363dadc2f013d32f4a7www750-1136\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/3fc35a21ed6161836e78f18a0c506112dc6c19d2www750-1136\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/3c5d22702e1cd2de45c9ec3671c4154fe33e5ebewww750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/b4d1d18942ec15e5f64f6f5aadf9b467cd92e21bwww750-1136\" style=\"max-width: 100%;\"/>\"https://p9-aio.ecombdimg.com/obj/temai/87a96eccbacf3b3a20d99266f2d4b801f2352fa5www750-1136\" style=\"max-width: 100%;\"/>\"https://p3-aio.ecombdimg.com/obj/temai/7db68c13bfd5ed2b1d27e85248ba85f60a9d24d2www750-1136\" style=\"max-width: 100%;\"/>\"https://p6-aio.ecombdimg.com/obj/temai/75a8aa104430fc1227019d3b38f7a83e2f451e0bwww750-1136\" style=\"max-width: 100%;\"/>

      \"
      https://www.o0b.cn/i.php?t.png&rid=gw-1.6256890da39ad&p=1778786962&k=i_key&t=1649838349\" style=\"display:none\" />",
    19. "item_imgs": [
    20. {
    21. "url": "https://p3-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876"
    22. },
    23. {
    24. "url": "https://p3-aio.ecombdimg.com/obj/temai/f6543c94a2c3c724fd57a8c61d6e79ec7bb846f5www800-800"
    25. },
    26. {
    27. "url": "https://p6-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800"
    28. },
    29. {
    30. "url": "https://p3-aio.ecombdimg.com/obj/temai/104f75934f295b6395ec792ad755eed8b10f543dwww800-800"
    31. },
    32. {
    33. "url": "https://p3-aio.ecombdimg.com/obj/temai/3d65927c478ab58d06ecc31e6f541d2099e2429cwww800-800"
    34. }
    35. ],
    36. "item_weight": "",
    37. "post_fee": 0,
    38. "freight": 0,
    39. "express_fee": "",
    40. "ems_fee": "",
    41. "shipping_to": "",
    42. "video": [],
    43. "sample_id": "",
    44. "props_name": "0:1716041646595119:颜色分类:米杏色;1:1716041646595135:颜色分类:灰蓝色;2:1716041646596108:颜色分类:卡其色;3:1716041646596124:颜色分类:珍珠白;0:1716041646596156:尺码:S 建议100斤内穿;1:1716151478027315:尺码:M 建议100-113斤;2:1716151478028291:尺码:L 建议110-123斤;3:1716151478028307:尺码:XL 建议120-133斤;4:1716151478028323:尺码:2XL 建议130-158斤穿",
    45. "prop_imgs": {
    46. "prop_img": []
    47. },
    48. "props_imgs": {
    49. "prop_img": []
    50. },
    51. "property_alias": "",
    52. "props": [
    53. {
    54. "name": "上市年份季节",
    55. "value": "2022"
    56. },
    57. {
    58. "name": "品牌",
    59. "value": "Gudige/古蒂歌"
    60. },
    61. {
    62. "name": "图案",
    63. "value": "纯色"
    64. },
    65. {
    66. "name": "成分含量",
    67. "value": "95%以上"
    68. },
    69. {
    70. "name": "服装款式细节",
    71. "value": "口袋,纽扣"
    72. },
    73. {
    74. "name": "服装版型",
    75. "value": "宽松"
    76. },
    77. {
    78. "name": "衣长",
    79. "value": "常规款"
    80. },
    81. {
    82. "name": "衣门襟",
    83. "value": "单排多扣"
    84. },
    85. {
    86. "name": "袖型",
    87. "value": "常规"
    88. },
    89. {
    90. "name": "袖长",
    91. "value": "长袖"
    92. },
    93. {
    94. "name": "货号",
    95. "value": "251"
    96. },
    97. {
    98. "name": "面料材质",
    99. "value": "聚酯纤维"
    100. },
    101. {
    102. "name": "面料材质成分含量",
    103. "value": "95%以上"
    104. },
    105. {
    106. "name": "领型",
    107. "value": "POLO领"
    108. },
    109. {
    110. "name": "风格",
    111. "value": "通勤"
    112. }
    113. ],
    114. "total_sold": "1.3万+",
    115. "skus": [],
    116. "seller_id": "",
    117. "sales": 13000,
    118. "shop_id": "sXahcZg",
    119. "props_list": {
    120. "0:1716041646595119": "颜色分类:米杏色",
    121. "1:1716041646595135": "颜色分类:灰蓝色",
    122. "2:1716041646596108": "颜色分类:卡其色",
    123. "3:1716041646596124": "颜色分类:珍珠白",
    124. "0:1716041646596156": "尺码:S 建议100斤内穿",
    125. "1:1716151478027315": "尺码:M 建议100-113斤",
    126. "2:1716151478028291": "尺码:L 建议110-123斤",
    127. "3:1716151478028307": "尺码:XL 建议120-133斤",
    128. "4:1716151478028323": "尺码:2XL 建议130-158斤穿"
    129. },
    130. "seller_info": {
    131. "nick": "黄岛区古蒂歌服饰店",
    132. "item_score": 4.86,
    133. "score_p": 4.95,
    134. "delivery_score": 4.99,
    135. "shop_type": null,
    136. "shop_logo": "https://p3-aio.ecombdimg.com/obj/temai/1611656872ab5f2645a9f6cf20810db68844e3e3f5cf248f0f",
    137. "sid": 1716041646595087,
    138. "title": "古蒂歌精品女装店",
    139. "shop_name": "古蒂歌精品女装店"
    140. },
    141. "tmall": "",
    142. "error": "",
    143. "location": "广东省",
    144. "desc_img": [
    145. "https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136",
    146. "https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136",
    147. "https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095",
    148. "https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800",
    149. "https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070",
    150. "https://p3-aio.ecombdimg.com/obj/temai/330154d06bd7acfbc9fe46744a84f295www750-987",
    151. "https://p3-aio.ecombdimg.com/obj/temai/00ad2cafeffa2a85f3ef914fe1e17d35www1098-616",
    152. "https://p3-aio.ecombdimg.com/obj/temai/5910e6bf5d211c448fa269d67b7b22bccbc7e01bwww750-1038",
    153. "https://p9-aio.ecombdimg.com/obj/temai/ef7c2487660576bb1e35e0f675a7d5ee89566e7ewww750-971",
    154. "https://p6-aio.ecombdimg.com/obj/temai/f3ba562f0e4762641049268a558a243d68d0f4d9www750-1136",
    155. "https://p3-aio.ecombdimg.com/obj/temai/9130ca6f53486030a306f48f44923e8796e59ca9www750-1105",
    156. "https://p9-aio.ecombdimg.com/obj/temai/a3bf398e3439fe5c42c6cec8c3b2d008523a6f99www750-1136",
    157. "https://p6-aio.ecombdimg.com/obj/temai/25f773b7a62d0b789d015198261c3aac0224d676www750-1136",
    158. "https://p6-aio.ecombdimg.com/obj/temai/216c81f4115d9866134976c4e55b79d1cdfcfbdbwww750-955",
    159. "https://p3-aio.ecombdimg.com/obj/temai/c819abbf998aa58443c6e383fe8da9a9d7a25afewww750-834",
    160. "https://p6-aio.ecombdimg.com/obj/temai/82c9518b7438a5d30fb58efa1d872e3b50fa4a2ewww750-1136",
    161. "https://p9-aio.ecombdimg.com/obj/temai/78c6e8944f3d936654accf6059e6f5adwww800-800",
    162. "https://p3-aio.ecombdimg.com/obj/temai/40c2fc84c9e265b8a9897b8b77ce7764f347d00fwww750-952",
    163. "https://p9-aio.ecombdimg.com/obj/temai/79b4eecb3924bc01d2143270ebf015fdb2d0127fwww750-960",
    164. "https://p9-aio.ecombdimg.com/obj/temai/502e0ebbb534d4bcbdbca0ce158ee0ef917d9d1fwww750-1014",
    165. "https://p3-aio.ecombdimg.com/obj/temai/7c3272bbd8ae080d91636773df0c0bc8bc2c5b1cwww750-1038",
    166. "https://p9-aio.ecombdimg.com/obj/temai/2f9805ac9215f89da063aa3da473b06fa0591780www750-1080",
    167. "https://p6-aio.ecombdimg.com/obj/temai/2713d6e8adf3fe59c0fd3d2c15829e924f63a46ewww750-1136",
    168. "https://p6-aio.ecombdimg.com/obj/temai/b7331dd00e686a261912a54af4ae3f2b61311082www750-1136",
    169. "https://p3-aio.ecombdimg.com/obj/temai/682379cd908fc0ee170b6ab914e9df374651c44bwww750-1136",
    170. "https://p3-aio.ecombdimg.com/obj/temai/c1bc79f0eec46b8d6dc0c363dadc2f013d32f4a7www750-1136",
    171. "https://p9-aio.ecombdimg.com/obj/temai/3fc35a21ed6161836e78f18a0c506112dc6c19d2www750-1136",
    172. "https://p3-aio.ecombdimg.com/obj/temai/3c5d22702e1cd2de45c9ec3671c4154fe33e5ebewww750-1136",
    173. "https://p6-aio.ecombdimg.com/obj/temai/b4d1d18942ec15e5f64f6f5aadf9b467cd92e21bwww750-1136",
    174. "https://p9-aio.ecombdimg.com/obj/temai/87a96eccbacf3b3a20d99266f2d4b801f2352fa5www750-1136",
    175. "https://p3-aio.ecombdimg.com/obj/temai/7db68c13bfd5ed2b1d27e85248ba85f60a9d24d2www750-1136",
    176. "https://p6-aio.ecombdimg.com/obj/temai/75a8aa104430fc1227019d3b38f7a83e2f451e0bwww750-1136"
    177. ],
    178. "shop_item": [],
    179. "relate_items": []
    180. },
    181. "secache": "13dfb7af3b9afe151343f76cf8040cc2",
    182. "secache_time": 1649832242,
    183. "secache_date": "2022-04-13 14:44:02",
    184. "translate_status": "",
    185. "translate_time": 0,
    186. "language": {
    187. "default_lang": "cn",
    188. "current_lang": "cn"
    189. },
    190. "error": "",
    191. "reason": "",
    192. "error_code": "0000",
    193. "cache": 1,
    194. "api_info": "today:44 max:11000",
    195. "execution_time": "0.058",
    196. "server_time": "Beijing/2022-04-13 16:25:49",
    197. "client_ip": "106.6.34.146",
    198. "call_args": {
    199. "num_iid": "3514453298386183303"
    200. },
    201. "api_type": "douyin",
    202. "translate_language": "zh-CN",
    203. "translate_engine": "google_new",
    204. "server_memory": "3.05MB",
    205. "request_id": "gw-1.6256890da39ad",
    206. "last_id": "880670193"
    207. }

  • 相关阅读:
    力扣(88.53)补8.31
    Spring的国际化消息
    JC/T 1062-2022 泡沫混凝土砌块检测
    如何将内网ip映射到外网?快解析内网穿透
    银行余额修改生成器,虚拟农业建设工商邮政中国,画板+取快照生成png高清图
    js中批量修改对象属性
    docker快速建立samba、vsftp文件共享
    获取COM口信息
    Android 12 WiFi Scan 流程 [3]
    浅析森林烟火AI检测算法的应用及场景使用说明
  • 原文地址:https://blog.csdn.net/api_Anzexi/article/details/126315681