YouTube Comments API
List the top-level comments on a YouTube video or Short from its link, top or newest first. Each comment includes its text, author, like and reply counts, when it was posted and whether the channel pinned or hearted it. The first page also gives the video's total comment count. Page through results with the `cursor` from the previous response's `nextCursor`. A video with comments turned off returns an empty list, with a `warning` saying so.
- Endpoint
- POST /youtube/get-video-comments
- Price
- 1 credit per request
- SDK
- client.youtube.getVideoComments()
- MCP tool
- youtube_get_video_comments
curl -X POST "https://api.bridgly.app/youtube/get-video-comments" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "sort": "top", "count": 10}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/youtube/get-video-comments", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "sort": "top", "count": 10, },)data = response.json()const response = await fetch("https://api.bridgly.app/youtube/get-video-comments", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "sort": "top", "count": 10 }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.youtube.getVideoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", sort: "top", count: 10});if (res.type === "success") { console.log(res.data);}What does the YouTube Comments API return?
YouTube comments API: list the comments on any video or Short from its link, top or newest first, with text, author, likes, reply count and pinned and hearted status, as JSON. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
cursorstring- The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
urlstringrequired- The video whose comments to list. Accepts any YouTube video link — watch, youtu.be, Shorts, embed, or live — or a bare 11-character video ID.
sortenum · default top- Comment order: "top" (the most popular first, as YouTube shows by default) or "newest" (most recent first). Defaults to "top".
- top | newest
countinteger · 1–20 · default 20- Number of results to return (1–20). Defaults to 20.
cacheMaxAgeHoursinteger- Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean- Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Example response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "nextCursor": "string", "comments": [ { "id": "string", "url": "string", "text": "string", "image": { "url": "string", "width": 0, "height": 0 }, "author": { "id": "string", "url": "string", "handle": "string", "name": "string", "avatars": [ { "url": "string", "width": 0, "height": 0 } ], "isVerified": true }, "likeCount": 0, "hasMoreReplies": true, "publishedText": "string", "isEdited": true, "isPinned": true, "isHeartedByCreator": true, "isAuthorChannelOwner": true, "replyCount": 0 } ], "totalCount": 0, "warning": "string" }}What can you build with the YouTube Comments API?
Analyze sentiment
Read what viewers say about a video, product or launch.
Find questions
Spot viewer questions that deserve an answer or a follow-up video.
Run giveaways
Collect everyone who commented on a contest video.
YouTube Comments API questions
Can I get the newest comments instead of the top ones?
Yes. Set sort to "newest" for the most recent comments first. The default, "top", is the order YouTube shows first, with the pinned comment on top.
Does it include replies to comments?
It returns top-level comments with their reply counts. Send a comment’s id to the YouTube Comment Replies API to list its replies.
What happens when a video has comments turned off?
You get an empty list of comments, with a `warning` saying comments are turned off for the video. The call is billed like any other request.
How do I use the YouTube Comments API?
Send a POST request to https://api.bridgly.app/youtube/get-video-comments with url in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.youtube.getVideoComments(). AI agents connected to Bridgly over MCP can call the youtube_get_video_comments tool.
How much does the YouTube Comments API cost?
Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.
More YouTube endpoints
The same API key works on every endpoint. See all YouTube Transcript API endpoints.
- YouTube Comment Replies API→YouTube comment replies API: list the replies to any YouTube comment from the video link and comment ID, with text, author, likes and the comment each reply answers, as JSON.
- YouTube Related Videos API→YouTube related videos API: list the videos and Shorts YouTube recommends next to any video, with title, channel, duration, views and publish time, as JSON.
- YouTube Channel API→YouTube channel API: get any channel’s name, handle, description, subscriber, video and view counts, joined date, country and links from its link or ID, as JSON.
- YouTube Channel Videos API→YouTube channel videos API: list every video a channel uploaded, newest first, with title, duration, views and publish time, from its link, handle or ID, as JSON.
Try the YouTube Comments API
100 free credits on business email, no card. Your first call takes a minute.