Tutorial · TikTok · cURL, Python, Node.js, PHP, Go, Ruby

Get the replies to a TikTok comment with the API

Replies to a TikTok comment. Complete code for GET /v1/tiktok/comments/{comment}/replies in six languages and both official SDKs, each tested against the documented response.

Short answer. GET /v1/tiktok/comments/{comment}/replies?post= returns the replies to one comment, about 3 a page. Pass the comment id in the path and the post id or link as post.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • Full-thread sentiment for social listening: the conversation under a comment, not just the comment.
  • Community and support tools: find where a creator or brand answered its viewers.
  • LLM summaries of a discussion that need the back-and-forth.

The request

GET https://api.handlehaul.com/v1/tiktok/comments/{comment}/replies with your key in the X-Api-Key header. Replies to a TikTok comment. Replies to a TikTok comment. 1 credit a page. Page size about 3. Docs: https://api.handlehaul.com/docs/tiktok-comments-api

Parameters for Replies to a TikTok comment
ParameterInDescription
comment requiredpathNumeric comment id.
post requiredqueryThe post the comment belongs to (post id or URL).
cursorquerynext_cursor from the previous page (opaque, sealed).
freshquerytrue skips the cache (full price).
rawquerytrue returns TikTok's raw JSON in data instead of our fields (same price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else, and follows pagination.next_cursor for up to 3 pages. The SDK versions do the retries for you.

tiktok-comment-replies.sh

# Replies to a TikTok comment. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
# Next page: add --data-urlencode "cursor=<pagination.next_cursor>" (stop when it is null).
curl -sS --fail --retry 3 -G "https://api.handlehaul.com/v1/tiktok/comments/7300000000000010123/replies" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY" \
  --data-urlencode "post=7300000000000000123"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

A list in data, with pagination.next_cursor and has_more, and meta with what the call cost. Example values; replies use the tiktokcomment shape; parent_id is the comment they answer, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": [
    {
      "id": "7300000000000010123",
      "text": "Sample comment 1",
      "created_at": "2026-11-30T00:53:20.000Z",
      "like_count": 50,
      "reply_count": 0,
      "author": {
        "id": "6801485827156468097",
        "sec_uid": "MS4wLjABAAAAv9cU4OWfsG8W8GpH25_ry1cATH53sVTiBeFOsovGJRQ",
        "handle": "aurora_cedar12",
        "nickname": "Aurora Cedar",
        "avatar_url": "https://p16-sign.tiktokcdn-us.com/…/avatar/6801485827156468097~c5_100x100.jpeg",
        "is_verified": false,
        "is_private": false,
        "url": "https://www.tiktok.com/@aurora_cedar12",
        "counts": null
      },
      "post_id": "7300000000000000123",
      "parent_id": "7300000000000000777"
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false,
    "page_size": 1
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per page. At $1.40 to $0.80 per 1,000 calls; the samples stop after 3 pages, so one run costs 3 credits at most. Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • Cache. Identical calls that arrive while an answer is cached are served from it. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • The post query parameter is required: send the post the comment belongs to, as an id or link.
  • Only call it when the comment's reply_count is above zero, to save calls.
  • Pages are small, about 3 replies each, so a long thread takes many calls. Follow next_cursor while has_more is true.

Next steps

TikTok comment replies API: questions

Which comment id do I pass to get TikTok replies?
The id of a comment from /v1/tiktok/posts/{post}/comments, plus that same post as ?post=.
How do I tell a TikTok reply from a top-level comment?
On a reply, parent_id is the id of the comment it answers. Top-level comments have parent_id: null.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.