{"full_name":"Evil0ctal/Douyin_TikTok_Download_API","owner":"Evil0ctal","name":"Douyin_TikTok_Download_API","shard":"1","url":"https://github.com/Evil0ctal/Douyin_TikTok_Download_API","description":"🚀 自托管的抖音、TikTok、B 站数据采集与无水印视频下载 API，支持 AI agent 通过 MCP 调用与离线语音转文字，Docker 一键部署。| Self-hosted TikTok, Douyin & Bilibili scraper and no-watermark video downloader — async REST API, MCP server for AI agents, CLI and web console, plus offline speech-to-text for downloaded videos. Self-healing identity pool, PostgreSQL archive, one docker compose up.","homepage":"https://douyin.wtf","topics":["tiktok","douyin","scraper","crawler","web-scraping","tiktok-scraper","douyin-api","tiktok-api","data-collection","downloader","fastapi","mcp-server","model-context-protocol","openapi","rest-api"],"tag_pages":["crawler","douyin","downloader","fastapi","mcp-server","model-context-protocol","openapi","rest-api","scraper","tiktok","web-scraping"],"language":"Python","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/20760448?u=a80b6fc7fa5d4b020ecb0e159efb53739cc5ebf3&v=4","created_at":"2021-11-07T01:35:09Z","pushed_at":"2026-11-14T05:41:25Z","metrics":{"stars":21413,"forks":2971,"watchers":107,"issues":657,"prs":110,"releases":68,"issues_open":2,"issues_closed":655,"prs_open":2,"prs_closed":33,"prs_merged":75,"discussions":34},"growth":{"day":{"stars":11,"forks":3,"base_day":"2026-11-15"},"week":{"stars":280,"forks":30,"base_day":"2026-11-04"},"month":{"stars":717,"forks":34,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[19864,19892,19935,19994,20032,20054,20073,20079,20095,20110,20132,20150,20163,20179,20196,20210,20250,20280,20304,20321,20333,20343,20365,20380,20397,20415,20431,20435,20448,20465,20470,20484,20500,20521,20548,20567,20588,20608,20627,20638,20660,20696,20746,20772,20789,20806,20821,20847,20856,20873,20894,20913,20944,20961,20983,20999,21026,21066,21112,21133,21326,21352,21366,21370,21386,21402,21413],"forks":[2754,2755,2765,2769,2776,2778,2782,2782,2784,2786,2788,2794,2797,2799,2800,2803,2804,2810,2815,2816,2820,2821,2823,2830,2835,2834,2836,2836,2837,2839,2841,2841,2844,2846,2847,2850,2853,2860,2868,2884,2893,2937,2973,3026,3069,3020,2888,2891,2896,2898,2903,2908,2911,2914,2921,2926,2933,2936,2938,2941,2961,2962,2964,2964,2968,2968,2971],"watchers":[109,110,110,110,110,110,110,111,111,111,112,112,112,112,112,112,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,112,112,112,112,112,111,112,113,113,113,114,113,113,114,114,114,113,108,108,108,108,108,108,108,108,108,108,108,null,107,107,107,107,107,107],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,3,3,3,2,2,2],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,2,2]},"boards":{},"same_owner":[],"issues":[{"number":805,"title":"[Bug] 视频地址403应该与域名有关","comments":5,"created_at":"2026-10-31T06:48:35Z"},{"number":815,"title":"💡 功能建议与反馈请发到 Discussions / Feature ideas and feedback go to Discussions","comments":0,"created_at":"2026-11-02T05:48:18Z"}],"discussions":[{"number":818,"title":"加一个接口，接收 cookie 推送","comments":0,"category":"Ideas","created_at":"2026-11-04T07:58:44Z"},{"number":816,"title":"build 构建阶段卡默认官方源","comments":1,"category":"Ideas","created_at":"2026-11-02T08:08:19Z"},{"number":814,"title":"💡 功能建议与反馈从这里开始 / Feature ideas and feedback start here","comments":0,"category":"Ideas","created_at":"2026-11-02T05:48:06Z"},{"number":806,"title":"容器都正常启动，在开发者，锻造身份那里能正常请求返回cookie，但是在资源池-身份池那里锻造douyin 的身份，就会提示铸造失败 浏览器容器没有响应，这是什么原因？","comments":1,"category":"Q&A","created_at":"2026-10-31T07:45:30Z"},{"number":802,"title":"DTK 5.1.7 获取 TikTok 作品列表失败，如何获取视频播放量？","comments":2,"category":"Q&A","created_at":"2026-10-28T01:13:07Z"},{"number":765,"title":"下载列表中的内容，删除不了啊？根本没用啊","comments":1,"category":"General","created_at":"2026-09-24T11:24:13Z"},{"number":764,"title":"限时日常是不是没有接口解析","comments":1,"category":"Q&A","created_at":"2026-09-22T10:17:49Z"},{"number":760,"title":"关注列表采集不全","comments":1,"category":"General","created_at":"2026-09-17T03:55:59Z"}],"latest_release":{"name":"v5.1.11","tag":"v5.1.11","published_at":"2026-11-08T07:42:00Z","body":"## What's new\n\n**TikTok lists and search that get past the posts TikTok will not play.** One\npost sent without a media address used to turn a whole page of an author's posts\nor a search into a 502. Those posts are TikTok Shop videos, whose media TikTok's\nweb API gives to nobody, guest or signed in; they now come back with their\ndetails and no streams, and asking for one directly says so with its own error\ncode. Page two of a TikTok post search, empty until now, pages again. Also: the\nconsole's single-post form takes the share text the apps copy, retention stops\nrewriting the same finished tasks on every pass, and A-Bogus signing is about 9%\nfaster.\n\n### Upgrading\n\nInstalled with the script on 5.1.6 or later, in the install directory:\n\n```bash\n./dtkctl upgrade\n```\n\nOn 5.1.5 or earlier, `dtkctl` has no `upgrade` yet, so this once:\n\n```bash\ncd /opt/dtk && git pull           # or ~/dtk - wherever you installed it\nbash install/install.sh --upgrade # install/install.zh.sh for the Chinese one\n```\n\nIt checks out `v5.1.11`, pulls 5.1.11, backs the database up, migrates, restarts\nand writes `DTK_IMAGE_TAG=5.1.11` into `.env` itself; there is nothing to edit.\nCloakBrowser and the browser image are unchanged.\n\nBy hand:\n\n```bash\ncd /opt/dtk && git pull\nexport COMPOSE_ENV_FILES=.env   # without this, `image:` ignores the root .env\n# DTK_IMAGE_TAG=latest needs no edit; a pinned one becomes 5.1.11 - no `v`, see the tag table\ndocker compose -p dtk -f docker/compose.yml pull api worker downloader transcriber\ndocker compose -p dtk -f docker/compose.yml build browser-rpc   # with --profile browser\ndocker compose -p dtk -f docker/compose.yml run --rm migrate\ndocker compose -p dtk -f docker/compose.yml up -d\n```\n\nNo new migrations, no new settings, and API keys need nothing. Your data is\nuntouched.\n\n### Added\n\n- **`MEDIA_WITHHELD`** (403, not retryable): the post was read in full, but the\n  platform gives out no media for it - today, a TikTok Shop video. Asking for\n  such a post's details, or downloading it, fails with this instead of\n  `UPSTREAM_CHANGED`. If your client handles error codes, treat it like\n  `CONTENT_PRIVATE`: the post exists, and no retry or login gets its media.\n\n### Changed\n\n- **A TikTok list can hold posts without media.** Author posts, hashtag, music,\n  related posts and post search return a TikTok Shop video with its details,\n  `media.video: null` and no streams, instead of failing the page. If you\n  download from a list, skip the posts whose media is empty. A page on which no\n  post has media at all still answers `UPSTREAM_CHANGED`: that is the platform\n  changing its format, not a few posts.\n- **The TikTok post search cursor carries a search id**, as in\n  `20:2026110807205434CD61E448A521C8F318`. Pass it back as you got it and nothing\n  changes for you; if your code read it as a number, stop - the cursor has always\n  been documented as opaque. A bare offset is still accepted, and TikTok answers\n  it with an empty page, as before.\n- **A-Bogus signing is about 9% faster.** SM3's message expansion was rewritten;\n  the signatures are byte for byte the same. Nothing to do. Thanks to\n  [@dexhunter](https://github.com/dexhunter) (#821).\n\n### Fixed\n\n- **A TikTok author's posts or a post search failed with 502 `UPSTREAM_CHANGED`**\n  when one post on the page had no media address, and every other post on the\n  page was lost with it (#819). See Changed. Thanks to\n  [@talaon2](https://github.com/talaon2) and [@codersjj](https://github.com/codersjj).\n- **Page two of a TikTok post search was always empty.** TikTok answers a later\n  page only to a request that names the search it continues, and no request did;\n  the cursor carries it now. Searching posts still needs a signed-in TikTok\n  identity. Thanks to [@codersjj](https://github.com/codersjj).\n- **A TikTok Shop video's details were a 502** asking you to report a bug, and\n  downloading one failed with \"retry the download\", which never helps. Both say\n  `MEDIA_WITHHELD` now.\n- **The conso","is_prerelease":false},"readme":true,"readme_zh":true,"news":[{"title":"Douyin_TikTok_Download_API 使用指南","url":"https://blog.csdn.net/gitblog_01160/article/details/141011032","source":"blog.csdn","lang":"zh","date":"2026-04-01"},{"title":"github短视频去除水印项目Douyin_TikTok_Download_API介绍","url":"https://blog.csdn.net/weixin_44002151/article/details/135349550","source":"blog.csdn","lang":"zh","date":"2024-01-02"}],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}