v1

latestOpenAPI 3.1.02026-07-266827131.9 KB

YouTube Video Comment

Get the comment list for YouTube videos. Each API call costs $0.01 USD. The maximum value for pagination parameter pageSize is 100, nextPageToken should be null for the first request.

post/youtube/video/comment

Request body

video_idstring required

YouTube video ID

page_sizeinteger

Number of comments returned per page, maximum value is 100, default is 100

next_page_tokenstring nullable

Next page token, should be null for the first request, use the value returned from the previous response for subsequent requests

Example request

{
  "video_id": "Y2y4OpzKIK4",
  "page_size": 100
}

Response

Successfully returned comment list

itemsobject[]

Comment list array

next_page_tokenstring nullable

Next page token, used to get the next page of data, null indicates all data has been retrieved

page_infoobject

Pagination information