TikTok comment replies API
TikTok comment replies, as JSON, with id, url, post_id, author, text and more.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
You send comment_id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/tiktok/video/comment/replies" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.tiktok.com/@khaby.lame/video/7137423965982592302' \
--data-urlencode 'comment_id=7137510823549272878'import os
import requests
params = {
"url": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",
"comment_id": "7137510823549272878",
}
res = requests.get(
"https://api.socialscrape.io/v1/tiktok/video/comment/replies",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/tiktok/video/comment/replies");
url.search = new URLSearchParams({
url: "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",
comment_id: "7137510823549272878",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape TikTok comment replies",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/tiktok/video/comment/replies",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302"
},
{
"name": "comment_id",
"value": "7137510823549272878"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Video URL (www.tiktok.com/@user/video/..., vm.tiktok.com/..., vt.tiktok.com/...). |
id | string | one of | Numeric video id. Also accepted as aweme_id, video_id. |
comment_id | string | yes | TikTok comment id (the `cid` from the comments list). Also accepted as commentId, cid. |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_402b275b29c787f9a06f164c",
"data": {
"object": "list",
"items": [
{
"object": "comment",
"platform": "tiktok",
"id": "7137827034517406506",
"url": null,
"post_id": "7137423965982592302",
"parent_id": "7137510823549272878",
"author": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": false
},
"text": "No",
"published_at": "2022-08-31T00:14:37Z",
"stats": {
"likes": 16,
"replies": null,
"dislikes": null
},
"is_pinned": null,
"is_by_creator": null,
"extra": {
"language": "en",
"liked_by_creator": false
}
},
{
"object": "comment",
"platform": "tiktok",
"id": "7137949642306994946",
"url": null,
"post_id": "7137423965982592302",
"parent_id": "7137510823549272878",
"author": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": false
},
"text": "Chandon Barker",
"published_at": "2022-08-31T08:11:28Z",
"stats": {
"likes": 6,
"replies": null,
"dislikes": null
},
"is_pinned": null,
"is_by_creator": null,
"extra": {
"language": "en",
"liked_by_creator": false
}
}
],
"cursor": "c20",
"has_more": true,
"parent": null
},
"cursor": "c20",
"has_more": true
}Fields
A page of results. Each entry in items is a Comment. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "comment" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
post_id | string or null | ||
parent_id | string or null | set on replies | |
author | Author or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
stats | CommentStats | ||
is_pinned | boolean or null | ||
is_by_creator | boolean or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.tiktok.video_comment_replies(...) and the TypeScript client client.tiktok.videoCommentReplies(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.