> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List YouTube video comments

> Lists comments for a video; additional parameters are forwarded to the YouTube API programmatically via Posttu's YouTube API and MCP server.

> [!NOTE]
>
> Looking for a unified API across all platforms? Posttu also provides a centralized [Inbox API](https://docs.posttu.com/api-reference/inbox/overview.md) (`/api/v1/inbox/*`) supporting comments, direct messages, replies, likes, and moderation in a single endpoint.


## OpenAPI

````yaml openapi.json POST /api/v1/youtube/posts/comments/get
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/youtube/posts/comments/get:
    post:
      tags:
        - YouTube
      summary: List YouTube video comments
      description: >-
        Lists comments for a video; additional parameters are forwarded to the
        YouTube API.

        Requires API key scope: `youtube:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YoutubeGetCommentsInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YoutubeCommentsResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    YoutubeGetCommentsInput:
      type: object
      properties:
        channelId:
          type: string
          description: YouTube channel ID
          example: ch_yt123
      required:
        - channelId
    YoutubeCommentsResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/YoutubeCommentsListResponse'
      required:
        - success
        - data
    YoutubeCommentsListResponse:
      type:
        - object
        - 'null'
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/YoutubeCommentThread'
        nextPageToken:
          type: string
        pageInfo:
          type: object
          properties:
            totalResults:
              type: number
            resultsPerPage:
              type: number
          required:
            - totalResults
            - resultsPerPage
      required:
        - items
        - pageInfo
      description: The YoutubeCommentsListResponse.
    YoutubeCommentThread:
      type: object
      properties:
        id:
          type: string
        snippet:
          type: object
          properties:
            channelId:
              type: string
            videoId:
              type: string
            topLevelComment:
              $ref: '#/components/schemas/YoutubeComment'
            canReply:
              type: boolean
            totalReplyCount:
              type: number
            isPublic:
              type: boolean
          required:
            - channelId
            - videoId
            - topLevelComment
            - canReply
            - totalReplyCount
            - isPublic
        replies:
          type: object
          properties:
            comments:
              type: array
              items:
                $ref: '#/components/schemas/YoutubeComment'
          required:
            - comments
      required:
        - id
        - snippet
    YoutubeComment:
      type: object
      properties:
        id:
          type: string
        snippet:
          type: object
          properties:
            authorDisplayName:
              type: string
            authorProfileImageUrl:
              type: string
            authorChannelUrl:
              type: string
            authorChannelId:
              type: object
              properties:
                value:
                  type: string
              required:
                - value
            channelId:
              type: string
            videoId:
              type: string
            textDisplay:
              type: string
            textOriginal:
              type: string
            parentId:
              type: string
            canRate:
              type: boolean
            viewerRating:
              type: string
            likeCount:
              type: number
            publishedAt:
              type: string
            updatedAt:
              type: string
          required:
            - authorDisplayName
            - authorProfileImageUrl
            - authorChannelUrl
            - authorChannelId
            - channelId
            - videoId
            - textDisplay
            - textOriginal
            - parentId
            - canRate
            - viewerRating
            - likeCount
            - publishedAt
            - updatedAt
      required:
        - id
        - snippet
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.