TikTok API
Comment Replies
Get replies to a specific comment on a TikTok video.
POST
$0.01/call/v1/tiktok/comment-repliesUsage
const res = await fetch('https://api.yepapi.com/v1/tiktok/comment-replies', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
comment_id: '7356291048572839175',
video_id: '7356291048572839174',
}),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/tiktok/comment-replies \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"comment_id": "7356291048572839175", "video_id": "7356291048572839174"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
comment_id | string | Yes | ID of the parent comment | — |
video_id | string | Yes | ID of the video containing the comment | — |
cursor | string | No | Pagination cursor from previous response | — |
count | number | No | Number of results to return | 20 |
Response
{
"ok": true,
"data": {
"has_more": false,
"cursor": "12",
"replies": [
{
"comment_id": "7356291048572839180",
"text": "Thank you! I used penne",
"create_time": 1712348000,
"digg_count": 230,
"author": {
"unique_id": "chefmaria",
"nickname": "Chef Maria",
"avatar": "https://p16-sign.tiktokcdn.com/..."
}
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.has_more | boolean | Whether more replies are available |
data.cursor | string | Cursor for fetching the next page |
data.replies | object[] | Array of reply objects |
data.replies[].comment_id | string | Unique reply identifier |
data.replies[].text | string | Reply text content |
data.replies[].create_time | number | Unix timestamp of when the reply was posted |
data.replies[].digg_count | number | Number of likes on the reply |
data.replies[].author | object | Reply author information |
Use the cursor value from the response to paginate through replies.