Interface TikTokDownloadResult

Result object returned by the downloadVideo method

interface TikTokDownloadResult {
    data?: {
        downloadUrls: {
            audio?: string;
            video: string;
            watermarkFree?: string;
        };
        videoInfo: TikTokVideoInfo;
    };
    error?: string;
    message: string;
    success: boolean;
}

Properties

data?: {
    downloadUrls: {
        audio?: string;
        video: string;
        watermarkFree?: string;
    };
    videoInfo: TikTokVideoInfo;
}

Download data (only present if success is true)

Type declaration

  • downloadUrls: {
        audio?: string;
        video: string;
        watermarkFree?: string;
    }

    Available download URLs

    • Optional audio?: string

      URL to download just the audio (optional)

    • video: string

      URL to download the video (with watermark)

    • Optional watermarkFree?: string

      URL to download the video without watermark (optional)

  • videoInfo: TikTokVideoInfo

    Complete video information

error?: string

Error message (only present if success is false)

message: string

Human-readable message describing the result

success: boolean

Whether the download operation was successful