/Tiktok-API-Python

TIKTOK API REQUESTS PYTHON , GET TRENDING VIDEO, GET VIDEO BY CHALLENGE, GET VIDEO BY MUSIC, GET VIDEO BY USER, DOWNLOAD VIDEO NO WATERMARK

Primary LanguagePython

Tiktok API

API Tiktok use Python

Tool download All video

  • Support downloading all video users on 4 platforms: TikTok, TikTok China (Douyin), Kwai, Kwai China (Kuaishou)
  • Video quality full HD
  • Download multiple channels at the same time
  • Automatically create cross-platform folders and download IDs => https://youtu.be/btpZPN7kFOU => anhk1996@gmail.com

Install

pip install requests

How to use

import TiktokApi
Api = TiktokApi.Tiktok()

getUser

user = Api.getUser('vtkh2004')
print(user)

getUserFeed

userfeed  = Api.getUserFeed('vtkh2004', '0')
print(userfeed)

getMusic

music = Api.getMusic('6896022404674800386')
print(music)

getMusicFeed

musicfeed  = Api.getMusicFeed('6896022404674800386', '0')
print(musicfeed)

getChallenge

challenge = Api.getChallenge('foryou')
print(challenge)

getChallengeFeed

challengefeed  = Api.getChallengeFeed('foryou', '0')
print(challengefeed)

getTredingFeed

trending = Api.getTrendingFeed(count = 30, region = 'IN')
print(trending)

getVideoById

vid = Api.getVideoById('6897853325761350913')
print(vid)

getVideoByUrl

vid = Api.getVideoByUrl('https://www.tiktok.com/@tiktok/video/6801895105885195526')
print(vid)

DownloadVideoByID

Api.DownloadVideoByUrl('https://www.tiktok.com/@tiktok/video/6801895105885195526')

DownloadVideoByUrl

Api.DownloadVideoById('6897853325761350913')