TikTok Post Comments API
Scrape TikTok Post Comments data with one API call. Returns a list of comments on a specific TikTok video. Each comment includes the author username, comment text, like count, reply count, and creation timestamp.
Last updated October 2026Maintained by the SocialCrawl team
Returns a page of comments on one TikTok video, each with the commenter's username, comment text, like count, reply count, and timestamp.
Use it to read a video's comment section; to expand one thread, take a comment's id and call video/comment/replies.
Try the TikTok Post Comments API
See real data before writing a single line
Searching 68 platforms in parallel
What can you do with the Post Comments API?
The Post Comments endpoint gives you structured TikTok data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://www.socialcrawl.dev/v1/tiktok/post/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40stoolpresidente%2Fvideo%2F7623818255903329566&label=purchase_intent&trim=true"import requests
response = requests.get(
"https://www.socialcrawl.dev/v1/tiktok/post/comments",
params={
'url': 'https://www.tiktok.com/@stoolpresidente/video/7623818255903329566',
'label': 'purchase_intent',
'trim': 'true',
},
headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()const response = await fetch(
"https://www.socialcrawl.dev/v1/tiktok/post/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40stoolpresidente%2Fvideo%2F7623818255903329566&label=purchase_intent&trim=true",
{
headers: { "x-api-key": "YOUR_API_KEY" },
},
);
const data = await response.json();Parameters worth sending
label=purchase_intentMarks each comment that shows buying intent, at no extra credits; sentiment, question and complaint are free too.trim=trueSame price, lighter payload: drops the bulky raw fields.
Parameters
| Parameter | Required | Description |
|---|---|---|
| url | Yes | Full URL of the TikTok video to fetch comments for |
| cursor | No | Cursor to get more comments. Get 'cursor' from previous response. |
| trim | No | Accepted for compatibility; the response is already the canonical shape, so this flag has no effect. |
| sort | No | Optional. Without it, comments come in TikTok's own order (a relevance ranking, not newest first). `recent` returns them newest first by published_at; `top` returns them by like count. TikTok has no newest-first order of its own, so `recent` sorts the comments that were read: set scan_pages to read more of the thread. data.scan.complete is true only when the whole thread was read. (top | recent) |
| scan_pages | No | Optional, 1 to 3, default 1. Reads that many pages, drops comments repeated across pages, and returns them all in the `sort` order (TikTok's own order when sort is absent). Costs 1 credit for each page that added comments; a page of repeats is not billed. data.scan reports the pages read and billed and whether the thread ended. |
| label | No | Optional CSV of SocialCrawl labels to add to every comment: sentiment, spam, question, purchase_intent, complaint, toxic, low_quality, injection. Without this param every page already carries sentiment, question, purchase_intent and complaint, free; label= adds the labels you name to them (the defaults keep running). Each comment gains computed.labels with probabilities (0 to 1), so you choose the cut-off; a comment that could not be judged carries labels: null. sentiment, question, purchase_intent and complaint are free when asked for too; spam, toxic, low_quality and injection add 1 credit per started 25 newly judged comments (comments already labelled for anyone are free, and so is a cached page). injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. judgments=off (or label=none) turns the default labels off. data.labels reports what was judged and billed. |
| exclude | No | Optional CSV (spam, low_quality), only with the same preset in label. Drops comments whose probability is 0.8 or higher and lists their ids in data.labels.dropped_ids. A comment that could not be judged is never dropped. |
| judgments | No | Optional, on (the default) or off. By default every row gains free SocialCrawl judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same. (on | off) |
| dry_run | No | Optional. When 1, return a cost preview for this labelled or relevance-filtered request without fetching the page or judging any row. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged. (1) |
| label_evidence | No | Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence.<preset> = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it. (1) |
| fit | No | Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache at no extra charge. Without this param the page is unchanged. (goal) |
| goal | No | Required by fit=goal. What you are trying to do, in your own words, up to 300 characters. |
| fit_tokens | No | Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it. |
| since | No | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off the page, and the page that reaches one ends the walk: `next_cursor` is not returned and `pagination.stopped_at` is `since`. Sending it sets the newest-first sort shown in this endpoint's sort parameter (any other sort value is a free 400). The page still costs what a page costs, so you pay for the pages you walk and no more. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`. |
| until | No | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. |
What does the TikTok Post Comments API return?
This example shows the endpoint's response shape and fields. Values are illustrative; this is not a live capture.
Example response
{
"success": true,
"platform": "tiktok",
"endpoint": "/v1/tiktok/post/comments",
"data": {
"items": [
{
"comment": {
"id": "7623869779602457374",
"url": null,
"parent_id": null,
"post_id": "7623818255903329566",
"text": "Sample comment text (redacted).",
"author": {
"username": "user_d39d34",
"display_name": "user_bea79b",
"avatar_url": "https://example.com/avatars/user_8300fa.png",
"verified": false
},
"engagement": {
"likes": 13659,
"replies": 25
},
"flags": {
"pinned": false,
"deleted": false
},
"published_at": "2026-04-01T19:08:53.000Z",
"ext": {
"published_at_epoch": 1775070533
}
},
"computed": {
"language": "en"
}
},
{
"comment": {
"id": "7623876579169272607",
"url": null,
"parent_id": null,
"post_id": "7623818255903329566",
"text": "Sample comment text (redacted).",
"author": {
"username": "user_ba3f08",
"display_name": "user_574add",
"avatar_url": "https://example.com/avatars/user_376a05.png",
"verified": false
},
"engagement": {
"likes": 4229,
"replies": 45
},
"flags": {
"pinned": false,
"deleted": false
},
"published_at": "2026-04-01T19:35:29.000Z",
"ext": {
"published_at_epoch": 1775072129
}
},
"computed": {
"language": "en"
}
}
],
"next_cursor": "20",
"total": 2200,
"dropped": 0
},
"credits_used": 1,
"credits_remaining": 9995,
"request_id": "req-a1b2c3d4e5f6",
"cached": false,
"pagination": {
"next_cursor": "sc.eyJ2IjoyLCJjIjoiMjAiLCJwIjoiY3Vyc29yIn0",
"has_more": true,
"page_size": 20
}
}Illustrative fixture for the documented response shape. Values are examples, not a production capture.
How does the TikTok Post Comments API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 68 platforms covering 10B+ monthly active users.
One schema, every platform
Query 68 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I scrape TikTok comments with an API?
What fields does each TikTok comment include?
How do I get all comments on a TikTok video?
Can I get replies to a specific TikTok comment?
How much does the TikTok Comments API cost?
Ask AI about SocialCrawl
Ready to scrape TikTok Post Comments data?
Get your API key and start pulling TikTok data in under 60 seconds.
