> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# TikTok Comment Replies

Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.

`GET|POST https://api.scrapier.io/api/v2/tiktok-comment-replies/` · 1 credit per successful call · Cursor-paginated · Long-running

## Overview

Call `GET /api/v2/tiktok-comment-replies/` with `urls`. The results are in `data.comments`; send `data.next_cursor` back as `cursor` to get the next page. 11 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/tiktok-comment-replies/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "urls=https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/tiktok-comment-replies/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"urls": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["comments"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `urls` | string | yes | e.g. `https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851` | TikTok video URL (/video/ or /photo/), vm./vt./tiktok.com/t/ short link or bare 19-digit video id. One video per call; required on the first call, ignored when `cursor` is supplied. |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `comments_per_post` | integer | no | `100` | Top-level comments to walk over the whole cursor chain, most relevant first (default 100; 0 = all). Locked in cursor. |
| `max_replies_per_comment` | integer | no | `1` | Replies per top-level comment (default 1; 0 = the whole thread — long threads are then split across calls by their native reply cursor). Locked in cursor. |
| `include_top_comments` | boolean | no | `true` | Emit the top-level comment row before its replies. Locked in cursor. |
| `hosts` | string | no | `us` | Datacenter walked by this cursor chain: us.tiktok.com (default) or www.tiktok.com — they order top-level comments differently, so each cursor chain walks ONE host. One of: `us`, `www`. Locked in cursor. |
| `trim` | boolean | no | `false` | true drops the heavy `native` object and detailed_mentions from every row. Locked in cursor. |
| `label` | string | no | — | Comma list of judge presets to add (sentiment, question, purchase_intent, complaint run by default; spam, toxic, low_quality, injection on request; "none" = off). Locked in cursor. |
| `judgments` | string | no | `on` | off = no computed.labels. One of: `on`, `off`. Locked in cursor. |
| `drop` | string | no | — | Comma subset of spam,low_quality dropped at p >= 0.8 (preset must be in `label`). Locked in cursor. |
| `evidence` | boolean | no | `false` | 1 adds computed.labels_evidence for the presets named in `label`. Locked in cursor. |
| `estimate` | boolean | no | `false` | 1 = one `type: estimate` row, no fetch, next_cursor null. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.comments`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "urls": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
    "video_id": "7229884545150061851",
    "video_web_url": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
    "host": "us",
    "page": 1,
    "page_size": 17,
    "comments": [
      {
        "input_url": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
        "video_id": "7229884545150061851",
        "position": 1,
        "type": "comment",
        "video_web_url": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
        "input": "gordonramsayofficial",
        "cid": "7232628789942174466",
        "create_time": 1683977626,
        "create_time_iso": "2023-05-13T11:33:46.000Z",
        "text": "any butter 🧈 left ???",
        "digg_count": 2615,
        "liked_by_author": false,
        "pinned_by_author": false,
        "replies_to_id": null,
        "reply_comment_total": 4,
        "uid": "207553808304951296",
        "unique_id": "ryanparsons9",
        "avatar_thumbnail": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/7334331588898979858~tplv-tiktokx-cropcenter:100:100.jpg?...",
        "mentions": [],
        "detailed_mentions": [],
        "nickname": "Ryan Parsons",
        "sec_uid": "MS4wLjABAAAAYrW8k_5EJfmut0B_Hna4DXqHkiKRrO18DGDaPVyNGiOxqMW1tak67FP-7zdWSOBs",
        "comment_url": "https://m.tiktok.com/v/7229884545150061851.html?...&share_comment_id=7232628789942174466&...",
        "comment_language": "en",
        "is_high_purchase_intent": false,
        "parent_comment_id": null,
        "is_top_level": true,
        "reply_to_reply_id": null,
        "thread_has_more": false,
        "user_verified": false,
        "aweme_id": "7229884545150061851",
        "native": {
          "cid": "7232628789942174466",
          "text": "any butter 🧈 left ???",
          "digg_count": 2615,
          "reply_id": "0",
          "reply_comment_total": 4,
          "user": {
            "uid": "207553808304951296",
            "unique_id": "ryanparsons9",
            "nickname": "Ryan Parsons"
          },
          "...": "every other native TikTok comment field"
        },
        "computed": {
          "labels": {
            "sentiment": 0.5,
            "question": 0.995,
            "purchase_intent": 0.2315,
            "complaint": 0.2142
          }
        },
        "scraped_at": "2026-09-20T09:56:04.512Z"
      },
      {
        "input_url": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
        "video_id": "7229884545150061851",
        "position": 2,
        "type": "reply",
        "video_web_url": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851",
        "input": "gordonramsayofficial",
        "cid": "7241426078106895150",
        "create_time": 1686025914,
        "create_time_iso": "2023-06-06T04:31:54.000Z",
        "text": "You would have chopped me for that high heat and burnt burger 🍔 look at the onions there on fire 🔥 lol",
        "digg_count": 16,
        "liked_by_author": false,
        "pinned_by_author": false,
        "replies_to_id": "7232628789942174466",
        "reply_comment_total": 0,
        "uid": "6838683227356890117",
        "unique_id": "t_hill559",
        "avatar_thumbnail": "https://p16-common-sign.tiktokcdn-us.com/...",
        "mentions": [],
        "detailed_mentions": [],
        "nickname": "T-Hill",
        "sec_uid": "MS4wLjABAAAAD0x7JDGQnc8tDkiZXRSujh__ina3KHeAppjFZRrHfdBukfNov8CO9sFPlsIc-SQQ",
        "comment_url": "https://m.tiktok.com/v/7229884545150061851.html?...&share_comment_id=7241426078106895150&...",
        "comment_language": "en",
        "is_high_purchase_intent": false,
        "parent_comment_id": "7232628789942174466",
        "is_top_level": false,
        "reply_to_reply_id": null,
        "thread_has_more": false,
        "user_verified": false,
        "aweme_id": "7229884545150061851",
        "native": {
          "cid": "7241426078106895150",
          "reply_id": "7232628789942174466",
          "reply_to_reply_id": "0",
          "digg_count": 16,
          "user": {
            "uid": "6838683227356890117",
            "unique_id": "t_hill559",
            "nickname": "T-Hill"
          },
          "...": "every other native TikTok comment field"
        },
        "computed": {
          "labels": {
            "sentiment": 0.8581,
            "question": 0.3775,
            "purchase_intent": 0.2315,
            "complaint": 0.2142
          }
        },
        "scraped_at": "2026-09-20T09:56:04.512Z"
      },
      "... 15 more rows in the same shape (next top-level comment, its reply, ...)"
    ],
    "top_level_consumed": 13,
    "in_thread": null,
    "pending_threads": 0,
    "warnings": [],
    "next_cursor": "eyJ2IjoiNzIyOTg4NDU0NTE1MDA2MTg1MSIsInUiOiJodHRwczovL3d3dy50aWt0b2suY29tL0Bnb3Jkb25yYW1zYXlvZmZpY2lhbC92aWRlby83MjI5ODg0NTQ1MTUwMDYxODUxIiwidnUiOi4uLg"
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `urls` | string | `https://www.tiktok.com/@gordonramsayofficial/…` |  |
| `video_id` | string | `7229884545150061851` |  |
| `video_web_url` | string | `https://www.tiktok.com/@gordonramsayofficial/…` |  |
| `host` | string | `us` |  |
| `page` | integer | `1` |  |
| `page_size` | integer | `17` |  |
| `comments` | array | `[3 items]` | The results. |
| `top_level_consumed` | integer | `13` |  |
| `in_thread` | null | `null` |  |
| `pending_threads` | integer | `0` |  |
| `warnings` | array | `[]` |  |
| `next_cursor` | string | `eyJ2IjoiNzIyOTg4NDU0NTE1MDA2MTg1MSIsInUiOiJod…` | Pass back as `cursor` for the next page. `null` on the last page. |
| `comments[].input_url` | string | `https://www.tiktok.com/@gordonramsayofficial/…` |  |
| `comments[].video_id` | string | `7229884545150061851` |  |
| `comments[].position` | integer | `1` |  |
| `comments[].type` | string | `comment` |  |
| `comments[].video_web_url` | string | `https://www.tiktok.com/@gordonramsayofficial/…` |  |
| `comments[].input` | string | `gordonramsayofficial` |  |
| `comments[].cid` | string | `7232628789942174466` |  |
| `comments[].create_time` | integer | `1683977626` |  |
| `comments[].create_time_iso` | string | `2023-05-13T11:33:46.000Z` |  |
| `comments[].text` | string | `any butter 🧈 left ???` |  |
| `comments[].digg_count` | integer | `2615` |  |
| `comments[].liked_by_author` | boolean | `false` |  |
| `comments[].pinned_by_author` | boolean | `false` |  |
| `comments[].replies_to_id` | null | `null` |  |
| `comments[].reply_comment_total` | integer | `4` |  |
| `comments[].uid` | string | `207553808304951296` |  |
| `comments[].unique_id` | string | `ryanparsons9` |  |
| `comments[].avatar_thumbnail` | string | `https://p16-common-sign.tiktokcdn-us.com/tos-…` |  |
| `comments[].mentions` | array | `[]` |  |
| `comments[].detailed_mentions` | array | `[]` |  |
| `comments[].nickname` | string | `Ryan Parsons` |  |
| `comments[].sec_uid` | string | `MS4wLjABAAAAYrW8k_5EJfmut0B_Hna4DXqHkiKRrO18D…` |  |
| `comments[].comment_url` | string | `https://m.tiktok.com/v/7229884545150061851.ht…` |  |
| `comments[].comment_language` | string | `en` |  |
| `comments[].is_high_purchase_intent` | boolean | `false` |  |
| `comments[].parent_comment_id` | null | `null` |  |
| `comments[].is_top_level` | boolean | `true` |  |
| `comments[].reply_to_reply_id` | null | `null` |  |
| `comments[].thread_has_more` | boolean | `false` |  |
| `comments[].user_verified` | boolean | `false` |  |
| `comments[].aweme_id` | string | `7229884545150061851` |  |
| `comments[].native` | object | `{…}` |  |
| `comments[].computed` | object | `{…}` |  |
| `comments[].scraped_at` | string | `2026-09-20T09:56:04.512Z` |  |

## Pagination

Pass `data.next_cursor` back as `cursor` until it is `null`. Required inputs are ignored once a cursor is sent. Each page is one billed call.

```python
import requests

URL = "https://api.scrapier.io/api/v2/tiktok-comment-replies/"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
params = {"urls": "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851"}
items = []

for _ in range(10):  # each page is one billed call
    resp = requests.get(URL, headers=HEADERS, params=params, timeout=210)
    resp.raise_for_status()
    data = resp.json()["data"]
    items.extend(data.get("comments") or [])
    if not data.get("next_cursor"):  # None = last page
        break
    params = {"cursor": data["next_cursor"]}
```

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Locked into the cursor: `comments_per_post`, `max_replies_per_comment`, `include_top_comments`, `hosts`, `trim`, `label`, `judgments`, `drop`, `evidence`. Set them on the first call; later pages reuse them.
- This endpoint can take several minutes. Set your client timeout to at least 210 seconds.

## Related

- [TikTok Ad Library Leads](https://docs.scrapier.io/api-reference/tiktok/tiktok-ad-library-leads.md): Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.
- [TikTok Ad Library](https://docs.scrapier.io/api-reference/tiktok/tiktok-ads.md): Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [TikTok Ads Top](https://docs.scrapier.io/api-reference/tiktok/tiktok-ads-top.md): Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
- [TikTok Collection Videos](https://docs.scrapier.io/api-reference/tiktok/tiktok-collection-videos.md): Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.
