> ## 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.

# Get a YouTube video

> Retrieves a single YouTube video by ID via Posttu's YouTube REST API (POST /api/v1/youtube/posts/get) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/youtube/posts/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/get:
    post:
      tags:
        - YouTube
      summary: Get a YouTube video
      description: |-
        Retrieves a single YouTube video by ID.
        Requires API key scope: `youtube:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YoutubeGetPostInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YoutubePostResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    YoutubeGetPostInput:
      type: object
      properties:
        channelId:
          type: string
          description: YouTube channel ID
          example: ch_yt123
        externalPostId:
          type: string
          description: YouTube video ID
      required:
        - channelId
        - externalPostId
    YoutubePostResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/YoutubeVideo'
      required:
        - success
        - data
    YoutubeVideo:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        postUrl:
          type: string
        channelTitle:
          type: string
        created:
          type: string
        description:
          type: string
        privacyStatus:
          type: string
        madeForKids:
          type: boolean
        publishedAt:
          type: string
        tags:
          type: array
          items:
            type: string
        thumbnailUrl:
          type: string
        title:
          type: string
        analytics:
          type: object
          properties:
            averageViewDuration:
              type: number
            averageViewPercentage:
              type: number
            comments:
              type: number
            dislikes:
              type: number
            estimatedMinutesWatched:
              type: number
            likes:
              type: number
            subscribersGained:
              type: number
            subscribersLost:
              type: number
            videosAddedToPlaylists:
              type: number
            views:
              type: number
          required:
            - comments
            - dislikes
            - likes
            - views
      required:
        - id
        - postUrl
        - channelTitle
        - created
        - description
        - privacyStatus
        - madeForKids
        - publishedAt
        - tags
        - thumbnailUrl
        - title
        - analytics
      description: The YoutubeVideo.
  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.