> ## 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 translated transcript for a YouTube video



## OpenAPI

````yaml /openapi.json get /v1/youtube/transcript/translate
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/transcript/translate:
    get:
      summary: Get translated transcript for a YouTube video
      operationId: translateYoutubeTranscript
      parameters:
        - name: videoId
          in: query
          description: YouTube video ID
          schema:
            type: string
        - name: url
          in: query
          description: YouTube video URL
          schema:
            type: string
        - name: lang
          in: query
          required: true
          description: Target language code
          schema:
            type: string
        - name: text
          in: query
          description: Return plain text instead of chunks
          schema:
            type: boolean
        - name: chunkSize
          in: query
          description: Max chars per chunk (50-10000)
          schema:
            type: integer
            minimum: 50
            maximum: 10000
      responses:
        '200':
          description: Translated transcript
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transcript'
components:
  schemas:
    Transcript:
      type: object
      properties:
        content:
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/TranscriptChunk'
        lang:
          type: string
        availableLangs:
          type: array
          items:
            type: string
    TranscriptChunk:
      type: object
      properties:
        text:
          type: string
        offset:
          type: integer
          description: Offset in milliseconds
        duration:
          type: integer
          description: Duration in milliseconds
        lang:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: your-api-key
      description: API key as Bearer token (e.g. Bearer mp_abc123_secret)

````