Show Account Top Content
get_account_top_contentRanks Wistia account media, channels, or folders by plays, loads, or other metrics over a date range, returning top results with analytics.
Instructions
Rank the account's content by a chosen metric over a date range. Returns the top
media, channels, or folders (controlled by group_by) with their analytics,
answering questions like "what were my most-played videos last month?".
Optionally pass hashed_ids to scope the ranking to a specific set of media
instead of the whole account : useful for fetching analytics for a known list
of videos, still sorted by sort_by.
The date range between start_date and end_date must not exceed 2 years.
Requires api token with one of the following permissions
Read detailed statsTokens 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. | |
| sort_by | No | The metric to rank content by. | plays |
| end_date | Yes | End date for the analytics period in ISO 8601 format (YYYY-MM-DD). Exclusive — the range ends before the beginning of this date. | |
| group_by | No | The type of content to rank. | media |
| per_page | No | Number of results to return. Defaults to the number of hashed_ids requested, or 10 when hashed_ids is not given. | |
| hashed_ids | No | Scope the ranking to these specific media's hashed IDs, rather than the whole account. Only valid with group_by=media. | |
| start_date | Yes | Start date for the analytics period in ISO 8601 format (YYYY-MM-DD). Inclusive — the range starts at the beginning of this date. | |
| sort_direction | No | The sort direction. | desc |