TikTok Comment API
Returns one TikTok comment with its current like count, reply count, pinned flag, author, and timestamp, found by link, by id, or by its text.
20–60 credits, metered · single call · failed calls free · 10 free calls to start
curl "https://api.insightsocial.app/v1/tiktok/comment?comment_url=https%3A%2F%2Fwww.tiktok.com%2F%40mrbeast%2Fvideo%2F7654638524729216287%3Fcomment_id%3D7654640784985211670" \-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
When to use it
Use it to re-check a single known comment without paging the whole section; use post/comments when you want the section itself.
Parameters
Query parameters for GET /v1/tiktok/comment. Send your key in the x-api-key header.
| Name | Required | Description |
|---|---|---|
| comment_url | One of comment_url, post_url | A TikTok comment URL: https://www.tiktok.com/@{handle}/video/{videoId}?comment_id={cid}, the m.tiktok.com/v/{id}.html?...&share_comment_id={cid} share form, or a vm.tiktok.com/{code} / tiktok.com/t/{code} shortlink. The cid/comment_id/share_comment_id query value may be numeric or the base64 form TikTok's share sheet emits (?cid=NzY1...): both are accepted; base64 is decoded automatically. Mutually exclusive with post_url+comment_id. |
| post_url | One of post_url, comment_url | The post URL (https://www.tiktok.com/@{handle}/video/{videoId}). Combine with comment_id, or with author_username/text_contains for a search. |
| comment_id | No | The target comment's numeric id (the cid from the comments endpoint). Requires post_url. Note that TikTok share links carry a base64-encoded cid: pass such a link as comment_url instead (decoded automatically), or base64-decode the value to its digits before passing it here. |
| parent_comment_id | No | The parent comment's numeric id: supply this when the target is a reply so it can be resolved directly via the native replies endpoint. |
| author_username | No | Return up to max comments authored by this username (no comment id needed). Mutually exclusive with text_contains and any comment id. |
| text_contains | No | Return up to max comments whose text contains this snippet (case-insensitive). Mutually exclusive with author_username and any comment id. |
| deep_scan | No | Widen the scan budget for deeply-buried comments (raises the page ceiling and deadline). |
| position_hint | No | Opaque token from a prior lookup's lookup.position_hint. Passing it back probes the comment's last-known location first, making a re-check of an already-found comment cheap. |
| max | No | For author_username/text_contains search: max matches to return (1-20, default 5). |
Response fields
The same unified schema every platform returns, so code written for TikTok works on the other eight. A field the platform did not provide is null and listed in unavailable.
| Field | Type | Notes |
|---|---|---|
| id | string | An identifier, always a string. Never parse it as a number: several platforms use ids above 2^53. |
| url | string | null | |
| parent_id | string | null | An identifier, always a string. Never parse it as a number: several platforms use ids above 2^53. |
| post_id | string | null | An identifier, always a string. Never parse it as a number: several platforms use ids above 2^53. |
| text | string | null | |
| author.id | string | null | |
| author.username | string | null | |
| author.display_name | string | null | |
| author.avatar_url | string | null | |
| author.verified | boolean | null | |
| engagement.likes | integer | null | A count. null when the platform does not expose it; 0 only when it is really zero. |
| engagement.replies | integer | null | A count. null when the platform does not expose it; 0 only when it is really zero. |
| flags.pinned | boolean | null | |
| flags.deleted | boolean | |
| published_at | string | null | ISO-8601 timestamp in UTC, ending in Z. |
| language | string | null | The content's language as the platform states it, e.g. en, pt-BR. Detected languages come later (§7.1). |
| replies | array | null | |
| ext | object | null | Platform-specific fields, snake_case. |
Every field, error and example is in the TikTok Comment API reference.
How much does the TikTok Comment API cost?
Metered: 20–60 credits a call. The ceiling is reserved when the call starts and you are charged what it actually read.
Failed calls are free
A call that errors or finds nothing costs 0 credits.
Know the price first
Add dry_run=1 and the response quotes the call without making it. Nothing is charged.
One balance
API calls and Chrome extension exports share the same credits, on the free plan too.
TikTok Comment API: frequently asked questions
Send GET /v1/tiktok/comment with either comment_url or post_url and your key in the x-api-key header. Returns one TikTok comment with its current like count, reply count, pinned flag, author, and timestamp, found by link, by id, or by its text.
Metered: 20–60 credits a call. The ceiling is reserved when the call starts and you are charged what it actually read. A call that errors or finds nothing costs 0 credits, and an answer from the shared cache costs 2. Pro's 10,000 monthly credits cover about 500 calls at 20 credits each. Add dry_run=1 to see the price of a call without making it.
No. There is no TikTok app, OAuth flow or app review. One InsightSocial API key works for this endpoint and every other platform, and your first 10 calls priced at 100 credits or less are free.
One call returns the comment in the data object of the standard response envelope. Fields the platform did not provide are listed in unavailable, so a null there means unknown, not zero.
You get an error or an empty result, and it costs 0 credits. The API reads public TikTok data only, so private accounts and deleted content come back as not found rather than as partial data.
Yes. Add the hosted MCP server at https://api.insightsocial.app/mcp to your AI app and sign in. The assistant finds this endpoint by name, shows its price and calls it with your credits.
More TikTok endpoints
- TikTok Profile API10 credits
- TikTok Profile Videos API10 credits
- TikTok Video API10 credits
- TikTok Video Comments API10–30 credits
- TikTok Video Comment Replies API10 credits
- TikTok Search API10–370 credits
- TikTok Trending API50 credits
- TikTok Search Hashtag API10 credits
- TikTok Search Top API10 credits
- TikTok Search Users API10–1,310 credits
- TikTok Similar API50–50 credits
- TikTok User Audience API50 credits