Maximum number of comments to return. Defaults to 20.
fieldsstring[]
Fields to include per comment. Omit for defaults: commentId, text, authorName, likeCount, replyCount, publishedTime. Use ["*"] for all fields. Available fields: commentId, text, authorName, likeCount, replyCount, publishedTime, authorChannelId, authorAvatarUrl, isVerified, isCreator, isHearted.
Response Schema
dataobject
YouTube comments result
videoobject | null
Video metadata wrapper (always returned)
commentsobject[]
Array of comment objects.
countnumber
Number of comments returned
totalCommentsnumber | null
Total comment count for the video
truncatedboolean
True if results were cut short. Only present when truncation occurred.
metaobject
Request metadata
toolstring
Tool name (youtube-comments)
creditsUsednumber
Credits consumed (1)
requestIdstring
Unique request ID
Request
curl -X POST https://scraper.run/api/v1/tools/youtube/comments \
/api/v1/tools/youtube/commentsParameters
YouTube video URL or video ID.
Maximum number of comments to return. Defaults to 20.
Fields to include per comment. Omit for defaults: commentId, text, authorName, likeCount, replyCount, publishedTime. Use ["*"] for all fields. Available fields: commentId, text, authorName, likeCount, replyCount, publishedTime, authorChannelId, authorAvatarUrl, isVerified, isCreator, isHearted.
Response Schema
YouTube comments result
Video metadata wrapper (always returned)
Array of comment objects.
Number of comments returned
Total comment count for the video
True if results were cut short. Only present when truncation occurred.
Request metadata
Tool name (youtube-comments)
Credits consumed (1)
Unique request ID
Request
Response Example