Skip to content

TikTok APIs - Comment Replies (V1)

prod-global
GET
/api/tiktok/get-post-sub-comment/v1

Retrieve a list of replies under a specific TikTok comment by comment ID. The API returns detailed information for each reply, including reply ID, user information, text content, like count, and publish time.

Typical use cases:

  • Understanding detailed user interactions and threaded discussions.
  • Identifying influencers or active participants within a comment section.
  • Tracking sentiment propagation within comment threads.

Parameters

NameInTypeRequiredDescription
tokenquerystringYesSecurity token for API access.
awemeIdquerystringYesThe unique ID of the TikTok post.
commentIdquerystringYesThe unique ID of the comment to retrieve replies for.
cursorquerystringNoPagination cursor. Start with '0'.

Code Samples

💡 Environment Note

Default samples use https://api.justoneapi.com (prod-global). For users in Mainland China, it is recommended to replace it with http://47.117.133.51:30015 (prod-cn) for better performance. See Environment Guide.

bash
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
curl -X GET "https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE"
text
I want to use the "Comment Replies (V1)" API from Just One API.
API Endpoint: https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1
HTTP Method: GET
Authentication: Append "?token=YOUR_API_KEY" to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/tiktok-apis/comment-replies-v1-en.json

Parameters:
- token (query): Security token for API access. (Required)
- awemeId (query): The unique ID of the TikTok post. (Required)
- commentId (query): The unique ID of the comment to retrieve replies for. (Required)
- cursor (query): Pagination cursor. Start with '0'.

Return format: JSON

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set request timeout to at least 60 seconds.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance

Please help me write a script in my preferred programming language to call this API and handle the response.
python
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import requests

url = "https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE"
response = requests.get(url)
print(response.json())
js
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
const response = await fetch("https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE", {
  method: "GET"
});
const data = await response.json();
console.log(data);
java
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE"))
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
go
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	client := &http.Client{}
	url := "https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
php
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
curl_close($ch);
echo $response;

Responses

json
{
  "code": 0,
  "data": {
    "comments": [
      {
        "aweme_id": "7304809083817774382",
        "cid": "7304924071095059206",
        "collect_stat": 0,
        "comment_language": "en",
        "comment_post_item_ids": null,
        "create_time": 1700810198,
        "digg_count": 90,
        "fold_status": 0,
        "image_list": null,
        "is_author_digged": false,
        "is_comment_translatable": true,
        "is_high_purchase_intent": false,
        "label_list": null,
        "no_show": false,
        "reply_comment": null,
        "reply_id": "7304877760886588191",
        "reply_to_reply_id": "0",
        "share_info": {
          "acl": {
            "code": 0,
            "extra": "{}"
          },
          "desc": "the gr0_0viest’s comment: what does this have to do with Swift? I ask bc she's so relevant and I'm s...",
          "title": "WHAT'S HIS NAME??? 😭   I can't stop crocheting unexpected things & like I really should have made at...",
          "url": "https://www.tiktok.com/@demlia/video/7304809083817774382?_d=edi1489ika8357&_r=1&comment_author_id=69..."
        },
        "status": 1,
        "stick_position": 0,
        "text": "what does this have to do with Swift? I ask bc she's so relevant and I'm so out of touch but loved m...",
        "text_extra": [],
        "thread_has_more": false,
        "thread_id": 1,
        "trans_btn_style": 0,
        "user": {
          "accept_private_policy": false,
          "account_labels": null,
          "account_region": "",
          "ad_cover_url": null,
          "advance_feature_item_order": null,
          "advanced_feature_info": null,
          "authority_status": 0,
          "avatar_thumb": {
            "height": 720,
            "uri": "tos-maliva-avt-0068/7b02284c40400994703b71034aaa3bdd",
            "url_list": [
              "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7b02284c40400994703b71034aaa3bdd~tplv-t..."
            ],
            "url_prefix": null,
            "width": 720
          },
          "avatar_uri": "tos-maliva-avt-0068/7b02284c40400994703b71034aaa3bdd",
          "aweme_count": 0,
          "bind_phone": "",
          "bold_fields": null,
          "can_message_follow_status_list": null,
          "can_set_geofencing": null,
          "cha_list": null,
          "comment_filter_status": 0,
          "comment_setting": 0,
          "commerce_user_level": 0,
          "cover_url": [],
          "create_time": 0,
          "custom_verify": "",
          "cv_level": "",
          "download_prompt_ts": 0,
          "download_setting": 3,
          "duet_setting": 3,
          "enabled_filter_all_comments": false,
          "enterprise_verify_reason": "",
          "events": null,
          "fake_data_info": {},
          "favoriting_count": 0,
          "follow_status": 0,
          "follower_count": 0,
          "follower_status": 0,
          "followers_detail": null,
          "following_count": 0,
          "friends_status": 0,
          "geofencing": null,
          "has_email": false,
          "has_insights": false,
          "has_orders": false,
          "hide_search": false,
          "homepage_bottom_toast": null,
          "is_ad_fake": false,
          "is_block": false,
          "is_discipline_member": false,
          "is_mute": 0,
          "is_mute_lives": 0,
          "is_mute_non_story_post": 0,
          "is_mute_story": 0,
          "is_phone_binded": false,
          "is_star": false,
          "item_list": null,
          "language": "en",
          "live_agreement": 0,
          "live_commerce": false,
          "live_verify": 0,
          "matched_friend_available": false,
          "mention_status": 1,
          "mutual_relation_avatars": null,
          "need_points": null,
          "need_recommend": 0,
          "nickname": "the gr0_0viest",
          "platform_sync_info": null,
          "predicted_age_group": "-1",
          "prevent_download": false,
          "react_setting": 3,
          "region": "CA",
          "relative_users": null,
          "reply_with_video_flag": 4,
          "room_data": "",
          "search_highlight": null,
          "sec_uid": "MS4wLjABAAAAUIDxtyu1ZA1g2QVsOFL0unAZtwuYwUO6ZHaTgXk48ilF7dmmqL2PPVazUqxKk7X4",
          "secret": 1,
          "shield_comment_notice": 0,
          "shield_digg_notice": 0,
          "shield_edit_field_info": null,
          "shield_follow_notice": 0,
          "short_id": "0",
          "show_image_bubble": false,
          "signature": "",
          "special_account": {
            "special_account_list": null
          },
          "special_lock": 1,
          "status": 1,
          "stitch_setting": 3,
          "total_favorited": 0,
          "type_label": null,
          "uid": "6925718539328766981",
          "unique_id": "gr0_0vy",
          "unique_id_modify_time": 1773065648,
          "user_canceled": false,
          "user_mode": 1,
          "user_period": 0,
          "user_profile_guide": null,
          "user_rate": 1,
          "user_spark_info": {},
          "user_tags": null,
          "verification_type": 0,
          "verify_info": "",
          "video_icon": {
            "height": 720,
            "uri": "",
            "url_list": [],
            "url_prefix": null,
            "width": 720
          },
          "white_cover_url": null,
          "with_commerce_entry": false,
          "with_shop_entry": false
        },
        "user_buried": false,
        "user_digged": 0
      }
    ],
    "cursor": 10,
    "extra": {
      "fatal_item_ids": [],
      "logid": "2026030914140885E6646CE3B3849DCB48",
      "now": 1773065648000
    },
    "has_more": 0,
    "log_pb": {
      "impr_id": "2026030914140885E6646CE3B3849DCB48"
    },
    "status_code": 0,
    "status_msg": "",
    "total": 10
  }
}

💡 Note: For list data, the example shows only 1-2 items for simplicity. The actual count depends on the API response.