Indexes, videos, and tasks
The endpoints that return lists of items support filtering. The examples in this section are specific to listing your video indexing tasks. The same principles apply to other similar endpoints.
Note
Depending on the endpoint, you can filter on various fields.
Prerequisites
- You’re familiar with the concepts that are described on the Platform overview page.
- You’ve already created an index and uploaded at least one video to it.
Examples
Filter on a specific date
The following example code uses the created_at
parameter to return all the tasks created on a specific date:
The following example output was truncated for brevity:
Filter based on a file name
To filter based on a file name, use the filename
parameter as shown in the example below:
The following output was truncated for brevity:
Filter based on duration
To filter based on the duration of a video, use the duration
parameter. The example below displays all the videos of a specific duration (810
seconds):
The following example output was truncated for brevity: