Tiktok is a video sharing platform. Use for questions regarding programmatic access to the platform or it's api. Use with a appropriate language tag like [javascript]
Questions tagged [tiktok]
199 questions
24
votes
4 answers
TikTok Login Kit web flow - keep getting Redirect URI error (code 10006)
I'm having an issue getting Login Kit to work. Similar to the question asked here I have the correct redirect domain listed in tiktok settings and the redirect_uri is basically just "domain/tiktok" but no matter what I do I get the same error…

Eugene Blinn
- 303
- 2
- 6
10
votes
0 answers
Unable to fetch user data by using tiktok-scraper npm package
I have used tiktok-scraper for getting any public TikTok users data. It was working fine recently and I was able to get the required data but suddenly it stopped working and started giving this error:
Error: Can't extract user metadata from the HTML…

Muhammad Rizwan
- 109
- 4
8
votes
3 answers
TikTok Login Kit: Illegal redirect link
I am having a look at the new TikTok Login Kit for Web and am stuck on the redirect step.
Similarly to all oAuth-based services out there, when you register your app, they should ask for valid redirect URLs. In the case of TikTok, they ask for…

Andrea Olivato
- 2,450
- 1
- 18
- 30
5
votes
1 answer
Login to Tiktok using Selenium?
i'm currently to use the script below to upload tiktok videos, however when running the script im getting hit with the error message "Too many attempts. Try again later." regardless of what login method i use, rotating headers don't seem to fix the…

stacksonoverflow
- 125
- 2
- 9
5
votes
2 answers
Can't post videos to Tiktok using the Web Video Kit API
I am trying to upload a video to Tiktok using this endpoint:
https://open-api.tiktok.com/share/video/upload/
Following the official docs:
https://developers.tiktok.com/doc/web-video-kit-with-web
(After successfully authenticating with Tiktok and…

giladmaker
- 61
- 1
- 3
5
votes
0 answers
How do you change the height of an embedded TikTok widget without clipping the embedded video?
TikTok offers an embedded API for developers to view TikToks on other websites. From the documentation, they mention the following:
Embedded videos come with adaptive length-to-width ratio
My presumption is that when I change the embedded video's…

Joseph Harrison-Lim
- 51
- 2
5
votes
1 answer
TikTok LoginKit iOS Integration Issue
I am implementing social login with TikTok in my app, From official documentation I implemented Basic setup and connected with my AppDelegate https://developers.tiktok.com/doc/getting-started-ios-quickstart-swift. Implemented loginkit with there…

Hammad Hassan
- 63
- 4
5
votes
0 answers
Captcha error with Python TikTokApi (from davidteather)
Here is my minimalist TikTokApi Python code:
#!/usr/bin/env python3.7
#-*-coding:utf-8-*-
from TikTokApi import TikTokApi
import datetime
for tiktok in TikTokApi(use_selenium=True).byUsername('therock',count=10):
print(tiktok['id'])
…

sc4re
- 171
- 1
- 10
4
votes
1 answer
Posting video + description to Tiktok API
I'm confused with the Tiktok API. Recently they announced that it's possible now to directly post a video with description. However when I look into their documentation (v2) I do not see anything related about posting videos.
Publishing with the…

Jamie
- 10,302
- 32
- 103
- 186
4
votes
0 answers
Unable to share video to TikTok from my app
I'm using TikTok's official SDK (https://developers.tiktok.com/doc/video-kit-ios-video-kit-with-swift) to share videos from my app to TikTok. The method I use looks like this:
func openVideoShareMenu(fileUri: String) {
let request =…

Noltibus
- 1,300
- 3
- 12
- 34
4
votes
1 answer
TikTok API oauth
I'm trying to implement TikTok login kit into my app.
I'm following this guide https://developers.tiktok.com/doc/login-kit-web and i'm stuck on point 2.1 because after succesfully login the user, and succesfully grant app permissions from the user…

Patrick G.
- 458
- 5
- 7
4
votes
1 answer
FFMPEG Command to format videos to TikTok's specs?
I'm trying upload a video exported by windows video editor to tiktok. It's a .mp4 file, and while it does upload, it isn't "TikTok'd", meaning, it only takes up the middle of screen. I was wondering what the ffmpeg command would be to output a video…

Christopher Sparks
- 65
- 1
- 6
3
votes
4 answers
Tiktok oauth request parameters are malformed
I'm trying to exchange my authorization token for a bearer token. According to the docs it should be a application/x-www-form-urlencoded request. My code looks like this:
$res = Http::withHeaders([
'Accept' => 'application/json',
…

Jamie
- 10,302
- 32
- 103
- 186
3
votes
2 answers
How can I get a username from the TikTok API
I have searched for many days now, but didn't found a field in the TikTok API where I can get the username of the user that has connected his TikTok account with my website. I want to let user log in with their TikTok account to let them link it…

Fitschi Fitschi
- 31
- 1
3
votes
2 answers
Cannot login with QRCode in TikTok using Selenium
I have written a simple script to login in TikTok using qrcode, but when I scan it shows that URL is undefined:
from time import sleep
from selenium import webdriver
if __name__ == "__main__":
driver =…

Dori
- 175
- 16