🚀 "Douyin_TikTok_Download_API" is a high-performance asynchronous out-of-the-boxTik Tok|Tiktok|BiliableData crawling tool, supports API calls, online batch analysis and download.
These sponsors have paid to place them here,Doinan_tics_download_apiThe project will always be free and open source. If you wish to be a sponsor of this project, please check out myGitHub Sponsor Page。
Your Ultimate Social Media Data & API Marketplace
Professional data solutions for Douyin, Xiaohongshu, TikTok, Instagram, YouTube,
Twitter, and more.
Real-time Data | Flexible APIs | Seamless Integration | Competitive Pricing with Discounts
Discover TikHub.io Marketplace
Buy and sell custom APIs, services, and social media solutions.
Join a thriving ecosystem of developers, businesses, and content creators.
Trusted by leading global influencer marketing and social media intelligence platforms
🚨If you want to use a private server to run this project, please refer to:Deployment preparations,Docker deployment,One-click deployment
This project is based onPydebio,Fasting,HTTPX, fast asynchronousTik Tok/TiktokData crawling tool, and online batch analysis and downloading of watermark-free videos or picture albums through the web, data crawling API, iOS shortcuts without watermark download and other functions. You can deploy or transform this project yourself to achieve more functions, or you can call it directly in your projectscraper.pyOr install an existing onepip packageAs a parsing library, easy to crawl data, etc....
Some simple application scenarios:
Download videos that are prohibited from being downloaded, perform data analysis, and download without watermark on iOS (withiOS's shortcut command APPIn conjunction with this project API, it can realize in-app download or read clipboard download, etc....
Evil0ctalNote: Github project reconstruction, everyone can communicate and learn from each other in the group, and do not allow advertisements or illegal things to be made purely friends and technical communication.X-BogusAlgorithm andA_BogusThe algorithm requests TikTok and TikTok's Web API.TikHub.ioIt is an API platform that provides various public data interfaces including Douyin and TikTok. If you want to support itDoinan_tics_download_apiWe strongly recommend that you choose the project developmentTikHub.io。
📦 Out of the box
Simplify the usage process and quickly carry out development work using the encapsulated SDK. All API interfaces are designed according to the RESTful architecture and are described and documented using the OpenAPI specification, accompanied by example parameters to ensure that calls are easier.
💰 Cost Advantage
There is no preset package limit, no monthly usage threshold, all consumption is billed instantly based on the actual usage, and is billed step by step based on the user's daily request volume. At the same time, you can check in in the user's background through daily check-in, and these free amounts will not expire.
⚡️ Quick support
We have a huge Discord community server where administrators and other users will quickly reply to you to help you quickly resolve current issues.
🎉 Embrace open source
Some of the source code of TikHub will be open sourced on Github and will sponsor some open source projects.
😾The online download function of the demo site has been turned off, and Douyin's parsing and API services cannot be guaranteed for availability on the Demo site due to cookies.
🍔Web APP:https://douyin.wtf/
🍟API Document:https://douyin.wtf/docs
🌭tikub APU Docuration:https://api.tikhub.io/docs
💾 iOS Shortcut:Shortcut release
📦️Desktop downloader (recommended warehouse):
/crawlers
/app/api
CrawlersAfter processing data, the related classes return in JSON form, download videos, and implement fast calls with iOS shortcuts, and support asynchronous./app/web
PyWebIOA simple web program created, process the value entered on the web page and use itCrawlersThe related class processing interface outputs related data on the web page.Most of the parameters of the above files can be in the correspondingconfig.yamlMake modifications in
./Douyin_TikTok_Download_API ├─app │ ├─api │ │ ├─endpoints │ │ └─models │ ├─download │ └─web │ └─views └─crawlers ├─bilibili │ └─web ├─douyin │ └─web ├─hybrid ├─tiktok │ ├─app │ └─web └─utils
TikTok web version API
TikTok web version API
Bilibili web version API
Install the parsing library:pip install douyin-tiktok-scraper
import asyncio
from douyin_tiktok_scraper.scraper import Scraper
api = Scraper()
async def hybrid_parsing(url: str) -> dict:
# Hybrid parsing(Douyin/TikTok URL)
result = await api.hybrid_parsing(url)
print(f"The hybrid parsing result:\n {result}")
return result
asyncio.run(hybrid_parsing(url=input("Paste Douyin/TikTok/Bilibili share URL here: ")))
💡 Tip: Includes but is not limited to the following examples. If you encounter link resolution failure, please enable a new one.issue
7.43 pda:/ 让你在几秒钟之内记住我 https://v.douyin.com/L5pbfdP/ 复制此链接,打开Dou音搜索,直接观看视频!
https://v.douyin.com/L4FJNR3/
https://www.douyin.com/video/6914948781100338440
https://www.douyin.com/discover?modal_id=7069543727328398622
https://www.tiktok.com/t/ZTR9nDNWq/
https://www.tiktok.com/@evil0ctal/video/7156033831819037994
https://v.douyin.com/L4NpDJ6/ https://www.douyin.com/video/7126745726494821640 2.84 nqe:/ 骑白马的也可以是公主%%百万转场变身https://v.douyin.com/L4FJNR3/ 复制此链接,打开Dou音搜索,直接观看视频! https://www.tiktok.com/t/ZTR9nkkmL/ https://www.tiktok.com/t/ZTR9nDNWq/ https://www.tiktok.com/@evil0ctal/video/7156033831819037994
API documentation:
local:http://localhost/docs
Online:https://api.douyin.wtf/docs
API Demo:
https://api.douyin.wtf/api/hybrid/video_data?url=[视频链接/Video URL]&minimal=falsehttps://api.douyin.wtf/api/download?url=[视频链接/Video URL]&prefix=true&with_watermark=falseFor more demonstrations, please check the document content...
/api/downloadThe interface downloads TikTok videos. This interface has been manually closed in the demonstration site, and you need to deploy this project yourself.💡Tip: It is best to deploy this project to a server in the United States, otherwise strange bugs may occur.
Recommended to useDigitalOceanserver, because it can be free.
Sign up with my invitation link and you can get a credit of $200, and I can get a reward of $25 when you spend $25 on it.
My invitation link:
https://m.do.co/c/9f72a27dec35
Use scripts to deploy this project in one click
This project provides one-click deployment scripts to quickly deploy the project on the server.
The script was tested on Ubuntu 20.04 LTS, and other systems may have problems. If there are any problems, please solve them yourself.
Download using wget commandinstall.shGo to the server and run
wget -O install.sh https://raw.githubusercontent.com/Evil0ctal/Douyin_TikTok_Download_API/main/bash/install.sh && sudo bash install.sh
Turn on/stop service
sudo systemctl start Douyin_TikTok_Download_API.servicesudo systemctl stop Douyin_TikTok_Download_API.serviceTurn on/off automatically
sudo systemctl enable Douyin_TikTok_Download_API.servicesudo systemctl disable Douyin_TikTok_Download_API.serviceUpdate the project
cd /www/wwwroot/Douyin_TikTok_Download_API/bash && sudo bash update.sh💡 Tip: Docker deployment is the easiest way to deploy, suitable for users who are not familiar with Linux. This method is suitable for ensuring environmental consistency, isolation and quick settings. Please use a server that can access Douyin or TikTok normally, otherwise strange bugs may occur.
Before you begin, make sure your system has Docker installed. If Docker is not installed, you canDocker official websiteDownload and install.
First, pull the latest Douyin_TikTok_Download_API image from Docker Hub.
docker pull evil0ctal/douyin_tiktok_download_api:latest
If necessary, you can replace itlatestTags for the specific version you need to deploy.
After pulling the image, you can start a container from this image. The following are the commands to run the container, including the basic configuration:
docker run -d --name douyin_tiktok_api -p 80:80 evil0ctal/douyin_tiktok_download_api
Each part of this command works as follows:
-d: Run containers in the background (separated mode).--name douyin_tiktok_api : Name the containerdouyin_tiktok_api 。-p 80:80: Map port 80 on the host to port 80 of the container. Adjust the port number according to your configuration or port availability.evil0ctal/douyin_tiktok_download_api: The name of the Docker image to be used.Use the following command to check if your container is running:
docker ps
这将列出所有活动容器。查找douyin_tiktok_api to confirm its normal operation.
After the container runs, you should be able to passhttp://localhostOr the API client access Douyin_TikTok_Download_API. If you have a different port configured or accessed from a remote location, adjust the URL.
For more advanced deployments, you may want to customize Docker commands, including environment variables, volume mounts for persistent data, or other Docker parameters. Here is an example:
docker run -d --name douyin_tiktok_api -p 80:80 \ -v /path/to/your/data:/data \ -e MY_ENV_VAR=my_value \ evil0ctal/douyin_tiktok_download_api
-v /path/to/your/data:/data: Turn on the host/path/to/your/dataThe directory mounted to the container/dataDirectory, used to persist or share data.-e MY_ENV_VAR=my_value: Set environment variables in the containerMY_ENV_VAR, its value ismy_value。Most of the configurations of the project can be found in the following directoriesconfig.yamlModify the file:
/crawlers/douyin/web/config.yaml/crawlers/tiktok/web/config.yaml/crawlers/tiktok/app/config.yamlWhen you need to stop and remove the container, use the following command:
# Stop
docker stop douyin_tiktok_api
# Remove
docker rm douyin_tiktok_api
API speed test (compare the official API)
TikTok official API:
This project API:
TikTok official API:
This project API:
Project interface
Web main interface:

Web main interface:

Start: 2021/11/06
Githubub:@Evil0ctal