TikTokSaver ships a lightweight Express server that exposes three REST endpoints. Every request is made with URL query parameters — there are no request bodies. Depending on the endpoint, responses are either a structured JSON object or raw binary data streamed directly to the browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevxxAlva/tiktok-bot-downloader/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
| Environment | Base URL |
|---|---|
| Development | http://localhost:3000 |
| Production (Vercel) | https://your-app.vercel.app |
https://your-app.vercel.app/api/download.
Authentication
The API is fully public. No API keys, tokens, or authentication headers are required for any endpoint.Endpoints
GET /api/download
Fetches video metadata from TikWM for a given TikTok URL and returns a
DownloadResult JSON object containing video, audio, image, and author fields.GET /api/proxy-download
Buffers a TikTok CDN media URL and streams it to the browser with
Content-Disposition: attachment headers, enabling direct file downloads.GET /api/proxy-image
Proxies TikTok CDN image URLs through the server, bypassing hotlink restrictions and shielding the end-user’s IP from TikTok’s CDN.
Request Format
All parameters are passed as URL query strings. No JSON body or multipart payload is ever sent to the API — onlyGET requests with query parameters.
Response Format
| Endpoint | Response Type | Description |
|---|---|---|
GET /api/download | application/json | A DownloadResult JSON object |
GET /api/proxy-download | Binary (video/mp4, audio/mpeg, etc.) | The raw media file |
GET /api/proxy-image | Binary (image/jpeg, etc.) | The raw image file |
Error Handling
All endpoints return standard HTTP status codes.GET /api/download returns JSON error objects; the two proxy endpoints return plain-text error strings.
| Status Code | Meaning |
|---|---|
400 Bad Request | A required query parameter (url) is missing |
404 Not Found | No watermark-free video version was found |
500 Internal Server Error | TikWM returned an error, or an unexpected server-side failure occurred |
504 Gateway Timeout | The upstream CDN or TikWM did not respond within the allowed time |
CORS
CORS is enabled globally on the server using thecors middleware with default settings. Any origin can call any endpoint — no Origin header restrictions are applied.
TypeScript Interfaces
The following interfaces fromclient/src/types.ts describe the canonical shape of every successful response from GET /api/download. Use these as the source of truth when consuming the API in TypeScript projects.
Quick Start
The followingcurl command fetches metadata for a TikTok video. Replace the url value with any valid TikTok link.