Skip to main content

captions

Creates, updates, deletes, gets or lists a captions resource.

Overview

Namecaptions
TypeResource
Idcloudflare.streams.captions

Fields

The following fields are returned by SELECT queries:

List captions or subtitles response.

NameDatatypeDescription
generatedbooleanWhether the caption was generated via AI.
labelstringThe language label displayed in the native language to users. (example: Türkçe)
languagestringThe language tag in BCP 47 format. (example: tr)
statusstringThe status of a generated caption. (ready, inprogress, error)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectidentifier, account_idLists the available captions or subtitles for a specific video.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
identifierstringResource identifier.

SELECT examples

Lists the available captions or subtitles for a specific video.

SELECT
generated,
label,
language,
status
FROM cloudflare.streams.captions
WHERE identifier = '{{ identifier }}' -- required
AND account_id = '{{ account_id }}' -- required
;