TikHub icon

TikHub

Interact with TikHub API (TikTok, Instagram, YouTube, Twitter)

YouTube → Get Video Comments

AI-generated

Summary

Retrieve comments for a specific YouTube video. Use the continuation token for pagination to fetch subsequent pages of comments.

Inputs

  • Video ID (required) — The unique identifier of the YouTube video from which to retrieve comments (e.g., dQw4w9WgXcQ).
  • Continuation Token — A token obtained from a previous response to fetch the next page of comments.

Output shape

a list of video comments

The API response will be a JSON object containing the comments. If more comments are available, a new 'continuation' token will be included, which can be used as the 'Continuation Token' input for the next request to retrieve the subsequent page of results.

Examples

Example 1: Get the initial set of comments for a YouTube video.

Provide the 'Video ID' for the target YouTube video.

Example 2: Fetch the next page of comments for a video.

Provide the 'Video ID' and the 'Continuation Token' received from the previous request.

Discussion