TikTok API Documentation
Last updated
Introduction
Welcome to the TikLiveAPI documentation. Our API allows you to access public data from TikTok, including user profiles, videos, hashtags, and more.
The base URL for all requests is:
Here is a complete request, using User Info by Username to fetch the public profile of the tiktok account:
Authentication
All API requests require an API key. You can pass your API key in the request header.
We do not ask for your TikTok account or password. You do not need to log in with your TikTok account to make requests.
Your key is on the Dashboard tab of your profile. New to TikLiveAPI? How to Get a TikTok API Key walks through signing up and finding your key.
Rate Limits
We implement rate limiting to ensure fair usage. The standard rate limit is 200 requests per minute per API key; contact us to raise it.
Errors
When a request cannot be served, the API returns a JSON object with a message
field that describes the problem, instead of the endpoint's data.
Missing API key (no X-Api-Key header):
Invalid API key:
You also get this message with a key that has been regenerated: the old key stops working immediately. Copy your current key from the Dashboard tab of your profile.
Both of these come back with HTTP status 200, so check the response body for a
message field rather than relying on the status code. A successful response is
the endpoint's data object, as shown in each endpoint's example response.
See Rate Limits for request quotas and Pricing for credits: each successful request costs 1 credit.
All Endpoints
Browse the full TikTok API reference by category. Every endpoint includes parameters, an example response, and a live playground.
Users Endpoints
- User ID
- User Info by Username
- User Info by ID
- User Posts
- User Followers
- User Following
- User Search
- User Collections
- User Liked Posts
- User Playlists (Mix)
- User Stories
Posts (Videos) Endpoints
- Post Detail
- Post Comments
- Post Comment Replies
- Post Music
- Post Challenge
- Post Playlist
- Posts Collection (Favorites)
- Post Search