gitmyhub

Douyin_TikTok_Download_API

Python ★ 18k updated 8mo ago

🚀「Douyin_TikTok_Download_API」是一个开箱即用的高性能异步抖音、快手、TikTok、Bilibili数据爬取工具,支持API调用,在线批量解析及下载。

A self-hostable web API and browser tool for downloading TikTok, Douyin, and Bilibili videos without watermarks, usable via a browser interface or programmatically from your own app.

PythonFastAPIHTTPXPyWebIODockersetup: moderatecomplexity 3/5

This project is a high-performance, asynchronous API and web tool for downloading videos and images from Douyin (the Chinese version of TikTok), TikTok, and Bilibili without watermarks. It lets you paste a video link and get back the clean media file, or call it programmatically from your own application.

The core problem it solves is that TikTok and Douyin embed watermarks into videos and do not offer direct download links through their normal interfaces. This tool bypasses that by fetching the raw media URLs through the platforms' web APIs, stripping the watermark, and returning the file for download.

It is built in Python using FastAPI (a framework for building web APIs) and HTTPX (an asynchronous HTTP client), and includes a web interface built with PyWebIO so you can use it directly in a browser without writing any code. You can also deploy it on your own server via Docker or a one-click Linux script, or install it as a Python package and call its scraping functions directly in your own project.

Practical uses listed in the README include downloading videos that are otherwise restricted, data analysis, and building iOS shortcut integrations that download videos by reading from the clipboard.

Because the platforms use anti-scraping algorithms (called X-Bogus and A-Bogus in the README), self-hosted deployments need a session cookie from the Douyin website configured before use. The project is licensed under Apache 2.0 and is described as permanently free and open source. The full README is longer than what was provided.

Where it fits