YouTube Comment Threads API

The Comment Threads API from YouTube — 1 operation(s) for comment threads.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /youtube/v3/commentThreads List comment threads on a video · List commentThreads #
Ask an LLM
“How do I see all comments and replies on a video?”
“Can I list comment threads that are awaiting moderation?”
Tell an agent
List comment threads on video {videoId}.
Show {moderationStatus} comment threads on video {videoId}.
POST /youtube/v3/commentThreads Post a new comment thread · Insert commentThreads #
Ask an LLM
“How do I start a new comment thread on a video?”
“Can I post a comment thread with a top-level comment and replies?”
Tell an agent
Insert a comment thread on video {videoId} with snippet {snippet}.
Start a new comment thread on video {videoId} with replies {replies}.

Documentation

📖
Documentation
https://developers.google.com/youtube/v3/docs/activities/list
📖
GettingStarted
https://developers.google.com/youtube/v3/getting-started
📖
Authentication
https://developers.google.com/youtube/v3/guides/authentication
📖
Documentation
https://developers.google.com/youtube/v3/docs/channels/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/comments/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/commentThreads/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlists/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlistItems/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/search/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/subscriptions/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/videos/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/captions
📖
Documentation
https://developers.google.com/youtube/v3/docs/videoCategories
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nLanguages
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nRegions
📖
Documentation
https://developers.google.com/youtube/analytics
📖
GettingStarted
https://developers.google.com/youtube/reporting/guides/authorization
📖
APIReference
https://developers.google.com/youtube/analytics/reference
📖
Authentication
https://developers.google.com/youtube/reporting/guides/authorization
📖
Documentation
https://developers.google.com/youtube/reporting
📖
APIReference
https://developers.google.com/youtube/reporting/v1/reference/rest
📖
Documentation
https://developers.google.com/youtube/reporting/v1/reports
📖
GettingStarted
https://developers.google.com/youtube/v3/live/getting-started
📖
Documentation
https://developers.google.com/youtube/v3/live/docs
📖
APIReference
https://developers.google.com/youtube/v3/live/docs

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/youtube:youtube-comment-threads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

youtube-comment-threads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Data API v3 Comment Threads API
  version: v3
  description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: Comment Threads
paths:
  /youtube/v3/commentThreads:
    get:
      operationId: youtube.commentThreads.list
      summary: List commentThreads
      description: Retrieves a list of resources, possibly filtered.
      parameters:
      - name: allThreadsRelatedToChannelId
        in: query
        required: false
        description: Returns the comment threads of all videos of the channel and the channel comments as well.
        schema:
          type: string
      - name: channelId
        in: query
        required: false
        description: Returns the comment threads for all the channel comments (ie does not include comments left on videos).
        schema:
          type: string
      - name: id
        in: query
        required: false
        description: Returns the comment threads with the given IDs for Stubby or Apiary.
        schema:
          type: array
          items:
            type: string
      - name: maxResults
        in: query
        required: false
        description: The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        schema:
          format: uint32
          type: integer
          maximum: 100
          default: '20'
          minimum: 1
      - name: moderationStatus
        in: query
        required: false
        description: 'Limits the returned comment threads to those with the specified moderation status. Not compatible with the ''id'' filter. Valid values: published, heldForReview, likelySpam.'
        schema:
          default: published
          enum:
          - published
          - heldForReview
          - likelySpam
          - rejected
          type: string
      - name: order
        in: query
        required: false
        schema:
          default: time
          enum:
          - orderUnspecified
          - time
          - relevance
          type: string
      - name: pageToken
        in: query
        required: false
        description: The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
        schema:
          type: array
          items:
            type: string
      - name: searchTerms
        in: query
        required: false
        description: Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
        schema:
          type: string
      - name: textFormat
        in: query
        required: false
        description: The requested text format for the returned comments.
        schema:
          enum:
          - textFormatUnspecified
          - html
          - plainText
          type: string
          default: html
      - name: videoId
        in: query
        required: false
        description: Returns the comment threads of the specified video.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentThreadListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
      - apiKey: []
      tags:
      - Comment Threads
    post:
      operationId: youtube.commentThreads.insert
      summary: Insert commentThreads
      description: Inserts a new resource into this collection.
      parameters:
      - name: part
        in: query
        required: true
        description: The *part* parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        schema:
          type: array
          items:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentThread'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentThread'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
      - apiKey: []
      tags:
      - Comment Threads
components:
  schemas:
    CommentThread:
      properties:
        id:
          type: string
          description: The ID that YouTube uses to uniquely identify the comment thread.
        snippet:
          $ref: '#/components/schemas/CommentThreadSnippet'
          description: The snippet object contains basic details about the comment thread and also the top level comment.
        kind:
          type: string
          default: youtube#commentThread
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".'
        etag:
          description: Etag of this resource.
          type: string
        replies:
          $ref: '#/components/schemas/CommentThreadReplies'
          description: The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
      type: object
      description: A *comment thread* represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
    PageInfo:
      description: Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
      properties:
        resultsPerPage:
          format: int32
          description: The number of results included in the API response.
          type: integer
        totalResults:
          description: The total number of results in the result set.
          type: integer
          format: int32
      type: object
    CommentSnippetAuthorChannelId:
      properties:
        value:
          type: string
          description: The id of the author's YouTube channel.
      type: object
      description: Contains the id of the author's YouTube channel, if any.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    CommentThreadListResponse:
      type: object
      properties:
        eventId:
          description: Serialized EventId of the request which produced this response.
          type: string
          deprecated: true
        pageInfo:
          $ref: '#/components/schemas/PageInfo'
          description: General pagination information.
        items:
          description: A list of comment threads that match the request criteria.
          items:
            $ref: '#/components/schemas/CommentThread'
          type: array
        tokenPagination:
          $ref: '#/components/schemas/TokenPagination'
        kind:
          default: youtube#commentThreadListResponse
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#commentThreadListResponse".'
          type: string
        etag:
          description: Etag of this resource.
          type: string
        visitorId:
          type: string
          description: The visitorId identifies the visitor.
          deprecated: true
        nextPageToken:
          description: The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
          type: string
    Comment:
      properties:
        snippet:
          $ref: '#/components/schemas/CommentSnippet'
          description: The snippet object contains basic details about the comment.
        id:
          description: The ID that YouTube uses to uniquely identify the comment.
          type: string
        kind:
          default: youtube#comment
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#comment".'
          type: string
        etag:
          type: string
          description: Etag of this resource.
      description: A *comment* represents a single YouTube comment.
      type: object
    TokenPagination:
      properties: {}
      description: Stub token pagination template to suppress results.
      type: object
    CommentThreadSnippet:
      description: Basic details about a comment thread.
      properties:
        canReply:
          description: Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
          type: boolean
        channelId:
          description: The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.
          type: string
        topLevelComment:
          $ref: '#/components/schemas/Comment'
          description: The top level comment of this thread.
        totalReplyCount:
          type: integer
          format: uint32
          description: The total number of replies (not including the top level comment).
        videoId:
          description: The ID of the video the comments refer to, if any.
          type: string
        isPublic:
          type: boolean
          description: Whether the thread (and therefore all its comments) is visible to all YouTube users.
      type: object
    CommentThreadReplies:
      description: Comments written in (direct or indirect) reply to the top level comment.
      properties:
        comments:
          items:
            $ref: '#/components/schemas/Comment'
          type: array
          description: A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
      type: object
    CommentSnippet:
      properties:
        channelId:
          description: The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.
          type: string
        canRate:
          type: boolean
          description: Whether the current viewer can rate this comment.
        parentId:
          description: The unique id of the top-level comment, only set for replies.
          type: string
        authorDisplayName:
          description: The name of the user who posted the comment.
          type: string
        authorProfileImageUrl:
          description: The URL for the avatar of the user who posted the comment.
          type: string
        textOriginal:
          type: string
          description: The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
        authorChannelUrl:
          description: Link to the author's YouTube channel, if any.
          type: string
        likeCount:
          type: integer
          format: uint32
          description: The total number of likes this comment has received.
        moderationStatus:
          enum:
          - published
          - heldForReview
          - likelySpam
          - rejected
          description: The comment's moderation status. Will not be set if the comments were requested through the id filter.
          type: string
        textDisplay:
          description: The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
          type: string
        authorChannelId:
          $ref: '#/components/schemas/CommentSnippetAuthorChannelId'
        publishedAt:
          format: date-time
          type: string
          description: The date and time when the comment was originally published.
        updatedAt:
          format: date-time
          description: The date and time when the comment was last updated.
          type: string
        videoId:
          description: The ID of the video the comment refers to, if any.
          type: string
        imageUrl:
          type: string
          readOnly: true
          description: Output only. The URL of the image or animated GIF attached to the comment, if any. This property is only present when a comment contains an image or GIF. The URL is served as a signed link with a six-hour time to live (TTL) and expires six hours after retrieval.
        viewerRating:
          type: string
          description: The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
          enum:
          - none
          - like
          - dislike
      description: Basic details about a comment, such as its author and text.
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
            https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
            https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
  url: https://developers.google.com/youtube/
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtube.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)