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

Searching over 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 "$ACCOUNT/stream?search=puppy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"