List Captions
Changed onLists captions belonging to the account. Results can be narrowed to a specific media with media_id, or to several media and languages at once with media_ids[] and languages[]. Each caption includes its text, so combining these filters with pagination fetches transcripts for many media in a few requests. Pass include=metadata to omit transcript text when only track and language information is needed.
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 can also be used. It lists only the captions of media it grants the edit-transcripts permission on; no other permission reaches a media's captions.
Request
- Base URLhttps://api.wistia.com/modern
- URLhttps://api.wistia.com/modern/captions
- AuthHTTP bearer
Query parameters
Find captions for a particular media by providing the media hashed ID
Find captions belonging to any of these media hashed IDs. IDs that don't match a media the token can access are ignored rather than returning an error.
Find captions in any of these languages, using the codes returned in each caption's language field (for example eng or spa). When combined with media_ids[], captions must match both.
Set to metadata to omit caption text and return only track metadata. Omitting this parameter preserves the existing response, including SRT text.
The page number to retrieve. This cannot be combined with cursor, pagination.
The number of medias per page. Use this for both offset pagination and cursor pagination.
If cursor[enabled] is set to 1 then cursor pagination is enabled and the first set of records are fetched up to the per_page. Cursor pagination will also be turned on if cursor[before] or cursor[after] are set. Records returned will have a cursor property set which can be used to fetch more records in the same sort_by ordering. The cursor value of the last record can be used to fetch records after the current result set and the cursor of the first record can be used to fetch records before the result set.
NOTE: a cursor value is only valid if the sort_by value hasn't changed from the last fetch. For example, you cannot fetch using sort_by id and then pass that cursor value to a sort_by name.
Ordering. When using cursor pagination (see cursor param), only id is supported.
Ordering Sort Direction (0 = desc, 1 = asc; default is 1)
Headers
Response
Captions retrieval successful
Changes
- info
endpoint added
- info