Cloudflare Docs
Stream
Visit Stream on GitHub
Set theme to dark (⇧+D)

Search for videos

You can search for videos by name through the Stream API by adding a search query parameter to the list media files endpoint.

​​ What you will need

To make API requests you will need a Cloudflare API token and your Cloudflare account ID.

​​ cURL example

This example lists media where the name matches puppy.mp4.

curl -X GET "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/stream?search=puppy" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json"