TikTok API

TikTok Comments API

Send a video link and get its top comments as JSON, in TikTok's own order, with likes, reply counts, dates and the people who wrote them.

  • 100 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/tiktok/comments?video=https%3A%2F%2Fwww.tiktok.com%2F%40scout2015%2Fvideo%2F6718335390845095173&limit=20" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 100 top-level comments per request, in the order TikTok ranks them
  • Text, like count, reply count and post time for each
  • Whether the creator liked the comment, pinned it or wrote it
  • The commenter: username, name, profile link, avatar, verified badge and TikTok ids
  • The video's caption and its total comment count
200 OK 路 application/json
{
  "data": {
    "video": {
      "id": "6718335390845095173",
      "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
      "caption": "Scramble up ur name & I鈥檒l try to guess it馃槏鉂わ笍 #foryoupage #PetsOfTikTok #aesthetic",
      "commentCount": 5712
    },
    "comments": [
      {
        "id": "0000000000",
        "text": "Well it鈥檚 pretty easy...and obvious 馃槀 hlysa",
        "likeCount": 345,
        "replyCount": 20,
        "createdAt": "2019-07-27T13:35:22.000Z",
        "language": null,
        "position": 1,
        "isPinned": false,
        "isLikedByCreator": true,
        "isByCreator": false,
        "labels": [
          "Liked by creator"
        ],
        "mentions": [],
        "hashtags": [],
        "imageUrls": [],
        "author": {
          "id": "0000000000",
          "secUid": "0000000000",
          "username": "example_user",
          "nickname": "Example Person",
          "url": "https://example.com/profile",
          "avatarUrl": "https://example.com/avatar.jpg",
          "isVerified": false
        }
      },
      {
        "id": "0000000000",
        "text": "Guys people are guessing names it's on my username 馃槀",
        "likeCount": 49,
        "replyCount": 5,
        "createdAt": "2019-07-29T05:10:43.000Z",
        "language": null,
        "position": 2,
        "isPinned": false,
        "isLikedByCreator": false,
        "isByCreator": false,
        "labels": [],
        "mentions": [],
        "hashtags": [],
        "imageUrls": [],
        "author": {
          "id": "0000000000",
          "secUid": "0000000000",
          "username": "example_user",
          "nickname": "Example Person",
          "url": "https://example.com/profile",
          "avatarUrl": "https://example.com/avatar.jpg",
          "isVerified": false
        }
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/tiktok/comments

Costs 1 credit per 20 items requested. Only requests that return data are charged.

Parameters

NameTypeDescription
videorequired string Video URL as a browser shows it: https://www.tiktok.com/@user/video/ followed by the video id. A vm.tiktok.com short link is not accepted: open it and pass the address it leads to.
limitoptional integer How many comments to return. Every started 20 comments cost 1 credit. Default: 20. From 1 to 100.

Good to know

  • Comments come in TikTok's own order, top comments first, and position is the rank. There is no newest-first order.
  • Top-level comments only; replyCount tells you how many replies each one has.
  • The price follows limit: 1 credit for up to 20 comments and 5 credits for 100, also when the video has fewer comments than you asked for.
  • video.commentCount is the total TikTok's comment list reports. It can differ a little from commentCount of the video endpoint, which TikTok serves from another place.
  • A video TikTok shows no comments for answers 404 and costs nothing: no_comments when it has none, video_not_found when it was deleted, is private, has comments turned off or the link is wrong. TikTok does not say which of those four it is.

Open the reference

Use cases

What people build with it

  • Sentiment analysis

    Read how viewers react to a video, a product or a campaign, in their own words.

  • Audience research

    Find the questions and objections people raise under the videos in your market.

  • Creator and brand monitoring

    See which comments rise to the top of your own or a competitor's videos, and which ones the creator liked.

  • Comments for AI summaries

    Give a model the top comments of a video and ask it what viewers are saying.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per 20 items requested, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit

A request costs 1 credit. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 100 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Is this the official TikTok API?

No. Pipefetch is an independent service and is not affiliated with TikTok or ByteDance. It returns the comments TikTok shows under a public video to a visitor who is not logged in, so you need no TikTok account, developer app or access token.

How many comments can I get?

Up to 100 per request: the ones TikTok ranks first. Reaching further down a video's comments is not available, and there is no newest-first order.

Are replies included?

No. You get top-level comments, and replyCount tells you how many replies each one has.

Which links can I pass?

The full address of a video, as a browser shows it: https://www.tiktok.com/@user/video/ followed by the video id. Short share links (vm.tiktok.com) are not accepted: open the link once and pass the address it leads to.

What if a video has no comments, or they are turned off?

The request answers 404 and costs nothing. The code is no_comments when the video has none, and video_not_found when TikTok shows nothing for it: a deleted or private video, or one with comments turned off. TikTok does not say which of those it is.

What does a request cost?

The price follows the limit you ask for: every started 20 comments cost 1 credit, so a limit of 20 is 1 credit and a limit of 100 is 5. Credit packs start at $9 for 3,000 credits and never expire. A request that returns no data is not charged, and new accounts get 100 free credits without a card.

Do comments contain personal data?

Yes. They carry the usernames, names and profile links of the people who wrote them, which is personal data when the commenter is a person. If you store or process comments, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.

Guides

Step-by-step guides

More

More TikTok APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.