In short
- A stream key is where your video is sent. A broadcast is the watch page viewers see — its URL, title, chat and views.
- A persistent (reusable) key works across many broadcasts. A one-time key works for a single broadcast only.
- The default key in YouTube Studio is persistent. Always use a persistent key for 24/7 streams.
- If the signal stops long enough, YouTube ends the broadcast; the next stream on the same key gets a new URL.
- Use one key per stream, keep keys private, and reset a key straight away if it leaks.
Introduction
Most people copy the stream key from YouTube Studio, paste it into their streaming software, and never think about it again. That works until the day the stream URL changes, or the key suddenly stops connecting.
Both come from how YouTube separates the key you stream to from the broadcast viewers watch. Once that is clear, the rest makes sense.
What Is a Stream Key?
A YouTube stream key is a private code that identifies where your live video should go. Your streaming software connects to YouTube's ingest server and presents the key. YouTube uses it to know which channel the video belongs to and which live stream to show it on.
Think of it as a password for sending video to your channel. Anyone who has it can go live on your channel — which is why it is hidden by default in YouTube Studio.
Stream Key vs Broadcast
Stream keyThe address your video is sent to. YouTube calls this a "live stream" (the ingest). It is like a mail slot: it receives the signal, nothing more.BroadcastThe thing viewers see: the watch page, its URL, title, description, chat and view count. YouTube calls this a "live broadcast".BindingA key is bound to a broadcast. The video arriving on the key is shown on that broadcast's watch page.
One key can be bound to different broadcasts over time. That is why the key can stay the same while the URL you share changes.
Persistent vs One-Time Keys
| Persistent (reusable) | One-time | |
|---|---|---|
| Lifetime | Until you reset or delete it | One broadcast |
| Where you get it | The default key in YouTube Studio, or extra reusable keys you create | Created for a single scheduled event, often by tools using the YouTube API |
| After the broadcast ends | Still works — the next stream goes to a new broadcast | Stops working |
| Good for | Always-on and regular streams | Single events you never want to reuse |
In the YouTube API, the difference is the isReusable flag on the live stream. A key that is not reusable can only ever be bound to one broadcast.
Finding Your Stream Key
Go to studio.youtube.com and sign in to the channel you want to stream to.
Click Create (the camera icon) → Go live. The first time, YouTube may take up to 24 hours to enable live streaming on a new channel.
The "Stream settings" panel shows the stream key (hidden until you click the eye icon or Copy) and the server URL.
Click Copy next to the key and paste it into your streaming software. Do not paste it anywhere public.
Creating Extra Reusable Keys
If you run more than one stream from the same channel, each one needs its own key. In the Stream settings panel, open the stream key dropdown and choose to create a new stream key. Give it a clear name ("Lofi 24/7", "Rain sounds") and keep it reusable.
Some key settings let you choose a fixed resolution or a variable one. Variable is the more flexible choice: it accepts whatever resolution your software sends.
Auto-Start & Auto-Stop
Each broadcast has two settings that decide what YouTube does when your signal starts or stops:
Auto-startThe broadcast goes live as soon as video arrives on the key. Leave this on for unattended streams — otherwise someone has to click "Go live".Auto-stopYouTube ends the broadcast when the video stops arriving. Handy for one-off events, but on a 24/7 stream a long enough outage ends the broadcast for good.
Why the Stream URL Changes
A short blip — a few seconds while your software reconnects — does not usually end a broadcast. A longer outage can. When that happens:
- The old broadcast ends. Its watch page becomes a finished stream (and a recording, if archiving is on).
- When video arrives again on the same persistent key, it goes to a new broadcast.
- The new broadcast has a new URL, zero views and an empty chat. Links you shared still point to the old one.
That is the most common reason a 24/7 stream's URL changes overnight. The fix is to keep outages short — see why your 24/7 stream keeps ending. To give people a link that never changes, share your channel's live page (your channel URL followed by /live), which always points to the current live broadcast.
Which One for 24/7?
Always a persistent key. An always-on stream will lose its connection at some point, and with a persistent key it can always come back without anyone creating or pasting a new key.
How StreamOps uses persistent keys
If you connect your YouTube account, StreamOps finds the broadcast your key is bound to when the stream starts, so monitoring and analytics follow the right video without you pasting a URL.
You can also turn on broadcast recovery for a YouTube destination. If YouTube has genuinely ended the broadcast (not just a brief drop), StreamOps creates a new one and binds it to the same persistent key, so the stream is back on YouTube without you doing anything. It is off by default.
One Key per Stream
Each stream that is live at the same time needs its own key. If you run three 24/7 streams from one YouTube account, create three reusable keys in YouTube Studio and give each stream its own.
- Name each key after the stream it belongs to ("Lofi 24/7", "Rain sounds") so you can tell them apart.
- Use the same key for a stream every time. Analytics and broadcast recovery both follow the key.
- Keep a private note of which key belongs to which stream, in case you need to reset one.
Keeping Keys Safe
- Treat a stream key like a password. Anyone who has it can stream to your channel.
- Hide it when screen-sharing or recording tutorials — YouTube Studio shows it in plain text if you click the eye icon.
- Do not send keys over public chats or paste them into shared documents.
- Connecting a YouTube account to a tool is different from sharing a key. StreamOps uses Google sign-in for that and never asks for your password.
Resetting a Leaked Key
If you think a key has leaked — or you see a stream on your channel you did not start — reset it at once in the Stream settings panel. The old key stops working immediately. Then paste the new key into your streaming software; in StreamOps, edit the YouTube destination on each stream that used it.
Common Mistakes
Frequently Asked Questions
What is a stream key on YouTube?
A private code that tells YouTube which channel and which live stream your incoming video belongs to. Your streaming software sends video to YouTube's server along with the key.
What is a persistent stream key on YouTube?
A reusable key that stays valid across many broadcasts. The default stream key in YouTube Studio is persistent — you can stream with it today, stop, and use it again next week.
Does a YouTube stream key expire?
A persistent (reusable) key does not expire on its own. It stops working only if you reset or delete it. A one-time key works for a single broadcast.
Why did my YouTube stream key stop working?
Usually because it was a one-time key whose broadcast has ended, or because the key was reset in YouTube Studio. Live streaming can also be restricted on the channel after a policy strike.
Why did my live stream URL change when the key stayed the same?
The URL belongs to the broadcast, not the key. If a broadcast ends — for example because the signal stopped long enough for YouTube to end it — the next stream on the same key becomes a new broadcast with a new URL.
Can I use one key for several streams at once?
No. Each stream that is live at the same time needs its own key. Create extra reusable keys in YouTube Studio for each one.
How many stream keys can I create?
YouTube lets you create several reusable keys per channel, so you can give every stream its own. Name them clearly so you can tell them apart.
What is the YouTube RTMP server URL?
Streaming software sends video to YouTube's standard RTMP ingest address, shown next to the key in YouTube Studio. With StreamOps you only paste the key — it already knows YouTube's server.
Is it safe to give my stream key to a streaming tool?
It is safe with software you trust, since the tool needs the key to send video. Never post it publicly. If you stop using a tool, reset the key.
Does StreamOps need my YouTube password?
No. To stream it only needs the stream key. Connecting your YouTube account (optional, via Google sign-in) adds extras like automatic broadcast detection and analytics.
Conclusion
The key is where you send video; the broadcast is what people watch. Use a persistent key, one per stream, keep auto-start on, and keep the key private. That covers most "my stream key stopped working" and "my URL changed" problems before they happen.
For the other reasons a stream goes offline, see why your 24/7 stream keeps ending.



