Douyin_TikTok_Download_API

Self-hosted Douyin, TikTok and Bilibili data API with REST, MCP and console.

Local

Install

See setup instructions on douyin.wtf

What it does

This project is a self-hosted data API for Douyin, TikTok and Bilibili. It fetches posts, author profiles and their posts, comments and replies, mixes and playlists, sounds, hashtags, live-room status and pull URLs, trending boards and, where the platform permits, search results. Media downloads for video and image albums are built in, along with a local PostgreSQL archive, counter snapshots, collections and a watchlist. It is aimed at developers and data teams who want social-media data on their own hardware without a hosted quota, and it also suits AI agents that need read access to those platforms.

Deployment is docker compose up with PostgreSQL and Redis. A headless browser mints guest identities and refills the pool as usable ones run down, and requests pass through health tiers, per-identity limits and per-endpoint circuit breakers. Access is via REST (asynchronous by default, with a wait option), a CLI, and an MCP server at /mcp for clients such as Claude Code, Claude Desktop and Codex CLI using HTTP with a bearer API key. A React console covers the identity pool, scheduler, library, downloads and logs.

Limitations: some capabilities depend on the platform and the identity. Douyin follower, following, search and hashtag-post endpoints are not offered; TikTok post search and Douyin liked posts need an imported logged-in cookie, which carries ban risk. Bilibili comments are truncated for guests. Bilibili signing was absent in 5.0 and returned in 5.1.6. The public demo is read-only, rate limited to 30 requests per 10 seconds, and not meant as a production service.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
21,544
Last push
Nov 20, 2026
License
Apache-2.0
Archived
No

FAQ

What license does Douyin_TikTok_Download_API use?
Apache-2.0
Does Douyin_TikTok_Download_API run locally or remotely?
It runs locally.
Is Douyin_TikTok_Download_API an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/douyin-tiktok-download-api"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options