YouTube comments API

YouTube Comments API

Get the top or newest comments on any public YouTube video, with likes, reply counts, pinned and hearted flags, and every reply, as JSON from one request. One API key, no Google Cloud project.

Sign in with Google. 100 free credits, no card.

GET /v1/comments
{
  "videoId": "rfscVS0vtbw",
  "commentCount": 46069,
  "comments": [
    {
      "id": "Ugxqcek3RUzxWv-4VqB4AaABAg",
      "text": "Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev ...",
      "authorName": "@freecodecamp",
      "authorChannelId": "UC8butISFwT-Wl7EV0hUK0BQ",
      "isChannelOwner": true,
      "likeCount": 4700,
      "replyCount": 148,
      "publishedTime": "5 years ago",
      "isPinned": true,
      "isHearted": false,
      "isReply": false,
      "repliesCursor": "eyJ2IjoicmZzY1ZTMHZ0Ync..."
    },
    ...
  ],
  "nextCursor": "eyJ2IjoicmZzY1ZTMHZ0Ync..."
}

What it returns

commentCountTotal comments on the video, from YouTube's header. Set on the first page of top-level comments only.
comments[].textThe comment as written.
authorName, authorChannelIdThe commenter's handle and channel ID.
isChannelOwnerWritten by the video's own channel.
likeCount, replyCountRounded by YouTube above 1,000 ("4.8K"), so approximate there.
publishedTimeYouTube's relative label, such as "2 days ago" or "7 years ago (edited)".
isPinned, isHeartedPinned by the creator, or hearted by the creator.
isReplyTrue on replies listed with replies_to.
repliesCursorPass as replies_to to list this comment's replies; null when it has none.
nextCursorPass as cursor for the next page; null on the last page.

Make a request

Send your key as a Bearer token. The same data is available to AI assistants through the MCP server, with the same key and credits.

curl "https://transcript-yt.com/v1/comments?id=rfscVS0vtbw&sort=top&limit=100" \
  -H "Authorization: Bearer ts_live_..."

Read what viewers say, not just what the video says

Comments are where viewers ask questions, point out mistakes, and say what they want next. Pull them into a spreadsheet or a model to find common questions, measure how a launch video landed, or collect feedback on a product a creator reviewed.

Paging and replies

Each call returns up to 100 comments, sorted by top or newest. Pass nextCursor back as cursor for the next page. A comment with replies carries a repliesCursor: pass it as replies_to to list the replies, and page through them the same way.

Read only

The endpoint reads public comments. It can't post, reply, like, hide, or delete comments, and it doesn't see held-for-review or private data. For moderating your own channel you need YouTube's official API with OAuth.

What it costs

1 credit per call on every plan, for up to 100 comments, including a video that has no comments yet. A repeat of the same call within 10 minutes is free. At $1.58 per 1,000 credits on the largest plan, that is up to 100,000 comments for $1.58. Rate limits are 10 requests a minute on the Free plan and 200 on paid plans.

Failed requests are never charged. See pricing

Compared with the YouTube Data API

TranscriptYTYouTube Data API v3
SetupSign in with Google and copy one keyA Google Cloud project with YouTube Data API v3 enabled, and an API key for public data
Daily allowanceYour credits; 1 credit per call10,000 quota units a day by default; commentThreads.list costs 1 unit
Page size1 to 100, default 20maxResults 1 to 100, default 20
RepliesEvery reply, paged with replies_to and cursorA thread's replies part holds only a subset; comments.list with parentId lists them all
Posting and moderationNot availableAvailable with OAuth 2.0 (comments.insert costs 50 units)
Transcripts with the same keyYes, GET /v1/transcript for any public videocaptions.download needs OAuth, edit permission on the video, and 200 units

From Google's documentation, checked November 2026: Quota costs, API keys and OAuth, commentThreads.list, commentThreads resource, captions.download.

Common questions

Is there an API for YouTube comments?

Yes. YouTube's official Data API has commentThreads.list, which needs a Google Cloud project with the API enabled and an API key. TranscriptYT's GET /v1/comments returns the same kind of data for any public video with one key from your dashboard, and the same key also gets transcripts, video details, and channel details.

How do I get YouTube comments in Python?

Call GET https://transcript-yt.com/v1/comments with the requests library, passing the video ID or URL, sort (top or new), and limit (up to 100), with your key in the Authorization header. Loop on nextCursor to get more pages.

How do I get all the replies to a comment?

Take the comment's repliesCursor and pass it as replies_to. Each reply page has its own nextCursor, so you can page through every reply, not just the first few.

How much does it cost?

1 credit per call, for up to 100 comments, on every plan. Repeating the same call within 10 minutes is free, and a video with comments turned off returns COMMENTS_DISABLED at no charge. New accounts get 100 free credits; Micro is $3 a month for 1,000.

Can I post, reply to, or delete comments?

No. The endpoint is read only. Posting and moderation need YouTube's official API with OAuth access to the channel.

Are like counts exact?

Up to 1,000, yes. Above that YouTube shows rounded labels such as 4.8K, so likeCount and replyCount are approximate there. publishedTime is YouTube's relative label, such as "2 days ago".

Can Claude or ChatGPT read a video's comments?

Yes. Connect the TranscriptYT MCP server and the get_comments tool returns the same data, so you can ask an assistant to summarize what viewers asked about a video.