Douyin TikTok Download API logo

Douyin TikTok Download API

Self-hosted MCP and REST API for collecting Douyin, TikTok, and Bilibili data, downloading media, and transcribing videos offline.

Install Douyin TikTok Download API

Run the project’s own setup commands, in order.

Setup steps from the project

Douyin_TikTok_Download_API installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Start the server
    docker compose up
    
  2. 2. Install
    pip install -r requirements.txt
    
  3. 3. Start the server
    python start.py
    
  4. 4. Start the server
    docker run -d --name dtk-v4 --restart unless-stopped \
      -p 8080:80 evil0ctal/douyin_tiktok_download_api:V4.1.2
    
  5. 5. Configure
    docker run -d --name dtk-v4 --restart unless-stopped -p 8080:80 \
      -v "$PWD/douyin-web.yaml:/app/crawlers/douyin/web/config.yaml" \
      evil0ctal/douyin_tiktok_download_api:V4.1.2
    

Overview

Douyin_TikTok_Download_API exposes Douyin, TikTok, and Bilibili collection, media download, and transcription capabilities through MCP, REST, a CLI, and a web console. It can retrieve posts, authors, comments, sounds, hashtags, live rooms, trends, and search results, then archive collected data in PostgreSQL. Downloaded videos can be transcribed locally with offline speech-to-text, while an identity pool and request scheduler manage platform access. Reach for it when an agent needs self-hosted social-media research or no-watermark media downloads rather than a hosted third-party API.

Use cases

  • Collect posts, authors, comments, and search results for social-media research
  • Download no-watermark videos and image albums for local processing
  • Send downloaded videos through offline speech-to-text
  • Let AI agents query Douyin, TikTok, and Bilibili through MCP

Key features

  • MCP interface for AI-agent access
  • Douyin, TikTok, and Bilibili data collection
  • No-watermark video and image-album downloads
  • PostgreSQL archiving with Redis-backed services
  • Offline speech-to-text for downloaded videos
  • Docker Compose deployment with identity-pool management

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

24/24 checks healthy over the last 14d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars21kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Douyin TikTok Download API works

What Douyin_TikTok_Download_API does

Douyin_TikTok_Download_API is a self-hosted data collection and media download system for Douyin, TikTok, and Bilibili. Its MCP interface lets AI agents invoke the same underlying capabilities exposed through the REST API, CLI, and browser-based console.

The collection side covers posts, author profiles, comments, sounds, hashtags, live rooms, trending boards, and search results. It can also download videos and image albums without a watermark by selecting the clean stream published by the platform, rather than removing a watermark after download.

Collected and parsed information is retained in a PostgreSQL archive. Downloaded videos can be processed on the same machine with offline speech-to-text, which suits workflows that need searchable or machine-readable content after retrieval.

How it works

Requests run asynchronously by default: the API returns a task identifier and the caller can follow the task, while a wait parameter can switch an individual request to synchronous behavior. A scheduler controls outbound work, and the identity pool maintains guest identities created by a headless browser. Health tiers, identity rotation, per-identity request locking, endpoint token buckets, and endpoint circuit breakers are part of the request-management design.

The service records structured information about requests and exposes identity and endpoint health in the console. PostgreSQL stores the archive, while Redis is used alongside it in the v5 architecture. API keys, scopes, and roles provide access control for self-hosted deployments.

MCP is the agent-facing interface. An agent can use it to request platform data, retrieve media, and work with downloaded-video transcription without directly implementing the platform request flow.

Setup and configuration

The intended deployment path is Docker Compose. Starting the stack with docker compose up brings up the self-hosted application and its supporting services. The project also advertises Python 3.12 or newer for its Python environment.

After deployment, the web console provides access to the playground, scheduler, library, downloads, API reference, identities, and MCP-related views. API keys can be managed from the console, with scopes and roles controlling access. The interface supports English and Chinese.

A public demo is available for evaluation, but it is read-only and should not be treated as a production dependency. Demo traffic is shared, limited to 30 requests per 10 seconds, and may be reset or taken offline.

Tools and capabilities

  • Query posts, authors, comments, sounds, hashtags, live rooms, trending boards, and search results.
  • Download videos and image albums without a watermark.
  • Invoke collection and download operations through MCP for AI-agent workflows.
  • Submit asynchronous jobs and optionally wait for completion.
  • Archive parsed results in PostgreSQL.
  • Convert downloaded videos to text with local, offline speech-to-text.
  • Inspect identity and endpoint health through the web console.

Limitations and notes

The service depends on the behavior and availability of the supported platforms. Its identity pool, rate controls, and circuit breakers are designed to manage changing access conditions, but they do not remove that dependency. The no-watermark result comes from selecting a clean stream already provided by the platform; it is not a post-processing watermark remover.

Running the system locally places deployment, storage, and operational responsibility with the operator. The public demo is useful for trying the interface, but its shared rate limit and temporary availability make it unsuitable as a foundation for an application.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Douyin TikTok Download API

Douyin_TikTok_Download_API is an MCP server that connects AI agents to Douyin, TikTok, and Bilibili. Its main tools cover social-data collection, no-watermark video and image-album downloads, and offline speech-to-text for downloaded videos, with the same functions also available through REST, CLI, and web interfaces.

Install it with Docker Compose by running `docker compose up` on your own machine. The project also targets Python 3.12 or newer, and the web console provides access to the API reference, MCP views, scheduler, identities, library, and downloads.

It supports Douyin, TikTok, and Bilibili. Collection features include posts, authors, comments, sounds, hashtags, live rooms, trending boards, and search results, alongside video and image-album downloads.

Yes, it can turn downloaded videos into text locally with offline speech-to-text. The transcription runs on the same machine as the self-hosted deployment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDouyin TikTok Download API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/douyin-tiktok-download-api?style=directory)](https://allmcps.com/mcp/douyin-tiktok-download-api)
HTML Embed
<a href="https://allmcps.com/mcp/douyin-tiktok-download-api"><img src="https://allmcps.com/api/badge/douyin-tiktok-download-api?style=directory" alt="Douyin TikTok Download API on AllMCPs" /></a>