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

# Get YouTube video metadata



## OpenAPI

````yaml /openapi.json get /v1/youtube/video
openapi: 3.1.0
info:
  title: urltodata.ai
  description: >-
    API for extracting transcripts, metadata, and structured data from YouTube,
    TikTok, Instagram, X (Twitter), Facebook, and the web.
  version: 0.1.0
servers:
  - url: https://api.urltodata.ai
    description: Production API
security:
  - bearerAuth: []
paths:
  /v1/youtube/video:
    get:
      summary: Get YouTube video metadata
      operationId: getYoutubeVideo
      parameters:
        - name: id
          in: query
          required: true
          description: YouTube video ID or URL
          schema:
            type: string
      responses:
        '200':
          description: Video metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YoutubeVideo'
        '400':
          $ref: '#/components/responses/InvalidRequest'
components:
  schemas:
    YoutubeVideo:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
        duration:
          type: integer
          description: Duration in seconds
        channel:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
        tags:
          type: array
          items:
            type: string
        thumbnail:
          type:
            - string
            - 'null'
        uploadDate:
          type:
            - string
            - 'null'
          format: date-time
        viewCount:
          type:
            - integer
            - 'null'
        likeCount:
          type:
            - integer
            - 'null'
        isLive:
          type: boolean
        transcriptLanguages:
          type: array
          items:
            type: string
    ApiError:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
        documentationUrl:
          type: string
  responses:
    InvalidRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: your-api-key
      description: API key as Bearer token (e.g. Bearer mp_abc123_secret)

````