Get comments from any YouTube video by URL. Returns each comment's text, author, like count, reply count, publication date, a direct link, and up to 5 preview replies. Supports sorting by most recent or relevance, and fetching multiple pages in a single API call.
curl "https://apidirect.io/v1/youtube/comments?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&pages=1&sort_by=relevance" \
-H "X-API-Key: YOUR_API_KEY"
{
"comments": [
{
"comment_id": "Ugzge340dBgB75hWBm54AaABAg",
"text": "can confirm: he never gave us up",
"author": "@YouTube",
"author_channel_id": "UCBR8-60-B28hp2BmDPdntcQ",
"author_channel_url": "http://www.youtube.com/@YouTube",
"author_thumbnail": "https://yt3.ggpht.com/.../photo.jpg",
"likes": 261929,
"reply_count": 1000,
"date": "2025-04-22 19:05:08",
"updated_date": "2025-04-22 19:05:08",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ&lc=Ugzge340dBgB75hWBm54AaABAg",
"video_id": "dQw4w9WgXcQ",
"channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
"source": "YouTube",
"domain": "youtube.com",
"replies": [
{
"comment_id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHE9eIiztxR",
"text": "YOUTUBE AND ONE LIKE WOOHAAAAH",
"author": "@linganguliguliwatcha",
"author_channel_id": "UCjFRISlX-LPxiqViJAE3h6Q",
"author_channel_url": "http://www.youtube.com/@linganguliguliwatcha",
"author_thumbnail": "https://yt3.ggpht.com/.../photo.jpg",
"likes": 7026,
"date": "2025-04-22 19:14:32",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ&lc=Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHE9eIiztxR",
"video_id": "dQw4w9WgXcQ"
}
]
}
],
"pages": 1,
"count": 100
}
Pass the video's URL in the url parameter. Most YouTube URL formats are accepted (watch, youtu.be, shorts, embed, live), as is a bare 11-character video ID.
Use sort_by=relevance (default) for the most relevant comments first, or sort_by=most_recent for newest first. A video's pinned comment may appear first regardless of sort order.
Each comment includes its total reply_count plus up to 5 preview replies in the replies array. Comments with more replies will show only the first few.
Videos with comments disabled (or otherwise unavailable) return an empty comments array. A nonexistent, private, or removed video returns a 404 with code video_not_found.
Each page returns up to ~100 comments. Set pages (1-10) to fetch and merge multiple pages in one call. You are billed per page requested at $0.005 per page.
You only pay for successful requests. The YouTube Video Comments API costs $0.005 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.
No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.
Yes, there's a concurrency limit of 3 simultaneous requests per endpoint per user. If you need more, just get in touch.
Get your API key and start making requests in minutes. 50 requests/month free every month.
Get API Key