Creates a new TikTokDownloader instance
Configuration options for the downloader
Downloads video information and provides download URLs for a TikTok video
The TikTok video URL to download
Promise resolving to download result with video info and URLs
const result = await downloader.downloadVideo('https://www.tiktok.com/@user/video/123');
if (result.success && result.data) {
console.log(`Title: ${result.data.videoInfo.title}`);
console.log(`Video URL: ${result.data.downloadUrls.video}`);
}
Main class for downloading TikTok videos and extracting video information
Example