Information about a TikTok video including metadata, statistics, and media URLs

interface TikTokVideoInfo {
    commentCount: number;
    coverUrl: string;
    createTime: number;
    description: string;
    duration: number;
    dynamicCoverUrl?: string;
    id: string;
    likeCount: number;
    music: {
        author: string;
        duration: number;
        id: string;
        title: string;
        url: string;
    };
    playCount: number;
    shareCount: number;
    title: string;
    videoUrl: string;
}

Properties

commentCount: number

Number of comments on the video

coverUrl: string

URL to the video's cover/thumbnail image

createTime: number

Unix timestamp when the video was created

description: string

Video description (same as title)

duration: number

Video duration in seconds

dynamicCoverUrl?: string

URL to the video's dynamic cover (optional)

id: string

Unique identifier for the video

likeCount: number

Number of likes the video has received

music: {
    author: string;
    duration: number;
    id: string;
    title: string;
    url: string;
}

Information about the background music

Type declaration

  • author: string

    Artist/author of the music

  • duration: number

    Duration of the music in seconds

  • id: string

    Unique identifier for the music track

  • title: string

    Title of the music track

  • url: string

    Direct URL to the audio file

playCount: number

Number of times the video has been viewed

shareCount: number

Number of times the video has been shared

title: string

Video title/description text

videoUrl: string

Direct URL to the video file