Browse all endpoints

TikTok User ID API

Last updated

Retrieve the unique numeric User ID (UID) for any TikTok user by providing their username. Essential for subsequent API requests. The response is a single JSON object with the id field, for example {"id": "107955"} for the official tiktok account. Store this ID once per account: /user-posts/, /user-followers/, /user-following/ and both info endpoints all key off the numeric userid rather than the handle, and handles can change while the ID never does.

GET User ID
URL:
https://api.tikliveapi.com/userid/
Parameters:
username *Required

The username of the TikTok user.

Example URL:
https://api.tikliveapi.com/userid/?username=tiktok
Request:
curl -H "X-Api-Key: YOUR_API_KEY" "https://api.tikliveapi.com/userid/?username=tiktok"

Authenticate with your API key in the X-Api-Key header. Each successful request costs 1 credit, and the standard rate limit is 200 requests per minute per API key.

Example Response:
{
  "id": "107955"
}