Retrieves a list of the top video views that fall within the specified filters and have been completed within a defined timespan. It lets you to identify the most popular content based on viewer interactions.
#### 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 top content using the `timespan[]` parameter.
3. Filter the views based on dimensions such as browser, device, video title, etc., using the `filterby[]` parameter.
4. You can use `Limit` to control number of top views returned.
5. You receive a response containing the list of top video views matching the specified criteria.
Related guide: <a href="https://docs.fastpix.io/page/how-to-get-top-performing-content">Get top-performing content</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×pan[]=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.
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.
timespanlist of integers
The timespan from and to details displayed in the form of unix epoch timestamps.