API · TikTok
GET /tiktok/videos/{id}/comments/{comment_id}
One TikTok comment by id, with its current likes and replies.
| |
|---|
| Request | GET /v1/tiktok/videos/{id}/comments/{comment_id} |
| Operation id | tiktok.comment.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One TikTok comment by id, with its current likes and replies.
| Name | Type | Required | Description |
|---|
id | string | yes | A video (or photo post) id, or its URL (www.tiktok.com/@user/video/<id>). Example: 7707446852798549279. |
comment_id | string | yes | The comment’s cid. Example: 7707556469470167839. |
| Name | Type | Required | Description |
|---|
parent_comment_id | string | no | For a reply: the cid of the comment it replies to. |
| Status | Meaning | Schema |
|---|
200 | The comment. | TikTokCommentResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
comment | TikTokComment | A comment, in the shape of TikTok’s comment API. |
pagesScanned | number | |
Errors use one shape everywhere; see Errors for every code and what to do.