抖音下载服务 ● 运行中 · v32

本机 http://127.0.0.1:3082 · 公网 https://xs-master-dl.hub.cicy-ai.com(经 ws-hub 中继,需 x-dl-key 头)

做什么

给一条抖音分享链接 / 口令:用本机 profile 0 打开页面、抓到真实视频地址(DASH 音视频自动合并)、下载;可选:分离语音、whisper 中文转写出字幕和文案,并把「视频 + 语音 + 文案.txt + 字幕.srt」发到 TG @dy_assets_bot。

接口

方法路径说明示例
GET/_whoami探活(不需要 key)https://xs-master-dl.hub.cicy-ai.com/_whoami
GET/probe?url=…只解析,返回视频/音频真实地址、标题、aweme_id,不下载https://xs-master-dl.hub.cicy-ai.com/probe?url=https://v.douyin.com/xxxx/
GET/dl?url=…下载并返回合并后的 mp4(文件流)https://xs-master-dl.hub.cicy-ai.com/dl?url=https://v.douyin.com/xxxx/
GET/tg?url=…下载 + 分离语音 + whisper 字幕/文案 + 上传 TG,返回 JSON(约 30–60s)。可选 &chat= 发到哪个 chat、头 x-tg-token(或 &token=)用哪个 bot 发,不传用默认https://xs-master-dl.hub.cicy-ai.com/tg?url=https://v.douyin.com/xxxx/
以上 /probe /dl /tg 都可加 &show=1:解析窗口放到本机屏幕上(看过程);默认 false,窗口在屏幕外。
GET/open?url=…在本机屏幕上打开该抖音页面(手动看)http://127.0.0.1:3082/open?url=…

公网调用示例

curl -H "x-dl-key: <key>" "https://xs-master-dl.hub.cicy-ai.com/probe?url=https://v.douyin.com/ixwLBVflAi8/"
curl -H "x-dl-key: <key>" "https://xs-master-dl.hub.cicy-ai.com/tg?url=https://v.douyin.com/ixwLBVflAi8/"

key 在 hub 的 ~/cicy-ai/db/dl-proxy-key.txt;本机 127.0.0.1 直连不需要 key。

/tg 返回

{ "ok": true, "caption": "视频标题", "videoMB": 6.13, "hasAudio": true, "hasSubtitle": true,
  "scriptChars": 990, "subtitleChars": 3462, "tg": "视频✓ 语音✓ 文案+字幕✓", "video": "https://…" }

TG 里收到 3 条:可播放视频(加粗标题)、语音条、文档组(<aweme_id>.txt 文案 + <aweme_id>.srt 字幕)。