YepAPI

Command Palette

Search for a command to run...

POST/v1/tiktok/comments

TikTok Comments API

Get comments on any TikTok video. Sentiment analysis and engagement research from $0.01/call.

Fetch comments on any TikTok video by URL. Returns comment text, author info, likes, and reply counts with pagination.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/tiktok/comments
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "comments": [
      {
        "text": "Great video!",
        "user": {
          "uniqueId": "commenter"
        },
        "diggCount": 150,
        "replyCount": 3
      }
    ],
    "cursor": "20",
    "hasMore": true
  }
}

Features

Video comments

Submit a TikTok video URL and page through its comments, returned as a comments array with the full text of each comment.

Comment author info

Each comment includes a user object with the commenter's uniqueId, so you can attribute and analyze who is engaging.

Like counts per comment

A diggCount on every comment lets you surface the most-liked, most-influential reactions to a video.

Reply count indicators

Each comment carries a replyCount, flagging the threads with the most discussion to drill into via the Comment Replies API.

Use cases

Sentiment Analysis

Analyze audience sentiment through video comments.

Engagement Research

Study engagement patterns and discussion topics in comments.

Community Monitoring

Monitor brand mentions and discussions in TikTok comments.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/tiktok/comments', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://www.tiktok.com/@user/video/7234567890",
    "cursor": "0",
    "count": "20"
  }),
});
const data = await res.json();
console.log(data);

TikTok Comments API for sentiment and engagement research

The YepAPI TikTok Comments API extracts the comments on any TikTok video. Submit the video URL and page through the comment text, each tagged with its author, like count, and reply count — the raw material for sentiment analysis and audience research at scale.

It is the endpoint for understanding how audiences react, not just how many watched. Combine it with the TikTok Comment Replies API to read full threads, or the TikTok Video API to pair reactions with the post's metrics.

What is a TikTok Comments API?

A TikTok Comments API returns the comments left on a specific video as structured data instead of a rendered page. With YepAPI you POST a video url to /v1/tiktok/comments and receive a comments array where each entry holds the comment text, a user object with the commenter's uniqueId, a diggCount (likes), and a replyCount, along with a cursor for paging. Because TikTok provides no open comment endpoint, this gives you reliable access to the conversation under any public video — the foundation for sentiment analysis, brand monitoring, and engagement research.

Build your own sentiment analysis tool

This endpoint powers a sentiment-analysis tool: pull a video's comments, run the text through your NLP model, and score audience reaction as positive, negative, or neutral. Weight comments by diggCount to emphasize the reactions that resonated most, and flag high-replyCount threads for deeper inspection. Use it to monitor brand mentions or measure how a campaign landed. Pair with the TikTok Video API to correlate sentiment with reach, all under one YepAPI key that also covers YouTube and Instagram comments.

TikTok Comments API pricing — $0.01 per call

Each call costs $0.01 and returns one page of comments (default 20) plus a cursor. You pay per page, so the cost scales with how many comments you pull. Harvesting 1,000 comments from a viral video across 50 pages costs about $0.50 — affordable enough to run sentiment analysis across an entire campaign's worth of videos.

Rank reactions by likes and discussion

Not every comment carries equal weight. The diggCount lets you surface the most-liked reactions — often the sharpest praise or criticism — while replyCount highlights the comments sparking the most discussion. Sorting on these fields turns a flat comment dump into a prioritized view of what an audience actually cares about, making your sentiment and engagement research faster and far more meaningful.

Try the TikTok Comments API free

Get $5 in free credit with no credit card to begin. That covers 500 page fetches — enough to analyze sentiment across many videos before you pay. Sign up, grab your key, and pull your first video's comments in minutes.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Fetch comments on any TikTok video by URL. Returns comment text, author info, likes, and reply counts with pagination.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/tiktok/comments. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More tiktok api endpoints