• 关键词搜索抖音商品列表API接口-(item_search-根据关键词取商品列表API接口)


    一、关键词搜索抖音商品列表API接口通过代码对接可以拿到商品链接,商品视频,商品列表,商品sku信息,卖家昵称,价格,优惠价,页码,宝贝数量等参数,代码对接如下:

    1.公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中)
    secretString调用密钥 (点击获取key 和secret
    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=连衣裙&page=1&sort=

    参数说明:q:关键词,
    filter:搜索类型:filter=video 搜索视频、filter=goods 搜索商品、filter=user 搜索用户,
    page:页数
    sort:排序(目前只视频可排序):sort=new 最新发布 sort=credit 最多点赞 sort=bid 综合排序

    3.响应参数

    名称类型必须示例值描述

    items

    items[]0按关键字搜索商品

    page

    Int01页码

    real_total_results

    Int01900宝贝数量

    total_results

    Int01900宝贝数量

    page_size

    Int020接口返回数量

    pagecount

    Int0120总页数

    item

    item[]0宝贝详情数据

    title

    String0【清子】显瘦小蛮腰~新款定制设计春装卫衣连衣裙L0788商品标题

    pic_url

    String0https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_cbrNegKF_70732696448192514710931_f48788ff100d9afb00d63ed437357f29_sx_920709_www2891-2891宝贝图片

    promotion_price

    Float0169.00优惠价

    price

    Float0169.00价格

    sales

    Int017872销量

    num_iid

    Bigint03536467110454782000宝贝ID

    shop_name

    String0MDNW服饰卖家昵称

    detail_url

    String0https://haohuo.jinritemai.com/views/product/item2?id=3536467110454782196&pick_source=Nvt7YLu商品链接

    4.请求参数(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/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&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)

    5.响应示例

    1. {
    2. "items": {
    3. "page": "1",
    4. "real_total_results": 500,
    5. "total_results": 500,
    6. "page_size": 20,
    7. "pagecount": 25,
    8. "item": [
    9. {
    10. "title": "【清子】显瘦小蛮腰~新款定制设计春装卫衣连衣裙L0788",
    11. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_cbrNegKF_70732696448192514710931_f48788ff100d9afb00d63ed437357f29_sx_920709_www2891-2891",
    12. "promotion_price": 169,
    13. "price": 169,
    14. "sales": 17872,
    15. "num_iid": 3536467110454782000,
    16. "shop_name": "MDNW服饰",
    17. "shop_id": 9088931,
    18. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536467110454782196&pick_source=Nvt7YLu"
    19. },
    20. {
    21. "title": "【诗雨推荐】时尚气质休闲连衣裙",
    22. "pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_yjSJQYM_70770131096798824990399_b8a44fa0240e628775f3b8c4fbee085d_sx_342317_www782-782",
    23. "promotion_price": 59.9,
    24. "price": 59.9,
    25. "sales": 19871,
    26. "num_iid": 3536848829968219000,
    27. "shop_name": "星辰服饰店铺",
    28. "shop_id": 6970399,
    29. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536848829968218897&pick_source=NvndGU9"
    30. },
    31. {
    32. "title": "晶咕 蕾蕾宠粉LL&JINGU/「不挑人」V领显瘦撞色设计的连衣裙",
    33. "pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_yAcTOwNE_70755344657952115580027_9faedfb6047eaf1a87f6cabde09476a7_sx_245846_www1080-1080",
    34. "promotion_price": 159,
    35. "price": 159,
    36. "sales": 15298,
    37. "num_iid": 3537767536399665700,
    38. "shop_name": "晶咕旗舰店",
    39. "shop_id": 27226027,
    40. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537767536399665722&pick_source=Nvtt1n1"
    41. },
    42. {
    43. "title": "TONGXUAN/同瑄春夏季新款碎花连衣裙0313.2058",
    44. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_uEvMYbQo_70745289030580472430369_27dd8add86a7996ef8e397d401099068_sx_218598_www1170-1170",
    45. "promotion_price": 159.9,
    46. "price": 159.9,
    47. "sales": 6001,
    48. "num_iid": 3537264606424760000,
    49. "shop_name": "晟达服饰",
    50. "shop_id": 34202369,
    51. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537264606424759942&pick_source=Nvn1XRe"
    52. },
    53. {
    54. "title": "【清子】时尚无敌 ~新款定制 链条卫衣连衣裙L0789",
    55. "pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_cbrNegKF_70773595225615240000931_886c00ad1ebeab7423044faa9524d549_sx_701912_www2761-2761",
    56. "promotion_price": 149,
    57. "price": 149,
    58. "sales": 14638,
    59. "num_iid": 3537798859512253400,
    60. "shop_name": "MDNW服饰",
    61. "shop_id": 9088931,
    62. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537798859512253339&pick_source=Nvt3BPJ"
    63. },
    64. {
    65. "title": "Lenakids 22夏季 蝴蝶结爱心公主连衣裙22022503",
    66. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_ejmsuggl_70752756065601129260328_fd86404f26cb6d2e2d70daa3ca80a132_sx_485473_www1920-1920",
    67. "promotion_price": 129,
    68. "price": 129,
    69. "sales": 17406,
    70. "num_iid": 3537637931424610000,
    71. "shop_name": "莉娜kids-YG店",
    72. "shop_id": 36857328,
    73. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537637931424609759&pick_source=NvnLTgd"
    74. },
    75. {
    76. "title": "女童夏季连衣裙2022新款碎花泡泡袖公主裙夏女宝宝夏装短袖裙子",
    77. "pic_url": "https://p9-aio.ecombdimg.com/obj/temai/af695f0729ae83a24c325bcfd5aec192www800-800",
    78. "promotion_price": 19.9,
    79. "price": 19.9,
    80. "sales": 33642,
    81. "num_iid": 3534622230833180000,
    82. "shop_name": "萌小兜童装工厂店",
    83. "shop_id": 14088342,
    84. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3534622230833179994&pick_source=NvtgRFD"
    85. },
    86. {
    87. "title": "Disney/迪士尼儿童碎花两件套连衣裙XFW1BZ115①",
    88. "pic_url": "https://p3-aio.ecombdimg.com/obj/temai/efcf9481abd785adc282276ee7fac9e3www800-800",
    89. "promotion_price": 139.9,
    90. "price": 139.9,
    91. "sales": 14398,
    92. "num_iid": 3533677142598661000,
    93. "shop_name": "Disney小店",
    94. "shop_id": 9944359,
    95. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3533677142598661014&pick_source=Nvtwqfy"
    96. },
    97. {
    98. "title": "初为家 春季新品银杏叶印花自带腰带连衣裙 - 9966#",
    99. "pic_url": "https://p6-aio.ecombdimg.com/obj/temai/397bdc8c8631c4255cf1fb96a8b3d490www1080-1080",
    100. "promotion_price": 6666,
    101. "price": 6666,
    102. "sales": 11775,
    103. "num_iid": 3532954784934043000,
    104. "shop_name": "初为时尚大码女装",
    105. "shop_id": 699303,
    106. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3532954784934042902&pick_source=NvtWDtU"
    107. },
    108. {
    109. "title": "心动粉黛连衣裙XZ2090",
    110. "pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_PzFHhbHs_70818007540879526520081_c791eaf5449f2e05e1e3d847aac8552b_sx_177192_www1079-1079",
    111. "promotion_price": 199,
    112. "price": 199,
    113. "sales": 10894,
    114. "num_iid": 3540451021136484400,
    115. "shop_name": "YINZ小银子女装",
    116. "shop_id": 12839081,
    117. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3540451021136484138&pick_source=NvtG65c"
    118. },
    119. {
    120. "title": "圆脸酥新款显瘦牛仔连衣裙 送同款腰链",
    121. "pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_UzNjkRcp_70845668187397491550759_6a3a5112365b685c464ed55396c10ee8_sx_207425_www800-800",
    122. "promotion_price": 129.9,
    123. "price": 129.9,
    124. "sales": 17698,
    125. "num_iid": 3541937150696256000,
    126. "shop_name": "圆脸酥服装工厂",
    127. "shop_id": 12306759,
    128. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3541937150696256191&pick_source=NvtoWpT"
    129. },
    130. {
    131. "title": "2022年精梳莫代尔家居服睡裙V字百褶设计连衣裙1059",
    132. "pic_url": "https://p9-aio.ecombdimg.com/obj/temai/bbc089c8205f78211d4830d7167be0f5www800-800",
    133. "promotion_price": 35,
    134. "price": 35,
    135. "sales": 42535,
    136. "num_iid": 3509952969334515000,
    137. "shop_name": "大荣服装店",
    138. "shop_id": 4378674,
    139. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3509952969334514955&pick_source=NvnGMKR"
    140. },
    141. {
    142. "title": "TONGXUAN/同瑄春夏季新款连衣裙0312.2041",
    143. "pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_uEvMYbQo_70741570862837271390369_1bd285f4891ba56efeccee4753239110_sx_171847_www1170-1170",
    144. "promotion_price": 149.9,
    145. "price": 149.9,
    146. "sales": 4261,
    147. "num_iid": 3537078793221058000,
    148. "shop_name": "晟达服饰",
    149. "shop_id": 34202369,
    150. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537078793221057827&pick_source=NvnLNDw"
    151. },
    152. {
    153. "title": "【大喜自制】CP裙连衣裙优雅气质长裙",
    154. "pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_uvMttNQo_70770253450812623700320_2551e5b1fd36e1ed1f3d5cdf4d5cb722_sx_82756_www600-600",
    155. "promotion_price": 359,
    156. "price": 359,
    157. "sales": 11118,
    158. "num_iid": 3536498199617493500,
    159. "shop_name": "大喜女装店",
    160. "shop_id": 31046320,
    161. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536498199617493444&pick_source=Nvtp4nX"
    162. },
    163. {
    164. "title": "仙女定制·韩版收腰设计感POLO领显瘦连衣裙6687#",
    165. "pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_BmscpSV_70786600292214377080577_3fc24c8158db19f069fb1a6ef4a520e0_sx_908521_www1440-1681",
    166. "promotion_price": 39.9,
    167. "price": 39.9,
    168. "sales": 9868,
    169. "num_iid": 3538414620425485000,
    170. "shop_name": "仙女定制官方帐号",
    171. "shop_id": 2780577,
    172. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3538414620425484697&pick_source=NvtErRV"
    173. },
    174. {
    175. "title": "2021新款吊带衬衫减龄白色连衣裙洋气两件套装",
    176. "pic_url": "https://p9-aio.ecombdimg.com/obj/temai/d8b9b52a523dee34c21b80f14a20a79f478f837bwww800-800",
    177. "promotion_price": 79,
    178. "price": 79,
    179. "sales": 23896,
    180. "num_iid": 3493447132738898400,
    181. "shop_name": "衣漫朵",
    182. "shop_id": 6335140,
    183. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3493447132738898360&pick_source=Nvt7KP4"
    184. },
    185. {
    186. "title": "2130旗袍裙子连衣裙中长款祺包裙2022年新款年轻改良旗袍版少女",
    187. "pic_url": "https://p3-aio.ecombdimg.com/obj/temai/b406e48fe59f3141e98fa15b0f0345843dc36ad8www750-750",
    188. "promotion_price": 79.9,
    189. "price": 79.9,
    190. "sales": 24234,
    191. "num_iid": 3480085173800951000,
    192. "shop_name": "哇喔服饰",
    193. "shop_id": 3889958,
    194. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3480085173800950962&pick_source=Nvneodf"
    195. },
    196. {
    197. "title": "RRFG.R溶溶zero 连衣裙N1052 3.17",
    198. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_UoIznLQo_70763979360951503680152_d117fd3c6eb2bca82272247654efbfa1_sx_197906_www800-800",
    199. "promotion_price": 149.9,
    200. "price": 149.9,
    201. "sales": 6898,
    202. "num_iid": 3537948146133031000,
    203. "shop_name": "溶溶高定服装",
    204. "shop_id": 21961152,
    205. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537948146133030735&pick_source=NvnR9gq"
    206. },
    207. {
    208. "title": "冰沙蜜桃连衣裙XZ2242",
    209. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_PzFHhbHs_70775320259173419930081_0fbc2a86b8227fa1762240d17ae774bc_sx_201357_www1080-1080",
    210. "promotion_price": 189,
    211. "price": 189,
    212. "sales": 6718,
    213. "num_iid": 3538407183639311000,
    214. "shop_name": "YINZ小银子女装",
    215. "shop_id": 12839081,
    216. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3538407183639310973&pick_source=NvnWosw"
    217. },
    218. {
    219. "title": "女童夏季连衣裙2022新款儿童韩版洋气樱桃公主裙夏装裙子",
    220. "pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_eiXzSSw_70740828160441387850169_d8e63140c5f63eae45ba0bc3f214a1a3_sx_717003_www800-800",
    221. "promotion_price": 39.9,
    222. "price": 39.9,
    223. "sales": 13356,
    224. "num_iid": 3537041448480433000,
    225. "shop_name": "吉米家族旗舰店",
    226. "shop_id": 1921169,
    227. "detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537041448480432904&pick_source=NvttnNN"
    228. }
    229. ],
    230. "_ddf": "xpgj"
    231. },
    232. "error_code": "0000",
    233. "reason": "ok",
    234. "secache": "9fd1f6906c8b8bc9080fe69807fc5a1f",
    235. "secache_time": 1649835424,
    236. "secache_date": "2022-04-13 15:37:04",
    237. "translate_status": "",
    238. "translate_time": 0,
    239. "language": {
    240. "default_lang": "cn",
    241. "current_lang": "cn"
    242. },
    243. "error": "",
    244. "cache": 0,
    245. "api_info": "today:48 max:11000",
    246. "execution_time": "0.048",
    247. "server_time": "Beijing/2022-04-13 17:02:00",
    248. "client_ip": "106.6.34.146",
    249. "call_args": {
    250. "q": "连衣裙",
    251. "start_price": "1"
    252. },
    253. "api_type": "douyin",
    254. "translate_language": "zh-CN",
    255. "translate_engine": "google_new",
    256. "server_memory": "0.77MB",
    257. "request_id": "gw-4.625691883e023",
    258. "last_id": "880760728"
    259. }

  • 相关阅读:
    linux之权限
    你真的会写简历吗?软件测试简历修改包装...
    web自动化测试(一)之web控件定位
    攻击你,与你何干!rsync你还敢这么玩?
    2022-08-22 第六小组 瞒春 学习笔记
    Springboot集成redis和mybatis-plus及websocket异常框架代码封装
    nginx快速入门
    C#Linq中的GroupBy
    C/C++家谱管理系统
    mysql-视图/存储过程/触发器
  • 原文地址:https://blog.csdn.net/tbprice/article/details/125477926