Sign up for free

List Videos

You will often need to retrieve a list of all your videos or some videos to work with them. You might need to do this on the fly to see what you have, or you might want to pull the list into a database you can then pull from to create different kinds of displays. There are two ways to retrieve your videos:

  • List all videos
  • Filter videos to a subset or single video

This guide walks through the different options for retrieving videos and covers a method for searching for them using your dashboard.

API documentation

List all videos

You can list all videos by not using any filters when sending your request. The code sample looks like this:

Listing all videos
curl --request GET \
     --url 'https://ws.api.video/videos?currentPage=1&pageSize=25' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NDI1NDk1NjAuMDE5ODA0LCJuYmYiOjE2NDI1NDk1NjAuMDE5ODA0LCJleHAiOjE2NDI1NTMxNjAuMDE5ODA0LCJwcm9qZWN0SWQiOiJwclJ6SUpKQTdCTHNxSGpTNDVLVnBCMSJ9.jjr4YADGbe62RmBBxJXLy1D61Mtfry_dq9nbriBXgkPrdlBJ8ZRP50CyW3AsGD7wSuKp2mXxEYSzj64zelT1IGOwg6KG4Gz9BZ9YWs0GAHKUIdgqn1gzITX5aQljIXx1fquXbawd-axBTi4icmaUjgXjfnyIcWOgHd2D8A3kpKiqiMmluh58JdnwPnH0OyVk0Rk824P0PI6SxfiTHfkCglPL6ixf9OgokMLPoVrsxH5C0xt3Z7lf5TJ0F78-JY-yTKvyaTTIfI6CFOMNaZUlMtgQwq8X93_2FA65Ntw3hdDML8gFKkLUxnBAtZMo9WAjUd30G4OcYasmlkc4Q_JSNw' \

List videos using query parameters

If you want to retrieve a specific subset of videos, this code sample shows you how to filter:

Listing videos using query parameters
curl --request GET \
     --url 'https://ws.api.video/videos?title=videotitle.mp4&currentPage=1&pageSize=25' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer access_token_here'

See a list of videos in the dashboard

If you don't want to retrieve a list of videos programmatically, you can log in to your dashboard and click Videos. This will show you a complete list of everything you have.

Conclusion

Listing videos is useful for figuring out what you have and retrieving specific videos for your projects based on their attributes.

Was this page helpful?