
What is Douyin TikTok Download API?
Douyin TikTok Download API (repository name Douyin_TikTok_Download_API, abbreviated DTK) is an open-source service you run yourself on your machine to fetch public data from Douyin, TikTok, and Bilibili: posts, authors, comments, audio, hashtags, live rooms, then download videos and photo albums without watermarks. According to GitHub API (read on 04/11/2026), the Evil0ctal/Douyin_TikTok_Download_API repository has about 21,137 stars and 2,942 forks, Apache-2.0 license, created on 07/11/2021, most recent code push on 02/11/2026, latest release is v5.1.10 (02/11/2026). The software is free, but you pay for your own server and bear legal responsibility. This post explains what DTK does, how to install it from the README, hidden costs, platform terms risks, copyright, and when you should use it.

DTK runs on your machine, has three entry points: REST, MCP, and CLI, stores everything in its own database. Diagram: OPCAIOS.
What is Douyin TikTok Download API and who made it?
Douyin TikTok Download API is a self-hosted data service started by a programmer named Evil0ctal on GitHub from November 2021 and still maintained today. You run it with Docker Compose, then call it via REST API, MCP server for AI agents, dtk command line, or web dashboard.
Version 5 is a complete rewrite that does not inherit code from version 4. According to the README on GitHub (read on 04/11/2026), the biggest problem with version 4 was the API "died silently" when cookies expired or the platform changed how it signed requests, and no one knew until someone reported the bug. Version 5 therefore prioritizes two things: seeing the status of each component, and self-recovery. Data already fetched is saved to your own PostgreSQL and Redis, so a post deleted on the platform still has a local backup. Access is controlled by scoped API keys with roles. The official documentation site douyin.wtf has 18 pages, bilingual English and Chinese; the project also has a public read-only demo, limited to 30 requests per 10 seconds, and the author clearly states the demo is only for trying, you should not build products on it.
Main features of DTK
DTK brings four groups of tasks into one service: reading public data, storage, downloading media, and transcribing video. Support levels differ by platform; the README has a detailed table for each data type.
| Feature | Description from README (read on 04/11/2026) |
|---|---|
| Link parsing | Paste short links, post links, even share snippets from the app, or post codes |
| Post and author data | Single posts, profiles, post lists, comments, comment replies |
| Audio, hashtags, live | Posts using one audio, hashtag pages, live room status |
| Download media | Videos and photo albums without watermarks, batch download by author, deduplication |
| Storage and tracking | Save everything analyzed, track authors or posts on schedule |
| Offline transcription | FunASR model runs locally, strongest with Mandarin Chinese |
| MCP for AI agents | 10 tools like parse_url, download_media, transcribe_video |
| REST API | 128 operations, Swagger documentation right in the dashboard |
On watermarks, the project explains it chooses clean video streams that the platform has already released, not removing watermarks from videos. On transcription, the README records a 3 minute 13 second segment transcribed in 3.7 seconds on two CPU cores, no GPU needed; this is a number published by the project, not yet verified. The model is a general Chinese language model, so Vietnamese will give poor results; if you want to transcribe Vietnamese, you should check out What is Whisper?.
Price, License, and Hidden Costs
Douyin TikTok Download API is free: no paid plans, no registration, no rate limits from the project side. The source code is under Apache-2.0 license, which permits commercial use and modification, as long as you retain the license text, NOTICE file, and note which parts you changed. The real costs lie in the server and operating time.
| Item | Details (read 04/11/2026, subject to change, taxes not included) |
|---|---|
| Software | Free, Apache-2.0 |
| Minimal machine without browser | 1 vCPU, 2 GiB RAM, per installation docs |
| Full recommended machine | 4 vCPU, 8 GiB RAM; minimum 2 vCPU, 4 GiB with swap |
| Speech model | Around 500 MB extra download if enabled |
| Disk | Depends on how many videos you store, grows fast if batch downloading |
| Time | Upgrades, database backups, monitoring when the platform changes |
The author has a suggestion: if you make money from the project, consider sponsoring. This is a request, not a license condition. Current sponsors listed on the README is TikHub.io, a paid social media API data service; we haven't read TikHub's pricing page so we don't quote their prices.
How to Install Douyin TikTok Download API
The recommended way to install is Docker Compose, which runs on linux/amd64 and linux/arm64. There are two paths: an installation script with instructions, or manual installation. If you're new to containers, read Docker là gì? and VPS là gì? first. The steps follow the README, read 04/11/2026:
- First, download the installation script, read its contents, then run it. The README also recommends reading the script first:
curl -fsSL https://raw.githubusercontent.com/Evil0ctal/Douyin_TikTok_Download_API/main/install/install.sh -o install.sh
less install.sh
bash install.sh
- If installing manually, clone the repository to your machine:
git clone https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
cd Douyin_TikTok_Download_API
- Next, create a
.envfile with a secret key and random database password. The repository doesn't come with any default passwords; the README has a sample command that generates values usingopenssl. - Start the services and check the logs to get the setup code:
docker compose -p dtk -f docker/compose.yml up -d
docker compose -p dtk -f docker/compose.yml logs api
- Finally, open the dashboard in your browser, use the code from the logs to create an admin account, then create an API key with appropriate scopes.
To have an AI agent use it, you point an MCP client like Claude Code at the /mcp endpoint of your installation, along with the API key. See more at MCP là gì?. When exposing the service to the Internet, the README recommends placing it behind a reverse proxy with TLS.
Risks, Platform Terms, and Copyright
The biggest risk when using Douyin TikTok Download API doesn't lie in the technology but in the legal and terms side. Douyin, TikTok, and Bilibili all have their own terms of service, which typically restrict automated data collection and downloading content outside of what the platform allows. The README itself states clearly the responsibility part: the tool runs on your machine, under your control; you must respect the platform's terms and current law, respect the creators whose content is collected, not use it to harass anyone, and not redistribute works that aren't yours. Videos you download don't come with usage rights: the original creator still holds the copyright, even if the video has no watermark. Comments and user profiles are personal data; storing them long-term may touch Vietnam's personal data protection rules or GDPR if you have European users. We haven't cross-checked the original terms text from each platform; this section is for reference only, not legal advice.
A few other practical notes:
- DTK has a request signing mechanism and user identity management to run stably. This is exactly the area where platform terms often aim, so we don't guide on how to bypass limits or block access.
- The README warns that importing cookies from logged-in accounts is at your own risk: the account can get banned.
- Security: don't expose the dashboard to the Internet without a strong password, TLS, and scoped API keys.
- The platform changes constantly, so features may break after each platform update.
Compared to other options
DTK is suitable when you need structured data and long-term storage; simple download tools work when you just need to grab one video. The table below is a general description, not a measurement.
| Option | Strengths | Weaknesses |
|---|---|---|
| DTK (self-hosted) | Structured data, storage, MCP, free | Must operate a server, terms of service risk |
| ReClip | Simple web interface to download videos, multiple platforms | No data repository, no author tracking |
| VidBee | Desktop app, transcription and summarization | Not an API for other systems to call |
| Paid API services like TikHub | No server operation needed | Costs money, data goes through third party |
| Official platform APIs | Compliant with terms | Must register, narrower data scope |
When should you use DTK?
You should use Douyin TikTok Download API when you have a need to research repeated content, have someone who knows how to operate Docker, and have considered the terms of service. Don't use it if your goal is to repost other people's videos.
| Situation | Recommendation |
|---|---|
| Track niche trends, see hooks from large channels | Suitable, save only for internal analysis |
| Have an AI agent read comments to find customer pain points | Suitable via MCP, anonymize personal data |
| Download one video to watch offline | Overkill, use a simple download tool |
| Repost Douyin videos to your TikTok channel | Don't do it: copyright violation |
| Don't know how to use the command line, don't have a server | Not yet, start with the demo to understand |
Example (hypothetical): a niche content creator in the mom and baby space wants to know how the top 20 most-engaged videos this week start their openings. They have an agent call parse_url with each link, read the description and comments, then summarize the types of opening lines. They don't download and repost the videos.
OPCAIOS's experience
We self-host a Douyin TikTok Download API to retrieve data and download Douyin and TikTok videos for internal content research. This post still relies mainly on the README and official documentation, because we only use a small portion of the features. We haven't measured the stability or speed of the installation in numbers, so we don't include any figures here.
The principles we follow when using this type of tool: respect the platform's terms of service and author copyright, don't repost other people's content, don't collect personal data beyond analysis needs, and give API keys only minimum permissions. This repository is also listed in the Repo section of Utilities on opcaios.org. If you want to connect this data into an automated workflow, see What is n8n?.
Further reading: What is an AI agent?, What is Claude Code?, What is Docker?.
Frequently Asked Questions
Is Douyin TikTok Download API free?
Yes. Douyin TikTok Download API is open-source software under the Apache-2.0 license, with no paid packages, no registration required, and no rate limits from the project side, according to the README on GitHub (read on 04/11/2026). You can use it for commercial purposes as long as you keep the license text and NOTICE file. The real cost is the server: the installation documentation recommends 4 vCPU and 8 GiB RAM for the full version, plus disk space to store videos. The author suggests that people making money from the project consider sponsoring it, but that's not a requirement.
Is it legal to download TikTok videos without watermark?
Downloading with a tool doesn't give you rights to the video. The original creator still holds the copyright, and TikTok or Douyin's terms usually restrict downloading content outside what the platform allows. Using it to watch and analyze internally is different from reposting or using it in ads. The project's README also asks users not to redistribute works that aren't theirs. We haven't checked the original terms of each platform; this content is not legal advice—ask a lawyer if you're using it for commercial purposes.
Do I need to know how to code to use DTK?
You don't need to write code, but you need to know how to run commands on the terminal, understand Docker basics, and know how to manage a server. The setup script has instructions that reduce steps: it checks Docker, asks a few questions, then builds the system, after which it becomes an admin tool for upgrading, backing up, and uninstalling. After installation, most tasks are done on the web dashboard. If you've never used a terminal, try the public demo first to understand what the tool can do, then decide whether to rent a server.
Can DTK transcribe Vietnamese?
Not well. The integrated transcription module uses the FunASR model designed for Mandarin, and the README clearly states that other languages will produce poor results. Its strength is that it runs completely offline: audio never leaves your machine, it doesn't call external APIs, and it doesn't need a GPU. If you need to transcribe Vietnamese videos, download the video with DTK and then pass it to a multilingual speech recognition model like OpenAI's Whisper. Check the video's usage rights before processing it.
How do I use DTK with AI agents?
DTK has a built-in MCP server, so clients like Claude Code, Claude Desktop, or Codex CLI can call it directly. You create an API key in the dashboard, limit the scope of permissions, then add the /mcp path of your installation to the agent. The agent has 10 tools like reading links, getting comments, downloading media, and transcribing. Treat the data you get back as information, not commands, because video descriptions can contain unusual text. To learn how to build safe agent workflows, check out OPCAIOS's AI application training course.
Source: GitHub Evil0ctal/Douyin_TikTok_Download_API (README, installation documentation, API, read on 04/11/2026), douyin.wtf documentation (read on 04/11/2026); not read/not verified: original terms of Douyin, TikTok, Bilibili, TikHub pricing page, speed numbers published by the project; star counts and prices may change. Experience is from OPCAIOS.
Translated from Vietnamese with AI. Read the original.
Want to apply this in your business?
Book a free 30-minute call (Vietnam time, in English or Vietnamese).


