YepAPI
TikTok API

Comment Replies

Get replies to a specific comment on a TikTok video.

POST/v1/tiktok/comment-replies
$0.01/call

Usage

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

ParameterTypeRequiredDescriptionDefault
comment_idstringYesID of the parent comment
video_idstringYesID of the video containing the comment
cursorstringNoPagination cursor from previous response
countnumberNoNumber of results to return20

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

FieldTypeDescription
okbooleanWhether the request succeeded
data.has_morebooleanWhether more replies are available
data.cursorstringCursor for fetching the next page
data.repliesobject[]Array of reply objects
data.replies[].comment_idstringUnique reply identifier
data.replies[].textstringReply text content
data.replies[].create_timenumberUnix timestamp of when the reply was posted
data.replies[].digg_countnumberNumber of likes on the reply
data.replies[].authorobjectReply author information

Use the cursor value from the response to paginate through replies.

On this page