mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
514417ea888fcc67f2bbfdcb0abd1329a2cf5868
TikTok Downloader
Lightweight TikTok Downloader using NodeJS.
Technology
Develop
- Clone/fork into a directory you want.
- Install all dependencies correctly (
yarn installornpm install) - Install vercel cli too with
npm install vercel -goryarn global add vercel - Ran
vercel devfor development (default port is:3000)
Use
vercel --prodfor production use.
Configuration
This config is required if you want use /api/search.
- Go to https://tiktok.com and login using your account.
- Open developers tool, and find
Storage(Firefox) orApplication(Chrome) and click it. - Click
Cookiesand findsessionid. - Copy
sessionidvalue to your clipboard.
Environment Setup:
- Rename
.env.exampleto.env - Fill
SESSIONvalue with yoursessionid.
Environment Setup on Hosting:
Tested on Vercel
- Go to your project settings.
- Find
Environment Variablesbutton and click it. - Add environment variable with
SESSIONas the name, and yoursessionidas a value.
Endpoints
/api/ping:
Send ping request to TikTok
Query requirements: -
/api/search:
SESSIONneeded.
Search trending topic and videos about x
Query requirements:
q: Keyword you want to search. (eg.Naruto)t: Searching type (trendfor trending topic orcardsfor videos and user(s) information)
Example: /api/search?q=Boruto&t=cards
/api/download:
Get tiktok video without watermark!
Query requirements:
url: TikTok Video URL. (eg.https://www.tiktok.com/@vanessaangelnih/video/7006671762352016666)
Credits
Contribution(s) are welcome!
Languages
TypeScript
95.3%
CSS
2.8%
JavaScript
1.5%
Dockerfile
0.3%
Shell
0.1%