---
title: Live Inputs
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Stream](https://developers.cloudflare.com/api/python/resources/stream)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Live Inputs

##### [List live inputs](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/list)

stream.live\_inputs.list(LiveInputListParams\*\*kwargs) -> [LiveInputListResponse](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/live\_inputs

##### [Retrieve a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/get)

stream.live\_inputs.get(strlive\_input\_identifier, LiveInputGetParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

GET/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### [Create a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/create)

stream.live\_inputs.create(LiveInputCreateParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/live\_inputs

##### [Update a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/update)

stream.live\_inputs.update(strlive\_input\_identifier, LiveInputUpdateParams\*\*kwargs) -> [LiveInput](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### [Delete a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/methods/delete)

stream.live\_inputs.delete(strlive\_input\_identifier, LiveInputDeleteParams\*\*kwargs)

DELETE/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}

##### ModelsExpand Collapse

<details>

<summary>

class LiveInput: …

Details about a live input.

</summary>

created: Optional\[datetime]

The date and time the live input was created.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

delete\_recording\_after\_days: Optional\[float]

Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a <code>null</code> value to remove an existing scheduled deletion.

minimum30

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20deleteRecordingAfterDays">Link to this property</a>

enabled: Optional\[bool]

Indicates whether the live input is enabled and can accept streams.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

keys\_rotated\_at: Optional\[datetime]

The date and time the live input keys were last rotated. Omitted for live inputs that have never had their keys rotated.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20keysRotatedAt">Link to this property</a>

meta: Optional\[object]

A user modifiable key-value store used to reference other systems of record for managing live inputs.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

modified: Optional\[datetime]

The date and time the live input was last modified.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

playback: Optional\[Playback]

Details for playing a live input’s broadcast using the HLS or DASH manifests. URLs reference the live input ID.

</summary>

dash: str

The DASH manifest URL used to play live video, referencing the live input ID.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20dash">Link to this property</a>

hls: str

The HLS manifest URL used to play live video, referencing the live input ID.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback%20%3E%20(property)%20hls">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20playback">Link to this property</a>

prefer\_low\_latency: Optional\[bool]

When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20preferLowLatency">Link to this property</a>

<details>

<summary>

recording: Optional\[Recording]

Records the input to a Cloudflare Stream video. Behavior depends on the mode. In most cases, the video will initially be viewable as a live video and transition to on-demand after a condition is satisfied.

</summary>

allowed\_origins: Optional\[List\[str]]

Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use <code>*</code> for wildcard subdomains. An empty array allows videos to be viewed on any origin.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20allowedOrigins">Link to this property</a>

hide\_live\_viewer\_count: Optional\[bool]

Disables reporting the number of live viewers when this property is set to <code>true</code>.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20hideLiveViewerCount">Link to this property</a>

<details>

<summary>

mode: Optional\[Literal\["off", "automatic"]]

Specifies the recording behavior for the live input. Set this value to <code>off</code> to prevent a recording. Set the value to <code>automatic</code> to begin a recording and transition to on-demand after Stream Live stops receiving input.

</summary>

One of the following:

"off"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

"automatic"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20mode">Link to this property</a>

require\_signed\_urls: Optional\[bool]

Indicates if a video using the live input has the <code>requireSignedURLs</code> property set. Also enforces access controls on any video recording of the livestream with the live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20requireSignedURLs">Link to this property</a>

timeout\_seconds: Optional\[int]

Determines the amount of time a live input configured in <code>automatic</code> mode should wait before a recording transitions from live to on-demand. <code>0</code> is recommended for most use cases and indicates the platform default should be used.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording%20%3E%20(property)%20timeoutSeconds">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20recording">Link to this property</a>

<details>

<summary>

rtmps: Optional\[Rtmps]

Details for streaming to an live input using RTMPS.

</summary>

stream\_key: Optional\[str]

The secret key to use when streaming via RTMPS to a live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps%20%3E%20(property)%20streamKey">Link to this property</a>

url: Optional\[str]

The RTMPS URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmps">Link to this property</a>

<details>

<summary>

rtmps\_playback: Optional\[RtmpsPlayback]

Details for playback from an live input using RTMPS.

</summary>

stream\_key: Optional\[str]

The secret key to use for playback via RTMPS.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback%20%3E%20(property)%20streamKey">Link to this property</a>

url: Optional\[str]

The URL used to play live video over RTMPS.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20rtmpsPlayback">Link to this property</a>

<details>

<summary>

srt: Optional\[Srt]

Details for streaming to a live input using SRT.

</summary>

passphrase: Optional\[str]

The secret key to use when streaming via SRT to a live input.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20passphrase">Link to this property</a>

stream\_id: Optional\[str]

The identifier of the live input to use when streaming via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20streamId">Link to this property</a>

url: Optional\[str]

The SRT URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srt">Link to this property</a>

<details>

<summary>

srt\_playback: Optional\[SrtPlayback]

Details for playback from an live input using SRT.

</summary>

passphrase: Optional\[str]

The secret key to use for playback via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20passphrase">Link to this property</a>

stream\_id: Optional\[str]

The identifier of the live input to use for playback via SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20streamId">Link to this property</a>

url: Optional\[str]

The URL used to play live video over SRT.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20srtPlayback">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["connected", "reconnected", "reconnecting", 5 more]]

The connection status of a live input.

</summary>

One of the following:

"connected"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"reconnected"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

"reconnecting"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

"client\_disconnect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

"ttl\_exceeded"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

"failed\_to\_connect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

"failed\_to\_reconnect"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

"new\_configuration\_accepted"

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%208">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

uid: Optional\[str]

A unique identifier for a live input.

maxLength32

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

<details>

<summary>

web\_rtc: Optional\[WebRtc]

Details for streaming to a live input using WebRTC.

</summary>

url: Optional\[str]

The WebRTC URL you provide to the broadcaster, which they stream live video to.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTC%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTC">Link to this property</a>

<details>

<summary>

web\_rtc\_playback: Optional\[WebRtcPlayback]

Details for playback from a live input using WebRTC.

</summary>

url: Optional\[str]

The URL used to play live video over WebRTC.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTCPlayback%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)%20%3E%20(property)%20webRTCPlayback">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input%20%3E%20(schema)>)

<details>

<summary>

class LiveInputListResponse: …

</summary>

<details>

<summary>

live\_inputs: Optional\[List\[LiveInput]]

</summary>

created: Optional\[datetime]

The date and time the live input was created.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20created">Link to this property</a>

delete\_recording\_after\_days: Optional\[float]

Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a <code>null</code> value to remove an existing scheduled deletion.

minimum30

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20deleteRecordingAfterDays">Link to this property</a>

enabled: Optional\[bool]

Indicates whether the live input is enabled and can accept streams.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

meta: Optional\[object]

A user modifiable key-value store used to reference other systems of record for managing live inputs.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20meta">Link to this property</a>

modified: Optional\[datetime]

The date and time the live input was last modified.

formatdate-time

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20modified">Link to this property</a>

uid: Optional\[str]

A unique identifier for a live input.

maxLength32

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs%20%3E%20(items)%20%3E%20(property)%20uid">Link to this property</a>

</details>

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20liveInputs">Link to this property</a>

range: Optional\[int]

The total number of remaining live inputs based on cursor position.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20range">Link to this property</a>

total: Optional\[int]

The total number of live inputs that match the provided filters.

<a href="#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)%20%3E%20(property)%20total">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs%20%3E%20(model)%20live_input_list_response%20%3E%20(schema)>)

#### Live InputsOutputs

##### [List all outputs associated with a specified live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/list)

stream.live\_inputs.outputs.list(strlive\_input\_identifier, OutputListParams\*\*kwargs) -> SyncSinglePage\[[Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)]

GET/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs

##### [Create a new output, connected to a live input](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/create)

stream.live\_inputs.outputs.create(strlive\_input\_identifier, OutputCreateParams\*\*kwargs) -> [Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)

POST/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs

##### [Update an output](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/update)

stream.live\_inputs.outputs.update(stroutput\_identifier, OutputUpdateParams\*\*kwargs) -> [Output](<https://developers.cloudflare.com/api/python/resources/stream#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)

PUT/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs/{output\_identifier}

##### [Delete an output](https://developers.cloudflare.com/api/python/resources/stream/subresources/live_inputs/subresources/outputs/methods/delete)

stream.live\_inputs.outputs.delete(stroutput\_identifier, OutputDeleteParams\*\*kwargs)

DELETE/accounts/{account\_id}/stream/live\_inputs/{live\_input\_identifier}/outputs/{output\_identifier}

##### ModelsExpand Collapse

<details>

<summary>

class Output: …

</summary>

enabled: Optional\[bool]

When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

stream\_key: Optional\[str]

The streamKey used to authenticate against an output’s target.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20streamKey">Link to this property</a>

uid: Optional\[str]

A unique identifier for the output.

maxLength32

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20uid">Link to this property</a>

url: Optional\[str]

The URL an output uses to restream.

<a href="#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20stream.live_inputs.outputs%20%3E%20(model)%20output%20%3E%20(schema)>)