Skip to content

GET/v1/tiktok/users/{user}/posts

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.

GEThttps://api.handlehaul.com/v1/tiktok/users/{user}/posts
GEThttps://api.handlehaul.com/v1/tiktok/users/{user}/reposts
GEThttps://api.handlehaul.com/v1/tiktok/users/{user}/liked
GEThttps://api.handlehaul.com/v1/tiktok/users/{user}/playlists
GEThttps://api.handlehaul.com/v1/tiktok/users/{user}/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 and meta.list_hidden is true
  • GET /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

userpathrequired
TikTok handle (mila.studio, with or without @), numeric user id, or secUid (MS4wLjABAAAA…). All digits means an id; write @12345 for a handle made only of digits.
cursorqueryoptional
pagination.next_cursor from the previous page.
freshqueryoptional
true skips the cache.
rawqueryoptional
true returns TikTok's own JSON in data instead of our fields (same price).

Response

  • media_type is video or photo; photo posts list their slides in images and have no play_url.
  • play_url is a short-lived TikTok media URL; TikTok's CDN may refuse it outside a browser. Use it promptly or fetch the post again.
  • has_captions tells you whether the transcript endpoint will find text.
  • TikTok sometimes returns a short or empty page while has_more is still true: follow next_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.

↑↓ to move↵ to open