TikTok Comment Scraper API
Resolves a single TikTok comment to a live comment object (current like count, reply count, pinned flag, author, timestamp) without you paginating the comment section. Pass comment_url (a .../@{handle}/video/{id}?comment_id={cid} link, an m.tiktok.com share link, or a vm.tiktok.com/.../t/ shortlink: resolved automatically) OR post_url + comment_id. For a reply, also pass parent_comment_id (a reply URL does not carry its parent). The response includes a lookup.position_hint: pass it back on a later lookup of the same comment to make the re-check faster (the price is the same).
GET /api/v1/data/tiktok/comment · 2 credits per call · The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
Inputs
comment_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: 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: 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: Parent comment id.author_username: Return up to `max` comments authored by this username (no comment id needed). Mutually exclusive with `text_contains` and any comment id.text_contains: Return up to `max` comments whose text contains this snippet (case-insensitive). Mutually exclusive with `author_username` and any comment id.position_hint: 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: For `author_username`/`text_contains` search: max matches to return (1-20, default 5).
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.source_data.comment.author.avatar_url(string): URL to comment author profile picturesource_data.comment.author.display_name(string): Comment author display namesource_data.comment.author.username(string): Comment author username (null when tombstoned)source_data.comment.author.verified(boolean): Whether the account carries TikTok's verification badge.source_data.comment.engagement.likes(number): Like / upvote countsource_data.comment.engagement.replies(number): Reply / child-comment count.source_data.comment.ext.lookup.comments_scanned(number): How many comments were read.source_data.comment.ext.lookup.found_via(string): How the comment was found, such as `id_scan`.source_data.comment.ext.lookup.pages_fetched(number): How many pages of comments were read.source_data.comment.ext.lookup.position_hint(string): A cursor that resumes the scan at this comment.source_data.comment.ext.lookup.sort_basis(string): The sort order the scan used.source_data.comment.ext.published_at_epoch(number)source_data.comment.flags.deleted(boolean): Whether the comment is tombstoned (always present, even when false)source_data.comment.flags.pinned(boolean): Pinned flag (null when platform does not surface)source_data.comment.id(string): Platform-specific comment ID (always a string)source_data.comment.parent_id(string): Parent comment ID for nested replies, or null for top-level commentssource_data.comment.post_id(string): ID of the post this comment belongs tosource_data.comment.published_at(any): Comment creation timestamp as an ISO 8601 UTC string.source_data.comment.text(string): Comment body.source_data.comment.url(string)source_data.computed.country.confidence(number)source_data.computed.country.source(string)source_data.computed.country.value(string)source_data.computed.language(string)source_data(object): Everything the platform sent for this call, as it came.
Good to know
- The price depends on what the call returns: from 2 credits to 6 credits.
- The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
- Send one of: comment_url, post_url.
Example call
GET /api/v1/data/tiktok/comment?comment_url=https%3A%2F%2Fwww.tiktok.com%2F%40mrbeast%2Fvideo%2F7654638524729216287%3Fcomment_id%3D7654640784985211670
Questions
How much does the TikTok Comment API cost?
Each call costs 2 to 6 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.
What do I send?
Give one of comment_url and post_url. 8 more inputs are optional: comment_url, post_url, comment_id, parent_comment_id, author_username, text_contains, position_hint and max. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How fresh is the data?
The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
Do I need a TikTok account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
More TikTok scraper APIs
- TikTok Ad Library Ad Scraper API
- TikTok Ad Library Search Scraper API
- TikTok Ads Top Scraper API
- TikTok Collection Videos Scraper API
- TikTok Effect Videos Scraper API
- TikTok Effects Scraper API
- TikTok Hashtag Scraper API
- TikTok Hashtags Popular Scraper API
- TikTok Location Posts Scraper API
- TikTok Playlist Videos Scraper API
- TikTok Post Scraper API
- TikTok Post Transcript Scraper API
- TikTok Profile Scraper API
- TikTok Profile Full Scraper API
- TikTok Profile Playlists Scraper API
- TikTok Profile Region Scraper API
- TikTok Profile Videos Scraper API
- TikTok Search Mentions Scraper API
- TikTok Search Music Scraper API
- TikTok Search Suggestions Scraper API
- TikTok Search Top Scraper API
- TikTok Search Users Scraper API
- TikTok Similar Scraper API
- TikTok Song Scraper API
- TikTok Song Videos Scraper API
- TikTok Trending Scraper API
- TikTok User Audience Scraper API
- TikTok User Followers Scraper API
- TikTok User Following Scraper API
- TikTok User Liked Scraper API
- TikTok User Live Scraper API
- TikTok Video Comment Replies Scraper API
- TikTok Video Screen Text Scraper API
- TikTok Videos Popular Scraper API