抖音API系列,根据关键词取商品列表、视频列表,获得商品详情、视频详情,关键词月搜查询等
抖音根据关键词取视频列表 API 返回值说明
公共参数
名称 | 类型 | 必须 | 描述 |
key | String | 是 | 调用key(必须以GET方式拼接在URL中)获取Key和secret注册测试 |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
items | items[] | 0 | | 按关键字搜索视频 |
page | Int | 0 | 1 | 页码 |
real_total_results | Int | 0 | 1900 | 视频数量 |
total_results | Int | 0 | 1900 | 视频数量 |
page_size | Int | 0 | 20 | 接口返回数量 |
pagecount | Int | 0 | 120 | 总页数 |
item | item[] | 0 | | 视频详情数据 |
请求示例Curl PHP PHPsdk JAVA C# Python
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/douyin/item_search_video/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=菜谱&page=1&sort="
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
item_search_video-根据关键词取视频列表
请求参数
请求参数:q=菜谱&page=1&sort=
参数说明:q:关键词,
page:页数
sort:排序:sort=new 最新发布 sort=credit 最多点赞 sort=bid 综合排序
响应示例
{
"page": "2",
"real_total_results": 100,
"total_results": 100,
"page_size": 10,
"pagecount": 10,
"item": [
{
"title": "青椒五花肉土豆片,试下我的这个做法,变大厨#为江西美食打call #为城市美食打call #77抖音嗨吃节",
"num_iid": "6720797448752663819",
"nick": "皮皮(教做菜)",
"signature": "如何查询订单物流呢:方法是,打开抖音,点击我,点击右上角三杠,点我的订单,查找物流即可[微笑] 有任何售后问题请联系对应的客服输入人工💁💁♂️ 宝妈自用厨具和食材在橱窗👆👆👆",
"city": "360400",
"uid": "93189025747",
"detail_url": "https://www.iesdouyin.com/share/video/6720797448752663819/?region=CN&mid=6720832362042657547&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "猪肉那么贵,不如用鸡蛋代替,这样做的鱼香鸡蛋比肉还好吃 #美食 #家常菜",
"num_iid": "6804735432291552525",
"nick": "家常美食-白糖",
"signature": "家常美食,每天分享! 感谢关注我的每一位朋友🙏🙏",
"city": "131000",
"uid": "78955618549",
"detail_url": "https://www.iesdouyin.com/share/video/6804735432291552525/?region=CN&mid=6804730383398701831&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "如何零失败在家做出厨师级别的蛋包饭!#跟着抖音学做菜 #厨师吃饭和你吃饭的区别",
"num_iid": "7086011452871462174",
"nick": "阿男的食谱",
"signature": "阿男哥努力点! 商务V:AnanACookbook",
"city": "330200",
"uid": "108592079249",
"detail_url": "https://www.iesdouyin.com/share/video/7086011452871462174/?region=CN&mid=7032289262364396301&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "你要是学会了这个爆炒青椒鸡,以后就是你的拿手菜,做法真的很简单#家常菜",
"num_iid": "7023287094181154082",
"nick": "皮皮(教做菜)",
"signature": "如何查询订单物流呢:方法是,打开抖音,点击我,点击右上角三杠,点我的订单,查找物流即可[微笑] 有任何售后问题请联系对应的客服输入人工💁💁♂️ 宝妈自用厨具和食材在橱窗👆👆👆",
"city": "430100",
"uid": "93189025747",
"detail_url": "https://www.iesdouyin.com/share/video/7023287094181154082/?region=CN&mid=7023287179128474382&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "杏鲍菇像我这样做,简单下饭全家人抢着吃!#杏鲍菇做法 #鱼香杏鲍菇",
"num_iid": "7033656036061973767",
"nick": "爱做菜",
"signature": "👆同款自用厨具和食材都在橱窗",
"city": "350500",
"uid": "101626266989",
"detail_url": "https://www.iesdouyin.com/share/video/7033656036061973767/?region=CN&mid=7033656068571974437&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "我送你个黄焖鸡的菜谱,保证你从年头吃到年尾! #贫穷料理 #在家做个拿手菜",
"num_iid": "6794253027449572622",
"nick": "安秋金",
"signature": "酷爱人间烟火和美食的山西小伙小安 愿你的笑容永远灿烂,记得按时吃饭❤️ 围脖🧣:安秋金 粉丝👗:PQLL888 🤝:qjsmjb 【中华名厨】拜访顶尖名厨,弘扬华夏美食,在家也可以做出“名厨味”。 【贫穷料理】家常小灶,也可做出诱人珍馐,有限的条件,也可绽放无限美味。 【天赐美味】探寻天地间诞生的“美味”,是烟火下的碰撞,也是大自然的赏赐。",
"city": "350200",
"uid": "86352854043",
"detail_url": "https://www.iesdouyin.com/share/video/6794253027449572622/?region=CN&mid=6794223194355043086&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "晚上不知道吃什么?试试这个超简单又下饭的家常菜#美食 #家常菜 #抖音美食创作人 @抖音小助手",
"num_iid": "6976541281384205604",
"nick": "素素小厨娘",
"signature": "爱生活 爱美食 用心烹饪🍳为爱分享❤️ 同款厨具和食材在橱窗哟👇 💌:x804669085",
"city": "440200",
"uid": "382237371544059",
"detail_url": "https://www.iesdouyin.com/share/video/6976541281384205604/?region=CN&mid=6876310394965608462&u_code=0&did=MS4wLjABAAAAX6SKLXd2Lhcq6lJs-ZZht-4CQnWa4T6RXKP64yizXmWan85yYUKipuIuEZe2WGq2&iid=MS4wLjABAAAA4bKcTfevXRsOtcSzYpaDjUh6OqMXnLsEcwkNwvSMl_Qv6i-TX58sQcdEqZpCdWoD&with_sec_did=1&titleType=title"
},
{
"title": "不知道吃什么的时候,一定要试试这个,真的太下饭了#下饭菜 #家常菜",
"num_iid": "6994718643774885123",
"nick"