List video views

Retrieves a list of video views that fall within the specified filters and have been completed within a defined timespan. It lets you to analyse viewer interactions with your video content effectively. #### How it works 1. Send a `GET` request to this endpoint with the desired query parameters. 2. Specify the timespan for which you want to retrieve the video views using the `timespan[]` parameter. 3. Filter the views based on dimensions such as browser, device, video title, viewer ID, etc., using the `filterby[]` parameter. Get the dimensions by calling <a href="https://fastpix.com/docs/video-data-api/dimensions/list-dimensions">list the dimensions</a> endpoint. 4. Paginate the results using the `limit` and `offset` parameters. 5. You can also filter by `viewerId`, `errorCode`, `orderBy` a specific field, and `sortOrder` in ascending or descending order. 6. You receive a response containing the list of video views matching the specified criteria. Each view in the response includes a unique `viewId`. You can use this `viewId` with the <a href="https://fastpix.com/docs/video-data-api/views/get-video-view-details">Get Video View Details</a> endpoint to retrieve more detailed information about that specific view. #### Example If you manage a video streaming service and want to analyze content performance across devices and browsers. By calling the List Video Views endpoint with filters such as `browser_name` and `device_type`, you can identify which platforms are most popular with your audience. This information helps optimize content for widely used platforms and troubleshoot playback issues on less common devices. Related guide: <a href="https://fastpix.com/docs/video-data/audience-metrics">Audience metrics</a>, <a href="https://fastpix.com/docs/video-data/explore-the-dashboard#1-views-dashboard">Views dashboard</a>

Authentication

AuthorizationBasic
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request. - <b>Username:</b> Access Token ID - <b>Password:</b> Secret Key Activate your FastPix account to generate your API credentials. <a href="https://fastpix.com/docs/getting-started/activate-your-account" target="_blank">See the guide here</a>

Query parameters

timespan[]enumOptional
This parameter specifies the time span between which the video views list must be retrieved by. You can provide either from and to unix epoch timestamps or time duration. The scope of duration is between 60 minutes to 30 days. **Accepted formats are:** array of epoch timestamps for example `timespan[]=1498867200&timespan[]=1498953600` duration string for example `timespan[]=24:hours` or `timespan[]=7:days`
filterby[]stringOptional

Pass the dimensions and their corresponding values you want to filter the views by. For excluding the values in the filter we can pass ”!” before the filter value. The list of filters can be obtained from list of dimensions endpoint. Example Values : [ browser_name:Chrome , os_name:macOS , !device_name:Galaxy ]

limitintegerOptionalDefaults to 10
Pass the limit to display only the rows specified by the value.
offsetintegerOptionalDefaults to 1
Pass the offset value to indicate the page number.
viewerIdstringOptional

Pass the viewer_id to filter the list of views. This value can be manually set during integration or generated by FastPix. When set manually it can be a string of aplha numeric values of any length.

errorCodestringOptional
Pass the error code to filter the list of views. The possible values of error code can be fetched from list of errors end point.
orderBystringOptionalDefaults to view_end
Pass this value to sort the view list by.
sortOrderstringOptionalDefaults to asc
The order direction to sort the view list by.

Response

Get the list of Views
successboolean
Shows the request status. Returns true for success and false for failure.
datalist of objects
Displays the result of the request.
paginationobject
Pagination organizes content into pages for better readability and navigation.
timespanlist of integers
The timespan from and to details displayed in the form of unix epoch timestamps.