> ## 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 channel metadata



## OpenAPI

````yaml /openapi.json get /v1/youtube/channel
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/channel:
    get:
      summary: Get YouTube channel metadata
      operationId: getYoutubeChannel
      parameters:
        - name: id
          in: query
          required: true
          description: Channel ID, handle, or URL
          schema:
            type: string
      responses:
        '200':
          description: Channel metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YoutubeChannel'
        '400':
          $ref: '#/components/responses/InvalidRequest'
components:
  schemas:
    YoutubeChannel:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        handle:
          type:
            - string
            - 'null'
        description:
          type: string
        url:
          type: string
        subscriberCount:
          type:
            - integer
            - 'null'
        videoCount:
          type:
            - integer
            - 'null'
        viewCount:
          type:
            - integer
            - 'null'
        thumbnail:
          type:
            - string
            - 'null'
        banner:
          type:
            - string
            - 'null'
    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)

````