100 free credits. No credit card required. Get a key

TikTok comment API

One TikTok comment by id, with its current likes and reply count.

GET /v1/tiktok/videos/{id}/comments/{comment_id}2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/videos/7707446852798549279/comments/7707556469470167839",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"comment": {
"cid": "7707556469470167839",
"aweme_id": "7707446852798549279",
"text": "this with broccoli 😻",
"create_time": 1794555420,
"digg_count": 5269,
"reply_comment_total": 6,
"reply_id": "0",
"user": {
"uid": "6925204018239423494",
"unique_id": "neiaiko",
"nickname": "️",
"sec_uid": "MS4wLjABAAAAEo1OPo8CphE2eSfko8lzW0EfSFPmJBGkkYNI7RlwtaKZyZ0_luvXgJmxhYAGrfbM",
"account_labels": null,
"ad_cover_url": null,
"advance_feature_item_order": null,
"advanced_feature_info": null,
"avatar_thumb": {
"uri": "tos-useast8-avt-0068-tx2/ed7196c0669bb6debe0de857aec546ad",
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/ed7196c0669bb6debe0de857aec546ad~tplv-tiktokx-cropcent…",
"https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/ed7196c0669bb6debe0de857aec546ad~tplv-tiktokx-cropcent…",
"… 1 more"
],
"url_prefix": null
},
"bold_fields": null,
"can_message_follow_status_list": null,
"can_set_geofencing": null,
"cha_list": null,
"cover_url": null,
"custom_verify": "",
"enterprise_verify_reason": "",
"events": null,
"followers_detail": null,
"geofencing": null,
"homepage_bottom_toast": null,
"item_list": null,
"mutual_relation_avatars": null,
"need_points": null,
"platform_sync_info": null,
"…": "8 more fields"
},
"comment_language": "en",
"is_author_digged": true,
"author_pin": false,
"allow_download_photo": true,
"collect_stat": 0,
"comment_post_item_ids": null,
"content_type": 1,
"fold_status": -1,
"image_list": null,
"is_comment_translatable": true,
"is_high_purchase_intent": false,
"label_list": [
{
"text": "Liked by creator",
"type": 20
}
],
"no_show": false,
"reply_comment": [
{
"allow_download_photo": true,
"author_pin": false,
"aweme_id": "7707446852798549279",
"cid": "7707639744872497951",
"collect_stat": 0,
"comment_language": "en",
"comment_post_item_ids": null,
"content_type": 1,
"create_time": 1794574801,
"digg_count": 1689,
"fold_status": 0,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": true,
"is_high_purchase_intent": false,
"label_list": [
{
"text": "Creator",
"type": 1
}
],
"label_text": "Creator",
"label_type": 1,
"no_show": false,
"reply_comment": null,
"reply_id": "7707556469470167839",
"reply_to_reply_id": "0",
"seeking_help_model_type": 0,
"service_id": "-1",
"…": "14 more fields"
}
],
"reply_to_reply_id": "0",
"seeking_help_model_type": 0,
"…": "15 more fields"
},
"pagesScanned": 1
}

Parameters

NameTypeDescription
idpath · requiredstringA video (or photo post) id, or its URL (www.tiktok.com/@user/video/<id>). Example: 7707446852798549279.
comment_idpath · requiredstringThe comment’s cid. Example: 7707556469470167839.
parent_comment_idquerystringFor a reply: the cid of the comment it replies to.
Response fields

200 with a TikTokCommentResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).

FieldTypeDescription
commentTikTokCommentA comment, in the shape of TikTok’s comment API.
pagesScannednumber
Status codes
StatusMeaning
200The comment.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account, video, comment, hashtag or sound does not exist on TikTok, or was removed.
429Too many requests. Wait for Retry-After seconds.
503TikTok is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.