TikTok Comments API
Get the comments on a TikTok post, in TikTok's order, with author, text, time, like count and reply count, then the replies to any comment.
GET /v1/tiktok/posts/{post}/comments: top-level comments (about 20 a page)GET /v1/tiktok/comments/{comment}/replies?post=: replies to one comment (about 3 a page; pass the post too)
Cost: 1 credit per page (free from cache). Failed calls are free. A post with comments turned off answers an empty page.
Parameters
postpathrequiredcomments: post id or URL-encoded tiktok.com post link.
commentpathrequiredreplies: the comment
id.postqueryoptionalreplies: the post the comment belongs to (id or link).
cursorqueryoptionalpagination.next_cursor from the previous page.freshqueryoptionaltrue skips the cache.rawqueryoptionaltrue returns TikTok's own JSON in data.Response
Only call replies when reply_count is above zero. On a reply, parent_id is the comment it answers. TikTok can repeat a few comments from one page on the next (we saw it in our checks): de-duplicate by id when you collect a whole thread.
FAQ
How do I scrape TikTok comments with an API?
Call GET /v1/tiktok/posts/{post}/comments and follow pagination.next_cursor while has_more is true.