Cloudflare Stream Captions API

Per-language captions and subtitles for a video.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Localisation & Versioning Management BC-3700.60

Operations 6

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

GET /accounts/{account_id}/stream/{identifier}/captions List caption languages on a video · List captions #
Ask an LLM
“Which caption and subtitle languages are available on my video?”
“Can I see the language codes of the captions attached to a video?”
Tell an agent
List the caption languages for video {identifier} in account {account_id}.
Show every language track attached to video {identifier} in account {account_id}.
GET /accounts/{account_id}/stream/{identifier}/captions/{language} Get a caption entry for one language · Get caption details for a language #
Ask an LLM
“What are the details of the captions already uploaded for one language?”
“Can I look up a single caption entry by its language tag?”
Tell an agent
Get the caption entry for language {language} on video {identifier} in account {account_id}.
Show the existing {language} caption details for video {identifier} in account {account_id}.
PUT /accounts/{account_id}/stream/{identifier}/captions/{language} Upload a caption file for a language · Upload captions for a language #
Ask an LLM
“How do I add a subtitle file for a language to my video?”
“Can I upload a caption file in a format like SRT or VTT?”
Tell an agent
Upload a caption file for language {language} on video {identifier} in account {account_id}.
Add the {language} subtitle file {file} to video {identifier} in account {account_id}.
DELETE /accounts/{account_id}/stream/{identifier}/captions/{language} Delete captions for a language · Delete captions for a language #
Ask an LLM
“Can I remove the captions for one language from my video?”
“What happens to a language track when I delete it?”
Tell an agent destructive · confirm first
Delete the {language} captions from video {identifier} in account {account_id}.
Remove the {language} language track on video {identifier} in account {account_id}.
POST /accounts/{account_id}/stream/{identifier}/captions/{language}/generate Generate captions for a language with AI · Generate captions with AI #
Ask an LLM
“Can AI transcribe my video into captions automatically?”
“How do I generate captions for a language I haven't uploaded yet?”
Tell an agent
Generate {language} captions for video {identifier} in account {account_id} using AI.
Auto-transcribe video {identifier} in account {account_id} into {language} captions.
GET /accounts/{account_id}/stream/{identifier}/captions/{language}/vtt Download captions as WebVTT · Get captions as WebVTT #
Ask an LLM
“Can I download the captions for a language in WebVTT format?”
“What does the WebVTT version of my captions look like?”
Tell an agent
Download the {language} captions for video {identifier} in account {account_id} as WebVTT.
Get the WebVTT file of the {language} captions on video {identifier} in account {account_id}.

Documentation

Specifications

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/cloudflare-stream:cloudflare-stream-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

cloudflare-stream-captions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudflare Stream Captions API
  description: Cloudflare Stream is the video streaming, hosting, and live-video product from Cloudflare.
  version: '1.0'
  contact:
    name: Cloudflare Stream
    url: https://developers.cloudflare.com/stream/
  license:
    name: Cloudflare Website and Online Services Terms of Use
    url: https://www.cloudflare.com/terms/
servers:
- url: https://api.cloudflare.com/client/v4
  description: Cloudflare API v4
security:
- bearerAuth: []
tags:
- name: Captions
  description: Per-language captions and subtitles for a video.
paths:
  /accounts/{account_id}/stream/{identifier}/captions:
    get:
      operationId: listCaptions
      tags:
      - Captions
      summary: List captions
      description: Lists the available caption and subtitle languages for a video.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      responses:
        '200':
          description: A list of captions.
  /accounts/{account_id}/stream/{identifier}/captions/{language}:
    get:
      operationId: getCaption
      tags:
      - Captions
      summary: Get caption details for a language
      description: Fetches the caption entry for a specific BCP 47 language tag.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      - $ref: '#/components/parameters/Language'
      responses:
        '200':
          description: The caption details.
    put:
      operationId: uploadCaption
      tags:
      - Captions
      summary: Upload captions for a language
      description: Uploads a caption or subtitle file for a language via multipart/form-data.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      - $ref: '#/components/parameters/Language'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '200':
          description: The uploaded caption.
    delete:
      operationId: deleteCaption
      tags:
      - Captions
      summary: Delete captions for a language
      description: Deletes the captions for a language from a video.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      - $ref: '#/components/parameters/Language'
      responses:
        '200':
          description: The captions were deleted.
  /accounts/{account_id}/stream/{identifier}/captions/{language}/generate:
    post:
      operationId: generateCaption
      tags:
      - Captions
      summary: Generate captions with AI
      description: Automatically generates captions for a language using AI transcription.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      - $ref: '#/components/parameters/Language'
      responses:
        '200':
          description: The generation job was accepted.
  /accounts/{account_id}/stream/{identifier}/captions/{language}/vtt:
    get:
      operationId: getCaptionVtt
      tags:
      - Captions
      summary: Get captions as WebVTT
      description: Returns the captions for a language in WebVTT format.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Identifier'
      - $ref: '#/components/parameters/Language'
      responses:
        '200':
          description: The WebVTT caption file.
          content:
            text/vtt:
              schema:
                type: string
components:
  parameters:
    Identifier:
      name: identifier
      in: path
      required: true
      description: The video identifier (uid).
      schema:
        type: string
    AccountId:
      name: account_id
      in: path
      required: true
      description: The Cloudflare account identifier.
      schema:
        type: string
    Language:
      name: language
      in: path
      required: true
      description: The BCP 47 language tag (for example, en or tr).
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Cloudflare API token passed in an Authorization Bearer header.