TubeLab icon

TubeLab

Get trending YouTube channels and outlier videos data for any niche.

Video → Comments

AI-generated

Summary

Fetch comments for a specified YouTube video.

Inputs

  • videoId (required) — The YouTube Video ID to fetch comments for, found at the end of the URL "https://youtube.com/watch?v=VIDEO_ID".
  • requestOptions — Options to customize the request, such as batching, SSL handling, timeout, and proxy.

Output shape

a list of comments for the specified video

Returns the first 100 comments. Batching options allow control of the request rate and timeout settings.

Examples

Example 1: Fetch comments for a video with specific batching

Set video ID to 'abcd1234' with batching of 10 items every 2000 milliseconds.

Discussion