Create Comment Thread
youtube_create_comment_threadPost a new top-level comment on a YouTube video, creating a comment thread. Provide the video ID and comment text to start a discussion.
Instructions
Posts a new top-level comment on a YouTube video, creating a new comment thread.
Args
videoId(string, required) — ID of the video to comment on.text(string, required) — Text of the top-level comment (supports basic HTML entities).
Returns The newly created commentThread resource:
{
"id": "string",
"videoId": "string",
"authorDisplayName": "string",
"text": "string",
"likeCount": 0,
"publishedAt": "ISO-8601"
}Examples
Comment on a video:
{ "videoId": "dQw4w9WgXcQ", "text": "Great video!" }
Errors
400 if
textis empty.403 if comments are disabled for the video or quota is exceeded.
404 if the video does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videoId | Yes | ID of the video to post the top-level comment on. | |
| text | Yes | Text of the top-level comment. |