2023-04-08 17:15:37 +07:00
2023-04-03 23:32:12 +07:00
2023-04-03 23:55:53 +07:00
2023-04-03 23:32:12 +07:00
2023-04-08 17:15:37 +07:00
2023-04-03 23:32:12 +07:00
2023-04-03 23:32:12 +07:00

Tiktok Downloader

  • Used to download videos, images, music from TikTok
  • No login or password are required

Installation

  • @tobyg74/tiktok-api-dl requires Node.js v10+ to run.

Install from NPM

npm install @tobyg74/tiktok-api-dl

Install from YARN

yarn add @tobyg74/tiktok-api-dl

Usage

Tiktok Downloader

const { TiktokDL } =  require("@tobyg74/tiktok-api-dl");

const tiktok_url = "https://vt.tiktok.com/ZS84BnrU9"

TiktokDL(tiktok_url)
    .then((result) => {
        console.log(result);
    })

Tiktok Profile

const { TiktokStalk } = require("@tobyg74/tiktok-api-dl");

const username = "tobz2k19"

TiktokStalk(username)
    .then((result) => {
        console.log(result);
    })

Response

Tiktok Downloader

{
  status: "success" | "error"
  message?: string
  result?: {
    type: "video" | "image"
    id: string
    create_time: number
    description: string
    author: {
      username: string
      nickname: string
      signature: string
      birthday: string
      region: string
    }
    statistics: {
      play_count: number
      download_count: number
      share_count: number
      comment_count: number
      like_count: number
      favourite_count: number
    }
    video?: string[]
    images?: string[]
    music: string[]
  }
}

Tiktok Profile

{
  status: "success" | "error"
  message?: string
  result?: {
    users: {
      username: string
      nickname: string
      avatar: string
      signature: string
      verified: boolean
      region: string
    }
    stats: {
      followerCount: number
      followingCount: number
      heartCount: number
      videoCount: number
      likeCount: number
    }
  }
}
Description
No description provided
Readme Apache-2.0 434 KiB
Languages
JavaScript 75.3%
TypeScript 24.4%
Shell 0.3%