Show Captions
get_captionsRetrieve a media item's captions in a specified language and output them as JSON, SRT, VTT, or TXT for transcripts and accessibility.
Instructions
Returns a media's captions in the specified language. Supports multiple formats: JSON (default), SRT, VTT, and TXT. Use file extensions (.srt, .vtt, .txt) or Accept headers to specify format.
Requires api token with one of the following permissions
Read all folder and media dataTokens with the "Act with a team member's permissions" permission
(all:delegate_to_contact_permissions scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.
Read-only account operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Wistia account; selects credentials, not a remote account ID. | |
| include | No | Set to `segments` for time-coded caption cues or `diarized_segments` for speaker-turn segments in JSON responses. | |
| language_code | Yes | The 3-character ISO 639-2 language code of the captions to be retrieved (e.g., `eng`, `fra`, `spa`). Some languages use extended IETF subtags (e.g., `zh-Hant`). | |
| media_hashed_id | Yes | The hashed ID of the media from which captions are to be retrieved. | |
| include_speakers | No | For TXT responses, set to true to group the transcript by speaker turns and include speaker labels. Ignored for other response formats. |