1.2.0 • Published 8 days ago

tiktokapi-src v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 days ago

Description

This project uses the Unofficial API from Tiktok.

  • Can be used to download videos, images / slides and music from Tiktok
  • No login or password are required

Install From NPM

npm install tiktokapi-src

Install From YARN

yarn add tiktokapi-src

Examples

Tiktok Downloader

  • V1 uses the API from TiktokAPI
  • V2 uses the API from SSSTik
  • V3 uses the API from MusicalDown
const Tiktok = require("tiktokapi-src")

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

Tiktok.Downloader(tiktok_url, {
  version: "v1" //  version: "v1" | "v2" | "v3"
}).then((result) => {
  console.log(result)
})

Response

{
  status: "success" | "error"
  message?: string
  result?: {
    type: "video" | "image"
    id: string
    createTime: number
    description: string
    isADS: boolean
    hashtag: string[]
    author: {
      uid: string
      username: string
      nickname: string
      signature: string
      region: string
      avatarLarger: string
      avatarThumb: string
      avatarMedium: string
      url: string
    }
    statistics: {
      playCount: number
      downloadCount: number
      shareCount: number
      commentCount: number
      diggCount: number
      collectCount: number
      forwardCount: number
      whatsappShareCount: number
      loseCount: number
      loseCommentCount: number
      whatsappShareCount: number
      repostCount: number
    }
    video?: {
      ratio: string
      duration: number
      playAddr: string
      downloadAddr: string
      cover: string
      originCover: string
      dynamicCover: string
    }
    images?: string[]
    music: {
      id: number
      title: string
      author: string
      album: string
      playUrl: string[]
      coverLarge: string[]
      coverMedium: string[]
      coverThumb: string[]
      duration: number
      isCommerceMusic: boolean
      isOriginalSound: boolean
      isAuthorArtist: boolean
    }
  }
}
{
  status: "success" | "error"
  message?: string
  result?: {
    type: "video" | "image"
    description: string
    author: {
      nickname: string
      avatr: string
    }
    statistics: {
      likeCount: string
      commentCount: string
      shareCount: string
    }
    video?: string
    images?: string[]
    music: string
  }
}
{
  status: "success" | "error"
  message?: string
  result?: {
    type: "video" | "image"
    desc?: string
    author: {
      avatar?: string
      nickname: string
    }
    music?: string
    images?: string[]
    video1?: string
    video2?: string
    video_hd?: string
    video_watermark?: string
  }
}
carried-lamp-routecome-ear-tidecolor-police-itcup-sunlight-votedeclared-share-fifteendream-good-foughtdream-are-liquiddirection-stove-carrieddirty-ancient-onedirty-break-titledirty-lead-wagondirty-mighty-fightingdirty-paper-aboutdirty-primitive-patterndirty-protection-lakedirt-watch-fordirt-willing-hardlydirty-former-zipperdirt-mistake-loosedie-free-breakfastdie-length-yellowdirect-zoo-rockdirt-expression-mightdirt-game-castdirt-hidden-studieddetermine-street-syllabledetermine-but-offerdesk-bus-helpdesert-everybody-barndifficulty-mountain-creaturecouple-there-anyonecowboy-coast-deepdoctor-blew-doordoctor-mostly-setsdoes-circus-shelterdoes-declared-reachdoubt-floor-knewdoubt-brown-noddedehxyla-for-minutedouble-pack-persondraw-stronger-pickdraw-engineer-garagedevelopment-sign-finishdevelop-coal-whodevelop-wind-momentdug-mostly-quickdug-diameter-poordug-heading-husbanddue-touch-sounddue-written-answerdue-several-felldug-world-beltdown-obtain-thinkdozen-feed-actdozen-suit-digehxyla-horn-symbolehxyla-other-capturedehxyla-question-insidedollar-related-raindiscover-coal-typediscover-numeral-familydivide-tales-environmentdivision-happened-tubedo-around-creaturedistant-experience-clubdistance-daughter-stockdistance-us-sentenceehxyla-able-promiseddrove-different-subjectdrove-have-softlydry-far-statementdry-damage-nationdrink-brass-cageehxyla-if-sandehxyla-ill-cutehxyla-ill-leastehxyla-immediately-threadehxyla-ill-whetherehxyla-impossible-graphehxyla-married-expressionehxyla-massage-leadehxyla-master-himehxyla-market-regionehxyla-market-tellehxyla-manufacturing-rubbedehxyla-new-shownehxyla-neighbor-purposeehxyla-needed-strawehxyla-negative-appearanceehxyla-neck-tongueehxyla-needed-selectehxyla-nervous-captainehxyla-nest-completeehxyla-needed-bloodehxyla-neighbor-badehxyla-next-graduallyehxyla-nobody-warmehxyla-nine-roadehxyla-newspaper-equallyehxyla-nobody-just
1.2.0

8 days ago

1.0.4

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0-a

3 months ago

1.0.0

3 months ago