TikTok API v2 allows for access to tiktok via a rest api endpoints.
Questions tagged [tiktok-api]
44 questions
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
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
2
votes
1 answer
TikTok oAuth API authorization code request always expired
I'm trying to use to oAuth of the TikTok API.
From what I got from their website, you first need to send the user to a particular link, with your client_key and redirect_uri, then the user need to log in.
After he's logged in, there will be a code…

Madar
- 196
- 2
- 15
2
votes
0 answers
Tiktok Query User Info API display internal_error
Currently i'm trying to learning tiktok API from this doc Research API. I'm testing it on my postman. my tiktok apps status still staging. I able to get the access token but for "query videos" and "Query user info" endpoint i got this response :
{
…

ferdinand
- 325
- 2
- 14
2
votes
2 answers
Publishing videos on TikTok using TikTok API?
This has been a big mystery to me so I'm gonna ask here in a hope that someone can help me with it.
So, I'm trying to use the TikTok API to Auto Publish videos onto TikTok's account.
I cannot find any information about this on their API docs.
So I…

drago
- 1,148
- 2
- 16
- 35
1
vote
1 answer
How to migrate v1 auth url to v2 in Tiktok?
I had used this code previously to use Tiktok OAuth in my react native app. But now tiktok is shifting to v2 from 12 September,2023. I want to replace this code of mine with new code.
const baseUrl =…

Vishal Kumar
- 11
- 3
1
vote
2 answers
Oauth: problem of getting access token from TikTok
We are implementing "Log in with Tiktok" on our website. We are able to redirect users to Tiktok and get user initial authorization according to the instructions on this link:
https://developers.tiktok.com/doc/login-kit-web/
However, when we follow…

curious1
- 14,155
- 37
- 130
- 231
1
vote
1 answer
TikTok API + python: get video metadata by ID (in json)
Previously, I have been using this URL for retrieving the metadata of a public TikTok video:
https://www.tiktok.com/node/share/video/{handle}/{post_id}
This URL used to return an itemInfo dictionary with all the necessary data: video title and…

Edmond
- 59
- 2
- 15
1
vote
1 answer
Tiktok authentication for using api
Can anybody tell me that is it necessary that tiktok webapp should be approved for getting access token cuz my app is under reviewed and when I go to authentication page for callback authorization after login it is showing error
I followed all the…

Mohammed Talha
- 11
- 1
1
vote
0 answers
TikTok embeds not working within TikTok app webview
I've placed a few TikTok videos on my website using the TikTok embed API, however when clicking my site url from my TikTok bio, TikTok's in app web view redirects my to a full page view of my embedded video instead of my website.
I have to click…

cormacncheese
- 1,251
- 1
- 13
- 27
0
votes
0 answers
TimeoutError error because the fetch() function is taking longer than 30 seconds to complete
I am new to asyncio and I managed to do get some video metadata from Tiktok with it. Below is the code that I've been using and it works for when the num_sessions = 30 but any longer than that and I get a timeout error
import…

shaneinei
- 1
- 1
0
votes
0 answers
Tiktok OAuth v2 request parameters are malformed
Trying to migrate from Tiktok's API from v1 to v2 endpoints. Currently version 1 works for me but my request to the https://open.tiktokapis.com/v2/oauth/token/ endpoint keeps returning
{
"error": "invalid_request",
"error_description": "The…

Andrew Chow
- 31
- 2
0
votes
0 answers
TikTok API authorization process
TikTok's authorization process for the Accounts API involves sending the authorization URL to the customer. Problem is that the URL has a random ID as a parameter that is unique for every login and the only way to generate it seems to be by loading…
0
votes
1 answer
How to fetch tiktok ads data using python
I need to fetch data from tiktok for Campaign, Ad Group and Ad,
this is what I tried
import requests
url = "https://business-api.tiktok.com/open_api/v1.3/campaign/get/"
access_token = "your_access_token"
headers = {
"Authorization": f"Bearer…

gourav
- 33
- 7