cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url?aweme_id=7372484719365098803&share_url=https%3A//www.douyin.com/video/7512756548356492544®ion=CN' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url',
params={"aweme_id": "7372484719365098803", "share_url": "https://www.douyin.com/video/7512756548356492544", "region": "CN"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"aweme_id": "7372484719365098803", "share_url": "https://www.douyin.com/video/7512756548356492544", "region": "CN"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"video_id": "7372484719365098803",
"original_video_url": "https://v11-cold-src.douyinvod.com/8ce7388bf54a07f134f8756579888449/6a859f63/video/tos/cn/tos-cn-v-0015c800/o4AvUFDSDEB1OQfNAGFADg9QkBfXmAAEE9g3AU/",
"file_size": "0",
"file_size_in_mb": 0,
"content_type": "application/xml"
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Douyin Web API
获取视频的最高画质播放链接
- 获取视频的最高画质(原始上传画质)播放链接
- 该接口会返回最高画质的播放链接,原始上传画质是指用户上传视频时的画质,通常最高画质视频无压缩码率并且文件头包含元数据。
- 最高画质的视频链接无法从抖音APP或网页版直接获取,需要通过此接口获取。
- 此接口非常适合用于获取高清无水印视频链接,适用于需要高质量视频的场景,如视频编辑、存档、训练模型等。
- 一般情况都可以在线播放,如果不行,可以尝试使用IDM或浏览器下载后播放。
GET
/
v1
/
douyin
/
web
/
fetch_video_high_quality_play_url
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url?aweme_id=7372484719365098803&share_url=https%3A//www.douyin.com/video/7512756548356492544®ion=CN' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url',
params={"aweme_id": "7372484719365098803", "share_url": "https://www.douyin.com/video/7512756548356492544", "region": "CN"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"aweme_id": "7372484719365098803", "share_url": "https://www.douyin.com/video/7512756548356492544", "region": "CN"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/web/fetch_video_high_quality_play_url?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"video_id": "7372484719365098803",
"original_video_url": "https://v11-cold-src.douyinvod.com/8ce7388bf54a07f134f8756579888449/6a859f63/video/tos/cn/tos-cn-v-0015c800/o4AvUFDSDEB1OQfNAGFADg9QkBfXmAAEE9g3AU/",
"file_size": "0",
"file_size_in_mb": 0,
"content_type": "application/xml"
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙6 credit每次请求
Copy for AI
🤖 让 AI 帮你写调用代码
点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。
授权
查询参数
作品id,(aweme_id与share_url二选一)
示例:
"7372484719365098803"
分享链接,(aweme_id与share_url二选一)
示例:
"https://www.douyin.com/video/7512756548356492544"
可选,请求出口地区(ISO 国家代码,如 "CN" / "US" / "HK")。
示例:
"CN"
响应
请求成功
The response is of type object.

