TikTok API for latest video

Is there an API available to use in a ! command for fetching the latest video uploaded to tikok?

Hey @xleoju!

There isn’t, for a good reason: the endpoints aren’t open, meaning that for a user to fetch the URL of their last video, they need to authenticate with TikTok first.

But if you want, you can set it up using this endpoint, then once you have the response, you can get the last video’s link like this: response.data.videos[0].share_url

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.