AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Gaming › Douyin_TikTok_Download_API
✦ Free & open sourceGaming

Douyin_TikTok_Download_API

Self-hosted TikTok, Douyin and Bilibili scraper with a self-healing identity pool and MCP server.

Scrape TikTok, Douyin & Bilibili with AI Agents

Asynchronous data scraper featuring a self-healing identity pool, PostgreSQL archive, and MCP integration.

Free forever · open source · Apache-2.0
✓ Needs IT✓ Browser-based✓ Real-time collaboration
8.4
ZEKAI
Essential for AI video pipelines
Free & open source · Gaming
Ease of setup6
Usefulness9
Maintenance9.5
Community9.2
★ 21,262
GITHUB
Nov 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

This tool is a self-hosted API and data scraper designed to pull posts, comments, live rooms, and no-watermark videos from TikTok, Douyin, and Bilibili. It suits developers and technical professionals in AI and gaming who need automated access to social media video data without vendor rate-limit walls.

Runs on
Web
Hosting
Self-host
Languages
Python
License
Apache-2.0

What it is

It runs via Docker Compose, utilizing a headless browser to mint guest identities that automatically replenish when health drops. It parses signatures in pure Python (including X-Bogus, A_Bogus, and Bilibili's WBI), archives everything to PostgreSQL, and offers offline speech-to-text conversion for downloaded video assets.

Who it's for

It suits developers building AI agents or data pipelines requiring clean social video inputs. It does not suit non-technical users looking for a plug-and-play desktop downloader or anyone unwilling to maintain containerized infrastructure.

Key features

Self-Healing Identity Pool

Headless browsers mint guest identities and top up the pool automatically when usable tokens run low.

Model Context Protocol

Built-in MCP server allows AI agents to directly drive the scraping workflow and query data.

Pure Python Signing

Implements a_bogus, X-Bogus, X-Gnarly, X-Dynosaur, and WBI signatures natively in Python.

PostgreSQL Archive

Persists parsed posts, comments, and media so data remains accessible even if deleted upstream.

How to start

Up and running in 3 steps

1
Clone the repository and prepare your environment configuration files.
2
Run docker compose up to launch the API, PostgreSQL database, and Redis backend.
3
Access the React web console or connect via the MCP server to begin scraping data.
Real talk

Our honest verdict

What's great

  • Self-healing identity pool prevents sudden scraping blocks by refreshing expired guest tokens.
  • Integrated Model Context Protocol (MCP) server lets AI agents trigger and manage downloads natively.
  • Archives all scraped content into PostgreSQL so upstream deletions do not remove your local data.
  • Includes offline speech-to-text processing for all successfully downloaded video assets.

Where it falls short

  • Requires maintaining a Docker container stack alongside a PostgreSQL and Redis database instance.
  • Target platforms frequently update their signing and rate-limiting protocols, demanding regular image updates.
  • Bilibili and Douyin/TikTok use distinct signing mechanisms that add complexity to underlying infrastructure upkeep.
Cost

Pricing & license

Free and open source under its stated licence, with the only cost being the server resources and database infrastructure you provision to run it.

Paid work

Open remote AI-training roles

879 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

Get more

Use it, or have us set it up

📄 Free PDF: Douyin_TikTok_Download_API for Gaming
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure Douyin_TikTok_Download_API for you — and train your team.
Get it done for you ↗
Questions

FAQ

How does the identity pool handle blocked cookies?

A headless browser automatically mints guest identities and replenishes the pool when health tiers drop or endpoints rate-limit.

Can AI agents interact with the downloaded videos?

Yes, the built-in MCP server allows AI agents to drive downloads, query archives, and trigger offline speech-to-text.

What databases are required for deployment?

The system requires PostgreSQL for archiving scraped data and Redis for task management and caching.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Gaming — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google