List Media
list_mediaFetches media from a Wistia account, filtering by name, type, tags, folder, archived status, or hashed IDs. Supports pagination and batch lookups for reporting and inventory tasks.
Instructions
Lists the media belonging to the account. This endpoint can also be used to do a batch fetch based off of the hashed id.
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 |
|---|---|---|---|
| name | No | Find a media or medias whose name exactly matches this parameter. | |
| page | No | The page number to retrieve. This cannot be combined with `cursor`, pagination. | |
| tags | No | Find all of the medias that match all of these tag names. | |
| type | No | A string specifying which type of media you would like to get. | |
| cursor | No | 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. | |
| account | No | Named private Wistia account; selects credentials, not a remote account ID. | |
| include | No | Set to `speakers` to include active transcript speaker assignments used for diarization. Webinar hosts and panelists are not included. | |
| sort_by | No | Ordering. When using cursor pagination (see cursor param), only `id` and `created` are supported. All other sort_by options (`name`, `updated`, `position`) require offset pagination. | |
| archived | No | Filter by archived status. True will return only archived medias, while false will return only active medias. | |
| per_page | No | The number of medias per page. Use this for both offset pagination and cursor pagination. | |
| all_pages | No | Read bounded page/per_page pages; each request consumes API quota. Not a snapshot or guaranteed complete backup. | |
| folder_id | No | A hashed ID specifying the folder from which you would like to get results. | |
| max_items | No | Maximum returned records with all_pages=true, default 1000. At most 100 requests; output includes continuation state. | |
| hashed_ids | No | Find all of the medias by these hashed_ids. | |
| sort_direction | No | Ordering Sort Direction (0 = desc, 1 = asc; default is 1) | |
| description_format | No | Format for media descriptions |