Collect the comment thread under a TikTok video. Each comment arrives with its text, comment ID, author, like count and creation time, and comments that carry replies expose them so you know where it is worth drilling deeper. Count sets how many comments come back per call and cursor advances through the thread, keeping heavily commented videos readable in batches.
curl -X GET "https://api.primeapi.co/post-comments?postId=6574657885953933314&count=50&cursor=0" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/post-comments?postId=6574657885953933314&count=50&cursor=0"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
{
"alias_comment_deleted": false,
"comments": [
{
"author_pin": false,
"aweme_id": "6574657885953933314",
"cid": "6927095455059050498",
"collect_stat": 0,
"comment_language": "un",
"comment_post_item_ids": null,
"comment_type": 2,
"create_time": 1612840098,
"digg_count": 13,
"forbid_reply_with_video": false,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": false,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_id": "0",
"reply_to_reply_id": "0",
"share_info": {
"acl": {
"code": 1,
"extra": "{\"is_share_handler_failed\":\"1\"}"
},
"desc": "",
"title": "",
"url": ""
},
"sort_tags": "{}",
"status": 1,
"stick_position": 0,
"text": "ch\u1ecb cao m bn v\u1eady \u1ea1? d\u00e1ng ch\u1ecb \u0111\u1eb9p l\u1eafm lu\u00f4n \u00ed mong ch\u1ecb s\u1edbm ra video v\u1ec1 Q&A\u2764",
"text_extra": [],
"trans_btn_style": 0,
"user": {
"account_labels": null,
"ad_cover_url": null,
"advance_feature_item_order": null,
"advanced_feature_info": null,
"avatar_thumb": {
"uri": "tos-maliva-avt-0068/932a4b2dbb44fd8317107961ff50d719",
"url_list": [
"https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/932a4b2dbb44fd8317107961ff50d719~c5_100x100.jpg?lk3s=30310797&nonce=23593&refresh_token=adbde5e7a4cac527ca94d1a8785040f8&x-expires=1737190800&x-signature=BQIcZBPQsBhkLp%2BU397qKICTT%2Bk%3D&shp=30310797&shcp=-",
"https://p77-sign-va.tiktokcdn.com/tos-maliva-avt-0068/932a4b2dbb44fd8317107961ff50d719~c5_100x100.jpg?lk3s=30310797&nonce=48826&refresh_token=375f85444eed4f66e487b7e754559549&x-expires=1737190800&x-signature=34wYcERGciWHzRD4XVgU3ug3DOA%3D&shp=30310797&shcp=-",
... (truncated)