TikTok Comment Replies
Structured TikTok data: send urls. Cursor-paginated, 1 credit per successful call.
Overview
Section titled β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
Section titled βRequestβ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 210const params = new URLSearchParams({ urls: "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851" });
const res = await fetch(`https://api.scrapier.io/api/v2/tiktok-comment-replies/?${params}`, { headers: { "X-API-Key": "YOUR_API_KEY" }, signal: AbortSignal.timeout(210_000),});const body = await res.json();if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
console.log(body.data.comments);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"])curl -X POST "https://api.scrapier.io/api/v2/tiktok-comment-replies/" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"urls":"https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851"}' \ --max-time 210Parameters
Section titled βParametersβ| Name | Type | Required | Default | Description |
|---|---|---|---|---|
X-API-Key header | string | yes | β | Your API key from the dashboard. |
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. uswww 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. onoff 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. |
Advanced
| Name | Type | Default | Description |
|---|---|---|---|
use_proxy | boolean | true | Route the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise. |
raw_data | boolean | 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
Section titled βResponseβ{ "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" }}Bad input. The exact message varies by endpoint.
{ "success": false, "error": "β¦"}Balance below the endpointβs price.
{ "error": "Insufficient credits. Buy more to scrape more.", "balance": 1, "required": 2}Invalid or unknown API key.
{ "detail": "Authentication service unavailable or invalid API key."}Throttled β wait for Retry-After.
{ "detail": "Request was throttled. Expected available in N seconds."}Sample from the live catalog; arrays trimmed to 3 items. Results are in data.comments.
Response fields
Section titled β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
Section titled β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. More in Pagination.
const url = "https://api.scrapier.io/api/v2/tiktok-comment-replies/";let params = { urls: "https://www.tiktok.com/@gordonramsayofficial/video/7229884545150061851" };const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call const res = await fetch(`${url}?${new URLSearchParams(params)}`, { headers: { "X-API-Key": "YOUR_API_KEY" }, signal: AbortSignal.timeout(210_000), }); const body = await res.json(); if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`); const data = body.data; items.push(...(data.comments ?? [])); if (!data.next_cursor) break; // null = last page params = { cursor: data.next_cursor };}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"]}Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.
| Status | Meaning | Retry? | Charged? |
|---|---|---|---|
400 | Bad or missing input. | No β fix the params | No |
401 / 403 | Missing, invalid or revoked API key. | No β fix the key | No |
402 | Out of credits (body has balance). | No β top up | No |
404 | Unknown endpoint slug. | No β check the slug | No |
429 / 503 | Busy or throttled. | Yes β after Retry-After | No |
5xx | Target site or upstream failure, or timeout. | Yes β with backoff | No |
- 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
Section titled βRelatedβ- TikTok Ad Library Leads β Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.
- TikTok Ad Library β Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call. - TikTok Ads Top β Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
- TikTok Collection Videos β Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call.