List videos
GET/accounts/{account_id}/stream
Lists up to 1000 videos from a single request. For a specific range, refer to the optional parameters.
Security
<details>
<summary>API Token</summary>
The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.
Example:<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>
</details>
<details>
<summary>API Email + API Key</summary>
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:<code>X-Auth-Email: user@example.com</code>
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>
</details>
Accepted Permissions (at least one required)
Stream Write``Stream Read
P ath ParametersExpand Collapse
account_id: string
The account identifier tag.
maxLength32
Q uery ParametersExpand Collapse
id: optional string
Filter by video ID(s). Can be a single ID or a comma-separated list of IDs.
after: optional string
Alias for ‘start’. Returns videos created after this date/time (RFC 3339 format).
formatdate-time
asc: optional boolean
Lists videos in ascending order of creation.
before: optional string
Alias for ‘end’. Returns videos created before this date/time (RFC 3339 format).
formatdate-time
creator: optional string
A user-defined identifier for the media creator.
maxLength64
end: optional string
Lists videos created before the specified date.
formatdate-time
include_counts: optional boolean
Includes the total number of videos associated with the submitted query parameters.
limit: optional number
Maximum number of videos to return (default 1000, max 1000).
maximum1000
minimum1
live_input_id: optional string
Filter by live input ID to find videos associated with a specific live stream.
name: optional string
Filter by video name/UID(s). Can be a single name or a comma-separated list.
search: optional string
Provides a partial word match of the name key in the meta field. Slow for medium to large video libraries. May be unavailable for very large libraries.
start: optional string
Lists videos created after the specified date.
formatdate-time
<details>
<summary>
status: optional "pendingupload"or "downloading"or "queued"or 4 more
Specifies the processing status for all quality levels for a video.
</summary>
One of the following:
"pendingupload"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>
"downloading"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>
"queued"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>
"inprogress"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>
"ready"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>
"error"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>
"live-inprogress"
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>
</details>
type: optional string
Specifies whether the video is vod or live.
video_name: optional string
Provides a fast, exact string match on the name key in the meta field.
ReturnsExpand Collapse
<details>
<summary>
errors: array of object {code, message, documentation_url, source }
</summary>
code: number
minimum1000
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>
message: string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>
documentation_url: optional string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>
<details>
<summary>
source: optional object {pointer }
</summary>
pointer: optional string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>
</details>
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>
</details>
<details>
<summary>
messages: array of object {code, message, documentation_url, source }
</summary>
code: number
minimum1000
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>
message: string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>
documentation_url: optional string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>
<details>
<summary>
source: optional object {pointer }
</summary>
pointer: optional string
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>
</details>
<a href="#(resource)%20stream%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>
</details>
success: true
Whether the API call was successful.
range: optional number
The total number of remaining videos based on cursor position.
<details>
<summary>
result: optional array of <a href="https://developers.cloudflare.com/api/resources/stream#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)">Video</a> { allowedOrigins, clippedFrom, created, 23 more }
</summary>
allowedOrigins: optional array of <a href="https://developers.cloudflare.com/api/resources/stream#(resource)%20stream%20%3E%20(model)%20allowed_origins%20%3E%20(schema)">AllowedOrigins</a>
Lists the origins allowed to display the video. Enter allowed origin domains in an array and use <code>*</code> for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20allowedOrigins">Link to this property</a>
clippedFrom: optional string
The unique identifier of the source video this video was clipped from.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20clippedFrom">Link to this property</a>
created: optional string
The date and time the media item was created.
formatdate-time
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>
creator: optional string
A user-defined identifier for the media creator.
maxLength64
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20creator">Link to this property</a>
duration: optional number
The duration of the video in seconds. A value of <code>-1</code> means the duration is unknown. The duration becomes available after the upload and before the video is ready.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20duration">Link to this property</a>
<details>
<summary>
input: optional object {height, width }
</summary>
height: optional number
The video height in pixels. A value of <code>-1</code> means the height is unknown. The value becomes available after the upload and before the video is ready.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20height">Link to this property</a>
width: optional number
The video width in pixels. A value of <code>-1</code> means the width is unknown. The value becomes available after the upload and before the video is ready.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20width">Link to this property</a>
</details>
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20input">Link to this property</a>
liveInput: optional string
The live input ID used to upload a video with Stream Live.
maxLength32
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20liveInput">Link to this property</a>
maxDurationSeconds: optional number
The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of <code>-1</code> means the value is unknown.
maximum36000
minimum1
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20maxDurationSeconds">Link to this property</a>
maxSizeBytes: optional number
The maximum size in bytes for the video upload.
formatint64
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20maxSizeBytes">Link to this property</a>
meta: optional unknown
A user modifiable key-value store used to reference other systems of record for managing videos.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>
modified: optional string
The date and time the media item was last modified.
formatdate-time
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>
<details>
<summary>
playback: optional object {dash, hls }
</summary>
dash: optional string
DASH Media Presentation Description for the video.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20dash">Link to this property</a>
hls: optional string
The HLS manifest for the video.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20hls">Link to this property</a>
</details>
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20playback">Link to this property</a>
preview: optional string
The video’s preview page URI. This field is omitted until encoding is complete.
formaturi
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20preview">Link to this property</a>
<details>
<summary>
publicDetails: optional object {channel_link, logo, media_id, 2 more }
Public details for the video including title, share link, channel link, and logo.
</summary>
channel_link: optional string
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20channel_link">Link to this property</a>
logo: optional string
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20logo">Link to this property</a>
media_id: optional number
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20media_id">Link to this property</a>
share_link: optional string
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20share_link">Link to this property</a>
title: optional string
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails%20%3E%20(property)%20title">Link to this property</a>
</details>
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20publicDetails">Link to this property</a>
readyToStream: optional boolean
Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20readyToStream">Link to this property</a>
readyToStreamAt: optional string
Indicates the time at which the video became playable. The field is empty if the video is not ready for viewing or the live stream is still in progress.
formatdate-time
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20readyToStreamAt">Link to this property</a>
requireSignedURLs: optional boolean
Indicates whether the video can be a accessed using the UID. When set to <code>true</code>, a signed token must be generated with a signing key to view the video.
<a href="#(resource)%20stream%20%3E%20(model)%20video%20%3E%20(schema)%20%3E%20(property)%20requireSignedURLs">Link to this property</a>
