---
openapi: 3.1.0
info:
  title: YouTube Transcripts — SearchApi
  version: 3.1.0
  description: Generated from the SearchApi engine catalog. Parameters marked in the
    catalog as unverified are described from its records rather than from the vendor's
    specification.
servers:
- url: https://www.searchapi.io/api/v1
paths:
  "/search":
    get:
      operationId: youtube_transcripts
      summary: YouTube Transcripts
      parameters:
      - name: engine
        in: query
        required: true
        description: Engine that retrieves the data; fixed per API (see Apis::BY_ENGINE
          keys).
        schema:
          type: string
          const: youtube_transcripts
      - name: api_key
        in: query
        required: true
        description: 'SearchApi.io API key; alternatively send ''Authorization: Bearer
          <key>''.'
        schema:
          type: string
      - name: zero_retention
        in: query
        required: false
        description: 'Enterprise-only: disables all logging and persistent storage
          of the search.'
        schema:
          type: boolean
          default: false
      - name: video_id
        in: query
        required: true
        description: YouTube video identifier to fetch the transcript for.
        schema:
          type: string
      - name: lang
        in: query
        required: false
        description: Transcript language; supported values listed at docs/parameters/youtube-transcripts/lang.
        schema:
          type: string
          default: en
      - name: transcript_type
        in: query
        required: false
        description: Preference when both auto-generated and manually uploaded transcripts
          exist.
        schema:
          type: string
          enum:
          - auto
          - manual
      responses:
        '200':
          description: A YouTube Transcripts result envelope.
