TikTok
GET /v1/tiktok/comments

TikTok Comments API

The TikTok Comments API works as a comment scraper you don't have to run: send a public video URL and get text, author, likes, language and time as JSON, page by page.

One of 23 endpoints in the TikTok API.

2 credits per request
TL;DR
The TikTok Comments API works as a comment scraper you don't have to run: send a public video URL and get text, author, likes, language and time as JSON, page by page. The TikTok Comments API (TikTok) is a single authenticated GET request to /v1/tiktok/comments that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the TikTok Comments API?

Send a public TikTok video URL and get its comments as JSON. Each comment has the author's handle (author), display name (authorName) and avatar, plus authorId and authorSecUid to recognise repeat commenters, and commentLanguage for filtering by language. replyCount is included when TikTok exposes it. Page with nextCursor while hasMore is true; a null nextCursor is the end of the comments. TikTok reorders threads between reads, so de-duplicate by id. A video that does not exist is 404, and a blocked read is 503 UPSTREAM_UNAVAILABLE (retryable); both cost 0 credits. Flat 2 credits per call that returns comments. For replies, use TikTok Comment Replies with the parent comment id.

Comparing this with an Apify actor? Here is an honest side-by-side. Apify alternative

Moving this call from EnsembleData? Here is the endpoint-by-endpoint map. EnsembleData alternative

What you get

  • author handle + authorName display name
  • Stable authorId + authorSecUid (not just username)
  • commentLanguage for market listening
  • replyCount when TikTok exposes it
  • Like count, publish time, totalComments + cursor pagination
  • Unresolvable video → 404 at 0 credits
  • limit up to 500 — flat 2 credits per call

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/tiktok/comments?url=https%3A%2F%2Fwww.tiktok.com%2F%40khaby.lame%2Fvideo%2F7646812028874673439" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "platform": "tiktok",
    "url": "https://www.tiktok.com/@khaby.lame/video/7646812028874673439",
    "totalComments": 1711,
    "totalReturned": 2,
    "comments": [
      {
        "id": "comment-id-1",
        "text": "1 like = 1 pushups",
        "author": "commenter_1",
        "authorName": "Commenter 1",
        "authorId": "user-id-1",
        "authorSecUid": "sec-uid-1",
        "authorAvatarUrl": "https://example.com/avatar-1.jpg",
        "commentLanguage": "en",
        "likeCount": 751,
        "publishedAt": "2026-06-08T09:47:20.000Z"
      },
      {
        "id": "comment-id-2",
        "text": "Mr beast 500 million 🥰🇧🇩",
        "author": "commenter_2",
        "authorName": "Commenter 2",
        "authorId": "user-id-2",
        "authorSecUid": "sec-uid-2",
        "authorAvatarUrl": "https://example.com/avatar-2.jpg",
        "commentLanguage": "en",
        "likeCount": 303,
        "publishedAt": "2026-06-02T16:23:41.000Z"
      }
    ],
    "nextCursor": "2",
    "hasMore": true,
    "fetchedAt": "2026-11-22T14:48:12.380Z"
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Request-Id (include it when contacting support). Where the response has a source field, it names the path that served the data: native, extended, cache or asr. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success and a data object with the following fields:

Top-level fields

  • platformPlatform identifier for this response (matches the endpoint's platform).
  • urlCanonical URL of the item.
  • totalCommentsThe total TikTok reports for this comment list. It is not the video's comment count and can be much lower; for the video's count read engagement.comments on /v1/tiktok/video-details. Omitted only when TikTok sent no total.
  • totalReturnedNumber of items returned in this response.
  • nextCursorNumeric offset to pass back as cursor. Null means the end of the comments.
  • hasMoreAlways a boolean. true when nextCursor is a resume offset; false when nextCursor is null (end of the thread). Never null.
  • fetchedAtWhen this snapshot was fetched (ISO 8601 UTC).

Comments

Each item in comments contains:

  • idId of this comments item.
  • textText content.
  • authorAuthor name or handle.
  • authorNameName of the author.
  • authorIdAuthor id. Example: "user-id-1".
  • authorSecUidPrimary artist / sound-owner secUid when TikTok exposes one.
  • authorAvatarUrlProfile picture URL of the person who wrote the comment.
  • commentLanguageComment language. Example: "en".
  • likeCountLike count as an integer. Compact UI labels ("727K") are expanded here; see likeCountText for the original string.
  • publishedAtPublish date (ISO 8601) when the platform exposes an absolute timestamp.

Parameters

NameTypeRequiredDescription
urlstringYesPublic TikTok video or photo-carousel URL, e.g. https://www.tiktok.com/@khaby.lame/video/7646812028874673439 or https://www.tiktok.com/@user/photo/ID (the url channel-posts returns for mediaType photo). Not a YouTube/Instagram/Facebook URL. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
limitintegerNoMax items to return (default 50, max 500). Flat 2 credits per call.
cursorstringNoPagination cursor. Leave empty for the first page; then pass the nextCursor value returned in the previous response (a numeric offset, e.g. 50). A null nextCursor means the end of the comments.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool tiktok_comments via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/tiktok/comments and parse the JSON response.

Use cases

Sentiment Analysis

Understand how audiences react to content.

Community Insights

Surface FAQs, requests, and recurring themes.

Moderation

Detect spam, abuse, or policy violations at scale.

Market Research

Mine genuine opinions and product feedback.

Frequently asked questions

What does the TikTok Comments API do?+

The TikTok Comments API lets you pull comments with author, text, likes, and replies from a public TikTok video using one GET request to /v1/tiktok/comments. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the TikTok Comments API cost?+

Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.

Do I need a TikTok API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle access, rate limits, retries, and authentication for you.

What happens when the video does not exist?+

HTTP 404 NOT_FOUND at 0 credits, the same answer /tiktok/video-details gives for that URL. It is not retryable.

What happens when TikTok blocks the comment fetch?+

The call is 503 UPSTREAM_UNAVAILABLE (retryable, 0 credits) with a Retry-After header. Retry shortly; a cursor page can be retried with the same cursor.

Is the TikTok Comments API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

More TikTok APIs

Ready to use the TikTok Comments API?

Sign up, grab your key, and make your first call in 60 seconds.

TikTok Comments API & Comment Scraper — Captapi