1.2.4 • Published 1 year ago

tiktok-down v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

UnOfficial API Tiktok-Down

Install:

npm install tiktok-down

Note:

  • If My Code Is Not Okay, Please Forgive Me, Because I'm Just A Kid <3
  • Sometimes There Will Be Errors Hope You Forgive Me
  • Don't Send Request Too Fast Or It Will Be Error
  • Don't Forget To Read README.md

Dependencies:

  • axios: 1.1.3
  • fs-extra: latest
  • cheerio: latest

1.2.4:

  • To prepare for Tet (Lunar New Year, I'm Vietnamese), I have redone all the first functions (getDetails, getDetailsUser, getDetailsMusic,...) allowing to get more detailed information..

How To Use It:

Configuration settings

const tiktokDown = require('tiktok-down');
const tt = new tiktokDown({
  checkUpdate: true, // If you want to be notified when a new version is available
  clientIP: '127.0.0.1' // your ip address or you can use localhost IP
})

After the installation is complete, you can use the following things

download:

// used to download links returned from tiktok
tt.download('url', 'test.mp4').then(console.log);

getDetails:

// Used to get video information including download url
tt.getDetails({
  url: 'your url',
  noWaterMark: true
}).then((data) => {
  console.log(data)
})

getDetailsUser:

// Used to get user information
// Handling multiple requests at the same time (New)
tt.getDetailsUser(
  [
    'thahhagn15', 
    'nich___122002', 
    'mixigaming', 
    'mixi_radio.sad', 
    'dohaysuii', 
    'miximoitrolai', 
    'fan.mixigamming'
  ]
)
    .then(console.log)

getDetailsMusic:

tt.getDetailsMusic({
  url: 'url music ex: https://www.tiktok.com/music/nh%E1%BA%A1c-n%E1%BB%81n-Trung-Tr%E1%BB%ABn-tr%E1%BA%A7m-t%C3%ADnh-%F0%9F%9A%B6%F0%9F%8F%BB-7165062678208908058', 
  // or
  id: 'id music ex: 7165062678208908058'
}).then(console.log)

getSearchVideo:

tt.getSearchVideo({
  lang: 'vi-VN', // your language
  region: 'VN', // your region,
  tz: 'Asia/Ho_Chi_Minh', // your timezone
  length: 5, // result length
  keyWord: 'Nasa' // keyword to search video
}).then(console.log)

getSearchUser:

tt.getSearchUser({
  lang: 'vi-VN', // your language
  region: 'VN', // your region,
  tz: 'Asia/Ho_Chi_Minh', // your timezone
  keyWord: 'Nasa' // keyword to search user
}).then(console.log)

getImage:

// Only for phone links, because tiktok web does not support video in the form of a list of photos
tt
  .getImage('url tiktok')
  .then(console.log)
  .catch(console.log)

Contact Me:

  • FaceBook: Sam (Follow me for more latest updates / if you have questions)
  • Zalo: 0348756580 (Sam)

Thank You For Using My API

npm.io

1.2.0

1 year ago

1.1.9

1 year ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.2.4

1 year ago

1.1.5

2 years ago

1.2.3

1 year ago

1.1.4

2 years ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.21

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago