一、抖音视频细节API接口-(item_get_video-获取抖音视频细节API接口),抖音API接口对接可以获取视频细节数据ID,视频标题、昵称、链接、签名、图片等参数,希望能帮助有需要的朋友,接口参数对接如下:
1.公共参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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版本 |
2.请求参数
请求参数:item_id=7092264344980868359 参数说明:item_id:视频id,
3.响应参数

4.请求参数(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://vx19970108018/douyin/item_get_video/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&item_id=7092264344980868359" headers = { "Accept-Encoding": "gzip", "Connection": "close" } if __name__ == "__main__": r = requests.get(url, headers=headers) json_obj = r.json() print(json_obj)
5.响应示例
{ "item": { "num_iid": "7092264344980868359", "detail_url": "https://www.iesdouyin.com/share/video/7092264344980868359/?region=&mid=7090863251021515533&u_code=0&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&titleType=title", "title": "修行美,遇见君#即使没有人欣赏,也要独自芬芳", "type": "video", "nick": "花草日记 ??? 麦麦", "signature": "??不谈悲喜,只闻花香\n\n??随拍手机,装饰生活", "uid": "5698411035", "short_id": "969898359", "video": { "url": "https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200fg10000c9mcherc77ufa73socn0&ratio=720p&line=0", "url_raw": "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fg10000c9mcherc77ufa73socn0&ratio=720p&line=0", "pic_url": "https://p6-sign.douyinpic.com/tos-cn-p-0015/871cb3034d9b4073bd2aa8960bff93fd~c5_300x400.jpeg?x-expires=1657267200&x-signature=B51pWtm1i1Mljef8gNaulIXDdgk=&from=4257465056_large&s=PackSourceEnum_DOUYIN_REFLOW&se=false&sc=cover&l=202206241654240102080650503702D0F0" }, "music": { "title": "@若然若创作的原声若然若然若然", "nick": "若然若", "url": "https://sf6-cdn-tos.douyinstatic.com/obj/ies-music/7090863247943109407.mp3", "pic_url": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_1e7c8177679e3c9b4743da4968714762.jpeg?from=116350172" }, "item_imgs": [] }, "error": "", "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:60 max:10100 all[110=60 19 31];expires:2030-12-31", "execution_time": "0.237", "server_time": "Beijing/2022-06-24 16:54:24", "client_ip": "106.6.39.153", "call_args": [], "api_type": "douyin", "translate_language": "zh-CN", "translate_engine": "google_new", "server_memory": "3.04MB", "request_id": "1.62b57bc005cc9", "last_id": "1038207645" }