YouTube Comments API
A public video's comments, 20 at a time, with likes, replies, and author.
1Item
Scraping…
What teams build with the YouTube Comments API
Audience research
Read what viewers ask, praise, and complain about under your videos and your competitors', and group it by theme.
Sentiment tracking
Score comments on product reviews and launch videos over time, next to the video's views and likes.
Content ideas
Mine the questions viewers leave under popular videos in your niche for your next video or article.
Does the official YouTube API return transcripts?
Official API restricted
Only for your own videos. The YouTube Data API downloads a caption track only when the signed-in user can edit the video.
captions.download needs OAuth and, in YouTube's words, "requires the user to have permission to edit the video"; anyone else gets 403 forbidden. captions.list names a video's tracks but, as its page says, does not contain the captions themselves.
Clair API reads the caption tracks a public video offers to any viewer and returns one as JSON: the uploader's captions when there are any, YouTube's automatic ones otherwise. A video with no captions returns 404; Clair API does not transcribe audio.
Read from these pages on October 27, 2026.
Integrate in minutes
One host, one Bearer key for every Clair API. Each call returns JSON with the same envelope, so a second API is a new path, not a new client.
curl -G "https://api.clair.im/v1/youtube/comments?video_id=aircAruvnKk" \ -H "Authorization: Bearer YOUR_API_KEY"
Query and response fields
Top-level comments on a public video, 20 at a time, by YouTube’s top order or newest first. Each carries its text, likes, reply count, and author. next_cursor opens the next 20. A video with comments turned off returns 404.
- Typical response time
- 1–2 s
- How it loads
- Page fetch
- Time limit
- 40 s
One request for the page, through a proxy network that gets past the site's bot checks. No browser. Usually a few seconds; a site that challenges the request takes longer. A request that reaches the time limit returns 504 and is not charged.
GET /v1/youtube/comments
Authorizationheader · stringrequired
- Bearer <api_key>. Create keys under API keys.
video_idstringrequired
- The 11-character id, such as
dQw4w9WgXcQ, or a watch, shorts, embed, live, or youtu.be link. sort_bystring
topornewest. Defaulttop.cursorstring
next_cursorfrom the previous response. Send it with the same other parameters.
Pricing
Each endpoint is priced per 1,000 items it returns, and a call that returns nothing is free. Pay as you go with credit that never expires, spent across every Clair API; a plan lowers every rate.
Pay as you go. A plan lowers every rate. | |||||
|---|---|---|---|---|---|
Pay as you go $0 no monthly fee $1 of free credit once, no card. Then top up from $5; credit never expires. | |||||
| Posts | |||||
| YouTube Video Details | $2.25 / 1K videos | $1.92 / 1K videos | $1.58 / 1K videos | $1.25 / 1K videos | Custom rate |
| YouTube Channel Videos | $0.07 / 1K videos | $0.06 / 1K videos | $0.05 / 1K videos | $0.04 / 1K videos | Custom rate |
| YouTube Transcripts | $2.70 / 1K transcripts | $2.30 / 1K transcripts | $1.90 / 1K transcripts | $1.50 / 1K transcripts | Custom rate |
| YouTube Comments | $0.11 / 1K comments | $0.09 / 1K comments | $0.08 / 1K comments | $0.06 / 1K comments | Custom rate |
| Search | |||||
| YouTube Video Search | $0.11 / 1K videos | $0.09 / 1K videos | $0.08 / 1K videos | $0.06 / 1K videos | Custom rate |
Pay as you go runs at 5 requests a second (10 a minute on the free credit alone); Starter at 10, Scale at 25, Business at 50. Need more? Email us and we will raise your limit.
Top up from $5; topped-up credit never expires and is spent at your plan's rates. A plan's fee is its monthly credit, spent first and gone at renewal. Calls stop when your credit runs out, so nothing is billed past it.
Common questions
Anything else? Email contact@serinlabs.com.
How are comments ordered?
By YouTube's top order, the default, or newest first with sort_by=newest. Each page holds 20; send next_cursor back for the next 20.
Does it return replies?
It returns top-level comments, each with its reply count.
What if comments are turned off?
The request returns 404 for a video with comments turned off.
What does the YouTube Comments API return?
Top-level comments on a public video, 20 at a time, by YouTube’s top order or newest first. Each carries its text, likes, reply count, and author. next_cursor opens the next 20. A video with comments turned off returns 404. A public video’s title, description, length, views, likes, publish time, category, keywords, and channel with its subscriber count. video_id takes an id or any YouTube link to the video.
Which endpoints does a plan include?
All of them: Comments, Video Details. Each call spends the items it returns at your plan's rate, from the month's plan credit first and then your wallet.
How is usage counted?
You pay for the data a call returns, not for the call. Each endpoint sells one kind of item (a job, a profile, a review, a results page) at its own price per 1,000. A search that returns 40 jobs is 40 jobs; a lookup is one item. A call that returns nothing is free: not found, an empty search, a malformed request, or a failure on our side. Each response's x-items-billed and x-request-cost-usd headers say what it cost.
Is there a free tier?
Yes. The free tier is $1 of free credit across every Clair API, with no card: about 9,090 YouTube Video Search if it all goes here. It's granted once; after that you pay as you go with credit that never expires.
What happens when I run out of credit?
The API returns 429 until you top up, and nothing is billed past your credit. Topped-up credit never expires, and a plan's monthly credit is spent before it.
Does my plan cover other Clair APIs?
Yes. One key and one wallet cover every Clair API, and every call spends from the same credit at your plan's rates. Your first call starts the free tier.
Learn more about the YouTube Comments API
Use cases
- YouTube transcripts for RAG
Video transcripts, chunked with timestamps, for an index.
Best APIs
More from the YouTube API
The same key covers every endpoint. See the full YouTube API.
Related APIs
APIs teams often combine with the YouTube API.
Crunchbase API
Glassdoor API
Instagram API
Bloomberg API
Associated Press API