Page cover image

Information

Short explanation of how different tiktok ids work

TikTok has 2 different ways which they use to identify a user, these two are called sec_user_id & user_id. Most requests that you will be doing when a user is related, sec_user_id will be used. There may be some instances where you'll need to use user_id but sec_user_id is definitely the most important one to keep in mind.

It's also good to keep in mind that TikToks User API is 99% of the time using these IDs & not username/unique_id, which means we are not in control of wether to use usernames or ids.

There's also a 3rd ID which you will be using a lot if you want to interact with our Live API, that ID is called room_id. This is the ID of a users current livestream, anything related to the Live API will use this ID to identify the livestream.

Here's an example of all the IDs:

{
    "sec_user_id": "MS4wLjABAAAAmmP1sDfuWs5mcmzoWZMCdHzl73axK353fbvtgifLfT7IiF2dtBPMKBcIeGCHFLKT",
    "user_id": "7030569423573779462",
    "room_id": "7630589423973772452"
}

Last updated