Retrieving TikTok IDs
Documentation on how to retrieve different type of TikTok IDs using our API
Now that you know the different kind of IDs, lets move onto how to retrieve them using our API by a username/unique_id.
Returns various ids from the username
GET https://kitkot.xyz/api/get_user_ids
Returns sec_user_id user_id from the username/unique_id, will also return room_id if the user is currently live.
Query Parameters
Name
Type
Description
api_key*
String
The api_key you got when purchasing our service
id*
String
The unique_id/username of the user
}
"code": 200,
"sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"user_id": "107955"
}{
"code": 404,
"msg": "User does not exist"
}{
"code": 400,
"msg": "id parameter exceeds length of 24"
}const fetch = require('node-fetch');
const BASEURL = "https://kitkot.xyz/api";
const API_KEY = "my-api-key";
const username = "tiktok";
const request = await fetch(`${BASEURL}/get_user_ids?api_key=${API_KEY}&id=${username}`);
const response = await request.json();
console.log(response);import requests
BASEURL = "https://kitkot.xyz/api"
API_KEY = "my-api-key"
username = "tiktok"
request = requests.get(f"{BASEURL}/get_user_ids?api_key={API_KEY}&id={username}")
response = request.json()
print(response)Description:
The query args can be seen in the text and since there is no body its gonna be a GET request and if session required? is true there should be a session_key in the query args as well otherwise it can be ignored.and it will return ids.
Last updated
