YouTube Captions API

The Captions API from YouTube — 2 operation(s) for captions.

GitHub OpenAPI
Business capability
Localisation & Versioning Management BC-3700.60

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /youtube/v3/captions Update a caption track · Update captions #
Ask an LLM
“Can I rename an existing caption track?”
“Is it possible to sync an uploaded caption track with the audio automatically?”
Tell an agent
Update caption track {id} with snippet {snippet}.
Sync caption track {id} with the audio.
DELETE /youtube/v3/captions Delete a caption track · Delete captions #
Ask an LLM
“Can I remove a caption track from a video?”
“What happens to the captions when I delete a track?”
Tell an agent destructive · confirm first
Delete caption track {id}.
Remove the captions with track ID {id}.
POST /youtube/v3/captions Upload closed captions for a video · Insert captions #
Ask an LLM
“How do I add captions to an uploaded video?”
“Can I sync uploaded captions with the audio automatically?”
Tell an agent
Insert a caption track with snippet {snippet} for part {part}.
Upload closed captions for video {onBehalfOf} and sync them with the audio ({sync}).
GET /youtube/v3/captions List a video's captions · List captions #
Ask an LLM
“Which caption tracks exist for a video?”
“Can I list captions by their ID?”
Tell an agent
List captions for video {videoId}.
Show caption tracks {id}.
GET /youtube/v3/captions/{id} Download a caption track · Download captions #
Ask an LLM
“Can I download a caption track as SRT or VTT?”
“Is it possible to translate captions into another language?”
Tell an agent
Download caption track {id} as {tfmt}.
Translate caption track {id} into {tlang}.

Documentation

📖
Documentation
https://developers.google.com/youtube/v3/docs/activities/list
📖
GettingStarted
https://developers.google.com/youtube/v3/getting-started
📖
Authentication
https://developers.google.com/youtube/v3/guides/authentication
📖
Documentation
https://developers.google.com/youtube/v3/docs/channels/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/comments/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/commentThreads/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlists/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlistItems/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/search/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/subscriptions/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/videos/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/captions
📖
Documentation
https://developers.google.com/youtube/v3/docs/videoCategories
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nLanguages
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nRegions
📖
Documentation
https://developers.google.com/youtube/analytics
📖
GettingStarted
https://developers.google.com/youtube/reporting/guides/authorization
📖
APIReference
https://developers.google.com/youtube/analytics/reference
📖
Authentication
https://developers.google.com/youtube/reporting/guides/authorization
📖
Documentation
https://developers.google.com/youtube/reporting
📖
APIReference
https://developers.google.com/youtube/reporting/v1/reference/rest
📖
Documentation
https://developers.google.com/youtube/reporting/v1/reports
📖
GettingStarted
https://developers.google.com/youtube/v3/live/getting-started
📖
Documentation
https://developers.google.com/youtube/v3/live/docs
📖
APIReference
https://developers.google.com/youtube/v3/live/docs

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/youtube:youtube-captions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

youtube-captions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Data API v3 Captions API
  version: v3
  description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 5 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: Captions
paths:
  /youtube/v3/captions:
    put:
      operationId: youtube.captions.update
      summary: Update captions
      description: Updates an existing resource.
      parameters:
      - name: onBehalfOf
        in: query
        required: false
        description: ID of the Google+ Page for the channel that the request is on behalf of.
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        schema:
          type: array
          items:
            type: string
      - name: sync
        in: query
        required: false
        description: Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        schema:
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Caption'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Caption'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      x-google-media-upload:
        accept:
        - text/xml
        - application/octet-stream
        - '*/*'
        maxSize: '104857600'
        protocols:
          resumable:
            multipart: true
            path: /resumable/upload/youtube/v3/captions
          simple:
            path: /upload/youtube/v3/captions
            multipart: true
      tags:
      - Captions
    delete:
      operationId: youtube.captions.delete
      summary: Delete captions
      description: Deletes a resource.
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: onBehalfOf
        in: query
        required: false
        description: ID of the Google+ Page for the channel that the request is be on behalf of
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - Captions
    post:
      operationId: youtube.captions.insert
      summary: Insert captions
      description: Inserts a new resource into this collection.
      parameters:
      - name: onBehalfOf
        in: query
        required: false
        description: ID of the Google+ Page for the channel that the request is be on behalf of
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
        schema:
          type: array
          items:
            type: string
      - name: sync
        in: query
        required: false
        description: Extra parameter to allow automatically syncing the uploaded caption/transcript with the audio.
        schema:
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Caption'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Caption'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      x-google-media-upload:
        accept:
        - text/xml
        - application/octet-stream
        - '*/*'
        maxSize: '104857600'
        protocols:
          simple:
            multipart: true
            path: /upload/youtube/v3/captions
          resumable:
            path: /resumable/upload/youtube/v3/captions
            multipart: true
      tags:
      - Captions
    get:
      operationId: youtube.captions.list
      summary: List captions
      description: Retrieves a list of resources, possibly filtered.
      parameters:
      - name: id
        in: query
        required: false
        description: Returns the captions with the given IDs for Stubby or Apiary.
        schema:
          type: array
          items:
            type: string
      - name: onBehalfOf
        in: query
        required: false
        description: ID of the Google+ Page for the channel that the request is on behalf of.
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
        schema:
          type: array
          items:
            type: string
      - name: videoId
        in: query
        required: true
        description: Returns the captions for the specified video.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaptionListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - Captions
  /youtube/v3/captions/{id}:
    get:
      operationId: youtube.captions.download
      summary: Download captions
      description: Downloads a caption track.
      parameters:
      - name: id
        in: path
        required: true
        description: The ID of the caption track to download, required for One Platform.
        schema:
          type: string
      - name: onBehalfOf
        in: query
        required: false
        description: ID of the Google+ Page for the channel that the request is be on behalf of
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: tfmt
        in: query
        required: false
        description: Convert the captions into this format. Supported options are sbv, srt, and vtt.
        schema:
          type: string
      - name: tlang
        in: query
        required: false
        description: tlang is the language code; machine translate the captions into this language.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - Captions
components:
  schemas:
    CaptionSnippet:
      properties:
        status:
          enum:
          - serving
          - syncing
          - failed
          type: string
          description: The caption track's status.
        isEasyReader:
          type: boolean
          description: Indicates whether caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is false.
        language:
          description: The language of the caption track. The property value is a BCP-47 language tag.
          type: string
        isCC:
          type: boolean
          description: Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is false.
        isAutoSynced:
          type: boolean
          description: Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions.
        audioTrackType:
          type: string
          description: The type of audio track associated with the caption track.
          enum:
          - unknown
          - primary
          - commentary
          - descriptive
        isLarge:
          type: boolean
          description: Indicates whether the caption track uses large text for the vision-impaired. The default value is false.
        lastUpdated:
          description: The date and time when the caption track was last updated.
          type: string
          format: date-time
        failureReason:
          type: string
          description: The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed.
          enum:
          - unknownFormat
          - unsupportedFormat
          - processingFailed
        videoId:
          type: string
          description: The ID that YouTube uses to uniquely identify the video associated with the caption track. @mutable youtube.captions.insert
        isDraft:
          type: boolean
          description: Indicates whether the caption track is a draft. If the value is true, then the track is not publicly visible. The default value is false. @mutable youtube.captions.insert youtube.captions.update
        name:
          description: The name of the caption track. The name is intended to be visible to the user as an option during playback.
          type: string
        trackKind:
          description: The caption track's type.
          enum:
          - standard
          - ASR
          - forced
          type: string
      description: Basic details about a caption track, such as its language and name.
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    Caption:
      type: object
      properties:
        snippet:
          $ref: '#/components/schemas/CaptionSnippet'
          description: The snippet object contains basic details about the caption.
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#caption".'
          type: string
          default: youtube#caption
        etag:
          type: string
          description: Etag of this resource.
        id:
          type: string
          description: The ID that YouTube uses to uniquely identify the caption track.
      description: A *caption* resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
    CaptionListResponse:
      type: object
      properties:
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#captionListResponse".'
          default: youtube#captionListResponse
          type: string
        etag:
          description: Etag of this resource.
          type: string
        visitorId:
          type: string
          description: The visitorId identifies the visitor.
          deprecated: true
        eventId:
          type: string
          description: Serialized EventId of the request which produced this response.
          deprecated: true
        items:
          description: A list of captions that match the request criteria.
          type: array
          items:
            $ref: '#/components/schemas/Caption'
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
            https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
            https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
  url: https://developers.google.com/youtube/
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtube.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)