Main class for downloading TikTok videos and extracting video information

Example

const downloader = new TikTokDownloader({
includeWatermark: false,
quality: 'high',
timeout: 30000
});

const result = await downloader.downloadVideo('https://www.tiktok.com/@user/video/123');
if (result.success) {
console.log(result.data?.videoInfo.title);
}

Constructors

Methods

Constructors

Methods

  • Downloads video information and provides download URLs for a TikTok video

    Parameters

    • url: string

      The TikTok video URL to download

    Returns Promise<TikTokDownloadResult>

    Promise resolving to download result with video info and URLs

    Example

    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}`);
    }