Show Captions
Changed onReturns 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 data
Tokens 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.
An expiring access token created with the all:delegate_to_contact_permissions scope and an authorization granting the edit-transcripts permission on this media can also be used. For a token granted any other permission on the media the captions are not found.
Request
- Base URLhttps://api.wistia.com/modern
- URLhttps://api.wistia.com/modern/medias/{mediaHashedId}/captions/{languageCode}
- AuthHTTP bearer
Path parameters
The hashed ID of the media from which captions are to be retrieved.
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).
Query parameters
Set to segments to include time-coded caption cues.
Set to segments for time-coded caption cues or diarized_segments for speaker-turn segments in JSON responses.
For TXT responses, set to true to group the transcript by speaker turns and include speaker labels. Ignored for other response formats.
Headers
Response
Successful response containing captions in the requested format
Changes
- info
endpoint added
- info