TikTok Posts API
Get the posts of a public TikTok account, newest first, with caption, date, duration, cover, media URL, view / like / comment / share / save counts, music and hashtags. The same post shape comes back for reposts, liked videos and stories.
GET /v1/tiktok/users/{user}/posts: videos and photo posts, newest first (about 16 a page)GET /v1/tiktok/users/{user}/reposts: videos the account reposted (up to 30 a page)GET /v1/tiktok/users/{user}/liked: videos the account liked. Most accounts hide this list: the page is then empty andmeta.list_hiddenistrueGET /v1/tiktok/users/{user}/playlists: public playlists (id, name, video count, cover)GET /v1/tiktok/users/{user}/stories: stories up right now (often empty: stories expire)
Cost: 1 credit per page (free from cache). Failed calls and private accounts are free.
Handles and ids: list endpoints work on the account's secUid. Send a handle we have not looked up in the last 7 days and we look it up first, which adds 1 credit (meta.lookup_credits, X-Credits-Lookup). A secUid, a numeric id, a handle we already know and later pages never pay it. Every profile and list item returns id and sec_uid: store them.
Parameters
userpathrequiredmila.studio, with or without @), numeric user id, or secUid (MS4wLjABAAAA…). All digits means an id; write @12345 for a handle made only of digits.cursorqueryoptionalpagination.next_cursor from the previous page.freshqueryoptionaltrue skips the cache.rawqueryoptionaltrue returns TikTok's own JSON in data instead of our fields (same price).Response
media_typeisvideoorphoto; photo posts list their slides inimagesand have noplay_url.play_urlis a short-lived TikTok media URL; TikTok's CDN may refuse it outside a browser. Use it promptly or fetch the post again.has_captionstells you whether the transcript endpoint will find text.- TikTok sometimes returns a short or empty page while
has_moreis stilltrue: follownext_cursor, not the page size.
FAQ
How do I get all videos of a TikTok account?
Call GET /v1/tiktok/users/{user}/posts and pass pagination.next_cursor back as cursor while pagination.has_more is true. Each page is one call.
Why is the liked list empty?
The account hides its liked videos (the default on TikTok). The call still answers, with meta.list_hidden: true.