Introducing the Instagram APIRead more →

TikTok Comments API. Top-level comments, page by page.

Top-level comments with exact like and reply counts. We handle the proxies, blocks and platform changes.

TikTok Comments API at a glance

Returns the public top-level comments on a TikTok video or photo post, a page at a time, in TikTok's own ranking. Each comment has its text, exact posting time, exact like and reply counts, the commenter's username, name, ID and verified badge, its language, and whether the creator pinned, liked or wrote it. Send a video or photo link, a share link or a numeric video ID.

GET /v1/tiktok/comments

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 16 typed fields null when unknown
  • 50 top-level comments per page, TikTok's comment ranking (the order its app shows)
  • url is all it needs, e.g. https://www.tiktok.com/@scout2015/video/6718335390845095173

Send one request. Get up to 50 top-level comments back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.tiktok.com/@scout2015/video/6718335390845095173
GET /v1/tiktok/commentsTry in
const params = new URLSearchParams({
  url: "https://www.tiktok.com/@scout2015/video/6718335390845095173",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/comments?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/tiktok/commentsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 9 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field TikTok doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    TikTok video or photo post URL (tiktok.com/@user/video/<id>, /@user/photo/<id>, m.tiktok.com/v/<id>.html, embed and player URLs, vm.tiktok.com/<code>, vt.tiktok.com/<code>, tiktok.com/t/<code>) or a numeric video ID.

  • Write one parser

    TikTok, Instagram, Facebook and 6 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native comment ID (string; Reddit with its t1_ prefix).
post_idstring
ID of the post commented on (equals post.id).
parent_idstring
ID of the comment this replies to; null for top-level comments.
urlstring
Permalink, when the platform has one.
textstring
Comment body as plain text.
authorobject
The commenting account. An account the platform no longer names (a deleted account) has a null id and username and the platform's label as display_name (Reddit: [deleted]).
published_atstring
When the comment was posted, RFC 3339 UTC. Where the platform shows only a relative time ("3 weeks ago"), the latest time that label allows (the fetch time minus the stated amount), listed in approximate_fields.

What teams build with the TikTok Comments API.

  • Track sentiment on your and competitors' videos

  • Find questions and purchase intent in comments

  • Build comment datasets for research

Good to know before you build.

  • TikTok ranks comments and has no newest-first order, so since and until filter each page by published_at without ending the walk, and a narrow window can return near-empty pages while it goes on.
  • A page can hold fewer comments than limit while more follow, and TikTok repeats some comments across the first pages of a busy video, so deduplicate by id.
  • Private videos and videos with comments off return private_or_unavailable.
  • Deleted videos return not_found, except that TikTok keeps serving the comments of some deleted videos, and those come back.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the TikTok Comments API.

More in the API reference.

Does it return replies?
No. It returns top-level comments, each with its reply_count. The TikTok Comment Replies API returns the replies to a comment.
How much does the TikTok Comments API cost?
A page of up to 50 top-level comments costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs