App Logo
tiktok.com

Reply to a TikTok comment

Publish a reply to a specific comment on a TikTok video, given the video, the comment's id and the text to post. Use this instead of the post-comment script when the reply must sit under an existing comment rather than at the top level. Before posting it checks whether you already left the same reply under that comment, so re-running does not create duplicates, and afterwards it re-reads the comment's replies to confirm the reply is really there and reports which account it was published from. Posting is public and immediate — show the exact text to the person asking and get their confirmation before running this. Use the delete-comment script to remove it again.

Input

text required

Reply text to publish. Shown publicly under your account.

video required

Full TikTok video URL or a bare numeric video id (the video the comment belongs to).

commentId required

Id of the comment to reply to, as returned by the list-comments script.

rootCommentId optional

Only needed when replying to a reply rather than to a top-level comment: the id of the top-level comment that starts the thread. TikTok threads every reply under that top comment.

Output

posted required

True when this run published a new reply. False when an identical one was already there.

videoId required
already_present required

True when the same account had already posted this exact reply under this comment, so nothing new was published.

parentCommentId required

The comment the reply was threaded under.

verified_on_page required

True when the reply was found by re-reading the comment's replies, which is retried for a few seconds because that list is eventually consistent. False only when every reply was read without finding it. Null when the reply list was too long to read to the end, so its presence could not be established either way.

text optional
commentId optional

Id of the new reply, usable with the delete-comment script.

createTime optional
account_used optional

Handle the reply was actually published from, read from the signed-in session rather than assumed.

replyToReplyId optional

Set when the reply targets another reply rather than the top-level comment.

parentReplyCount optional

Replies TikTok reports under the parent comment after posting.

Start building not clicking