抖音无水印解析 | 接口文档

  • 由于接口调用量大大上升,为了尽可能减少解析量从而降低接口被封的风险,接口已实行收费(安卓APP端和小红书接口免费),对于普通用户来说,1元/月足以满足使用需求
  • 另外由于接口域名没有备案所以微信小程序无法正常使用
  • 2024/07/24 新增抖音用户主页解析

接口特性:

  • 可解析视频/图集
  • 可解析抖音主页
  • 无水印

接口文档

抖音单作品解析

  • 请求地址:https://api.mu-jie.cc/douyin
    请求方式:GET
    返回格式: JSON

请求参数

参数名称 是否必填 参数值/说明
url 需要解析的抖音链接(长短链接皆支持)
key 接口密钥,联系qq: 994711504购买(备注: 抖音密钥)

请求示例

返回示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"code": 200,
"msg": "获取成功",
"data": {
"src": "https://v.douyin.com/iM9euEKY/",
"author": "小蜜锋",
"uid": "F13976999920",
"like": "6938",
"comment": "9766",
"time": 1721966109,
"title": "省医院旁边,网约车斑马线撞到电动车",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/oUj3XCCDmBHf8mhFEKNxzAIbAAPjfoCg99Iiin~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=YTAiw5ZrC2%2BLBJ2sv1q1cooJUOE%3D&from=327834062&s=PackSourceEnum_AWEME_DETAIL&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726193413B84B658424BE730F2E29",
"music": {
"url": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7395788117778713383.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_f12127098f1f4b31beaaeb0de46cff7c.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/2c5d3a2f8832a9f4a828323062d5b641/66a3b3ff/video/tos/cn/tos-cn-ve-15/oYMBGejGDAH7GeQIgf9IAPCEWBRLQli0N5vvPV/?a=6383&ch=26&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2542&bt=2542&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO5vD-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=N2c4Nzo1Zmg4ODs8PDQ7aEBpanZ4eXk5cnNrdDMzNGkzM0BfMjI2YTQuNi4xLi40MS4xYSNlMDZhMmRzb2VgLS1kLS9zcw%3D%3D&btag=80000e00010000&cc=46&cquery=100x_100z_100o_100w_100B&dy_q=1721993653&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=20240726193413B84B658424BE730F2E29&req_cdn_type=",
"images": null
}
}

抖音主页解析

  • 请求地址:https://api.mu-jie.cc/douyin/user
    请求方式:GET
    返回格式: JSON

请求参数

参数名称 是否必填 参数值/说明
url 需要解析的抖音用户主页链接(长短链接皆支持)
cursor 游标时间戳(返回该时间戳之前一定数量的作品,以此达到翻页的效果)默认:0,即获取最新作品,包括置顶
key 接口密钥,与单作品解析共享密钥次数,联系qq: 994711504购买(备注: 抖音密钥)

请求示例

返回示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"code": 200,
"msg": "获取成功",
"data": {
"user_info": {
"nickname": "炭炭OAQ",
"unique_id": "Tantan9982",
"avatar": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_4f475d1d7655c7104c34db710cc056c3.jpeg?from=2956013662",
"following_count": 398,
"follower_count": 2471790,
"total_like": 64365532,
"ip": "IP属地:浙江",
"signature": "无固定风格 我就是我\n漫展行程:8.8达州丨8.10太原丨8.11宁波丨8.25北京\n小宝贝:@炭大魔王 \n商务:Joymedia7\n🈴️ yingx925 丨 HPNY099",
"aweme_count": 214,
"show_favorite": false,
"favoriting_count": 0
},
"aweme_list": [
{
"title": "回复 @🌈ʷⁱᵏ-的评论 尊重自己的声音,我为极品少御音代言。",
"time": 1693943743,
"like": "3198786",
"comment": "272540",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/8c72e80398b1402ea9c13c7e075b8c6c_1693943747~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=iS4RicTNQ5FQCmSfzolPsHxKz6A%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726192725F6B4C81F978843117F0C",
"music": {
"url": "https://sf5-hl-cdn-tos.douyinstatic.com/obj/ies-music/7275432949766540093.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_4f475d1d7655c7104c34db710cc056c3.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/154a8fc454151936143dfff1642ac68d/66a3b255/video/tos/cn/tos-cn-ve-15c001-alinc2/oEIe6CguQDCRrYEBwIJBvnyC7IedELtbAAsev7/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2507&bt=2507&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO54n-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=NTdlOjdlZTlnOTc4PDo7ZEBpajQ1NjQ6ZnFybTMzNGkzM0AwMS1hNDE1NjAxLy0yMzJgYSNfX2lfcjRnYm9gLS1kLS9zcw%3D%3D&btag=c0000e00008000&cc=46&cquery=100o_101r_100B_100x_100z&dy_q=1721993246&feature_id=f0150a16a324336cda5d6dd0b69ed299&l=20240726192725F6B4C81F978843117F0C&req_cdn_type=",
"images": null
},
{
"title": "师傅不要想我,我下山拍抖音拍的很快乐#狮子座 #变装 #转场",
"time": 1691254516,
"like": "2536119",
"comment": "98988",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/dbf234d10a96479b808894bd6a36d7a2_1691254523~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=KpbSIeOOMF6rWxxeFTbLHikwTHs%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726192725F6B4C81F978843117F0C",
"music": {
"url": "https://sf5-hl-cdn-tos.douyinstatic.com/obj/ies-music/7254497717840349989.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_afbaa78603a865e9db1df6fb0b686943.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/518d515348f863863349be016369cb69/66a3b259/video/tos/cn/tos-cn-ve-15c001-alinc2/o8KQ4Ath7gZcyB3C1EB7eGAMElIJfJAGzAjzhO/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2983&bt=2983&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO54n-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=ODk7NmY3aDs2Zmk0ZWlpM0BpanI3czM6ZjM6bTMzNGkzM0A1LS4tNGEyX2AxMGNfNTQtYSNvYTZucjRvbzRgLS1kLS9zcw%3D%3D&btag=c0000e00008000&cc=46&cquery=100o_101r_100B_100x_100z&dy_q=1721993246&feature_id=f0150a16a324336cda5d6dd0b69ed299&l=20240726192725F6B4C81F978843117F0C&req_cdn_type=",
"images": null
},
{
"title": "好咧!你的电子女友已上线!\n#甜妹 #虚拟女友",
"time": 1697047205,
"like": "2046513",
"comment": "196541",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/c06071f2f09b42a393168549d9c42a3b_1697047209~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=R916rVOZ8eDkTZc9Qlx0PrY3h80%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726192725F6B4C81F978843117F0C",
"music": {
"url": "https://sf5-hl-cdn-tos.douyinstatic.com/obj/ies-music/7288762236397587261.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_4f475d1d7655c7104c34db710cc056c3.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/28f7e8695d96b600eb08c444dc341c05/66a3b26c/video/tos/cn/tos-cn-ve-15c001-alinc2/ogMKQCgbanA75FLLfu8YA9lgcAegyBRJIZb4mD/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=1627&bt=1627&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO54n-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=ZDY4NzRmOWk6NGc6ZDtoNkBpM3NzZjk6ZjlobjMzNGkzM0BiXzAtXmIxNjIxXmE2LzAtYSM1cl4wcjRnMmdgLS1kLS9zcw%3D%3D&btag=c0000e00018000&cc=46&cquery=100x_100z_100o_101r_100B&dy_q=1721993246&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=20240726192725F6B4C81F978843117F0C&req_cdn_type=",
"images": null
},
{
"title": "宝宝,我可以成为你的锦鲤吗? #胡桃锦鲤新皮肤 #永劫无间手游公测 #永劫无间手游#土御门胡桃 #cos",
"time": 1721886433,
"like": "413384",
"comment": "6671",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/o4JfDAWM3IDZwIgaFhLeCEAzBvJeeogU2kGvDz~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=zM9re8VVeHqsSpl6XSLY7u%2BcXpw%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726192725F6B4C81F978843117F0C",
"music": {
"url": "https://sf5-hl-cdn-tos.douyinstatic.com/obj/ies-music/7395438295503031079.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_4f475d1d7655c7104c34db710cc056c3.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/149248b152827048f1c221d6a1755446/66a3b25b/video/tos/cn/tos-cn-ve-15/oIoDeIoGABOEweWLeKa2CAAvgUHJehRE3z3KSI/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2179&bt=2179&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO54n-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=OjwzOTw2NzY2aDZkO2VnN0BpMzNqanU5cnB3dDMzNGkzM0AwNV4vYjQuXjExXzIuLzJeYSNhX2duMmRjc2RgLS1kLS9zcw%3D%3D&btag=c0000e00008000&cc=46&cquery=100z_100o_101r_100B_100x&dy_q=1721993246&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=20240726192725F6B4C81F978843117F0C&req_cdn_type=",
"images": null
},
{
"title": "听我的 傻人有傻芙 #芙宁娜cos#私设#原神#原神枫丹#ooc致歉",
"time": 1721313549,
"like": "177596",
"comment": "1765",
"cover": "https://p3-pc-sign.douyinpic.com/tos-cn-p-0015/oUIEod2DICAeRIuZAa0A59G6IELffKZGIHpx1e~tplv-dy-360p.jpeg?x-expires=1723201200&x-signature=%2FqTR17oBRoCydc%2BH7C3d5Fq1ulY%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=false&sc=origin_cover&biz_tag=pcweb_cover&l=20240726192725F6B4C81F978843117F0C",
"music": {
"url": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7392985399255223081.mp3",
"cover": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_4f475d1d7655c7104c34db710cc056c3.jpeg?from=327834062"
},
"type": "视频",
"url": "http://v5-dy-o-abtest.zjcdn.com/72aa7abd9974376d082c81607d6c5600/66a3b255/video/tos/cn/tos-cn-ve-15/oso1Q6LHzzIxZfjyCgGAIfZ82NaAVE0DDIIRef/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=1950&bt=1950&cs=0&ds=4&ft=l1GzaFA-VVyw3pRf5Xg5wNO54n-NN0iXeVI0~UMyeF~4&mime_type=video_mp4&qs=0&rc=OTxoaTMzaWg1Zjs0OGRlPEBpanlrcXk5cnhsdDMzNGkzM0A0L2NgY14vXjYxMy4wLzJeYSNybjMuMmQ0NGBgLS1kLS9zcw%3D%3D&btag=c0000e00008000&cc=46&cquery=100o_101r_100B_100x_100z&dy_q=1721993246&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=20240726192725F6B4C81F978843117F0C&req_cdn_type=",
"images": null
},
// ......(省略)
]
}
}

小红书解析

  • 可提供搭建源码
  • 免费,无需key
  • 请求地址:https://api.mu-jie.cc/xhs
    请求方式:GET
    返回格式: JSON

请求参数

参数名称 是否必填 参数值/说明
url 需要解析的小红书链接(长短链接皆支持)

请求示例

返回示例

返回内容与以上[抖音单作品解析]类似,请自行测试

安卓端APP

APP暂不支持解析主页!
写了一个安卓端的APP,点击下载
安卓APP效果图

浏览器插件

插件暂不支持解析主页!
点击进入插件介绍、下载页面
浏览器插件效果图

用Python调用接口实现抖音解析下载助手

暂不支持解析主页!

运行效果

效果图
效果图

步骤

1. 新建文件夹
2. 在文件夹内新建main.py
3. 打开main.py粘贴以下代码后保存

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import re
import requests
import os
import json
from tqdm import tqdm
from urllib.parse import quote

# 由于接口调用量大大上升,为了尽可能减少解析量从而降低接口被封的风险,接口已实行收费,
# 有消费计划的开发者/用户可联系qq了解具体收费方式,对于普通用户来说,1元/月足以满足使用需求
# 接口密钥,联系qq: 994711504购买(备注: 抖音key)
key = '***'

RED = "\033[91m"
GREEN = "\033[92m"
YELLOW = "\033[93m"
RESET = "\033[0m"

loop = True

def download(url, save_path):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132'
}
response = requests.get(url, stream=True, headers=headers)
if response.status_code == 200:
os.makedirs(os.path.dirname(save_path), exist_ok=True)
total_size = int(response.headers.get('content-length', 0))
block_size = 1024
progress_bar = tqdm(total=total_size, unit='B', unit_scale=True)
with open(save_path, 'wb') as file:
for chunk in response.iter_content(block_size):
progress_bar.update(len(chunk))
file.write(chunk)
progress_bar.close()
return True
else:
return False

while(loop):
os.system('cls' if os.name == 'nt' else 'clear')
print(YELLOW + '【抖音无水印解析下载助手】' + RESET)
src = input(GREEN + '请输入抖音作品链接/分享口令(右键粘贴):' + RESET)
match1 = re.search(r"https:\/\/v\.douyin\.com\/([a-zA-Z0-9]+)\/", src)
match2 = re.search(r"\d{5,}", src)
if match1:
url = match1.group(0)
elif match2:
# url = match2.group(0)
url = quote(src)

else:
print(RED + '抖音链接错误,请重新输入' + RESET)
exit()

print(GREEN + '正在解析……' + RESET)
res = requests.get(f'https://api.mu-jie.cc/douyin?url={url}&key={key}').json()
if res['code'] == 200:
print(GREEN + f'\n{res["msg"]}' + RESET)
print(GREEN + '标题:' + RESET + res['data']['title'])
print(GREEN + '作者:' + RESET + res['data']['author'])
print(GREEN + 'UID:' + RESET + res['data']['uid'])
print(GREEN + '日期:' + RESET + str(res['data']['time']))
print(GREEN + '点赞:' + RESET + str(res['data']['like']))
print(GREEN + '类型:' + RESET + res['data']['type'] + '\n')
else:
print(RED + f'\n{res["msg"]}' + RESET)

if res['data']['type'] == '视频':
type = '视频'
else:
type = '图集'
if res['data']['title'] == '':
title = f"无标题 - @{res['data']['author']}"
else:
title = re.sub(r'[\\/:*?"<>|]', '', res['data']['title']).replace('\n', '').replace('\t', '').replace('\r', '')
if len(title) > 50:
title = title[:50] + '…'
cmd = input(GREEN + f'1: 下载{type}\n2: 返回解析\n其他: 退出\n请输入指令:' + RESET)
if cmd == '1':
if type == '视频':
file_path = f'./video/log/{title}.json'
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with open(file_path, 'w', encoding='utf-8') as file:
file.write(json.dumps(res, ensure_ascii=False, indent=2))
print(GREEN + '\n正在下载视频……' + RESET)
save_location = "./video/" + title + ".mp4"
if download(res['data']['url'], save_location):
print(GREEN + '下载完成!' + RESET)
else:
print(RED + '下载失败!' + RESET)
else:
file_path = f'./img/{title}/log.json'
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with open(file_path, 'w', encoding='utf-8') as file:
file.write(json.dumps(res, ensure_ascii=False, indent=2))
print(GREEN + '\n正在下载图集……' + RESET)
i = 0
for img in res['data']['images']:
i += 1
save_location = f'./img/{title}/{i}.jpg'
download(img, save_location)
if i == len(res['data']['images']):
print(GREEN + '下载完成!' + RESET)
else:
print(RED + '下载失败!' + RESET)
if input(GREEN + f'\n1: 返回解析\n其他: 退出\n请输入指令:' + RESET) == '1':
loop = True
else:
loop = False
elif cmd == '2':
loop = True
else:
loop = False

修改第11行的key
4. 在文件夹内打开终端,安装所需的包
不知道是否已经安装过?执行以下命令可检测是否已经安装了该包

1
pip show 包名

如果没有安装,则执行以下命令安装

1
2
pip install requests
pip install tqdm

5. 启动
在文件夹内打开终端,执行以下命令即可运行

1
python main.py


在文件夹内新建.bat文件,粘贴以下代码并保存

1
2
3
@echo off
python main.py
pause

保存后双击.bat文件即可运行

The End