RTMP/SRT/HLS stream key RTMP multistreaming

What Is a Stream Key? How to Find Yours

A plain-English explainer on what a stream key is, why it matters, and how to find your stream key on YouTube, Twitch, Facebook, TikTok, and Kick.

What Is a Stream Key? How to Find Yours
Share

If you have ever tried to go live from OBS, vMix, or a hardware encoder, you have run into a box asking for a "stream key." It looks like a random string of letters and numbers, the platform warns you to keep it secret, and it is the one thing standing between you and a working broadcast. This guide explains what a stream key actually is, how it pairs with a server URL, how to keep it safe, and exactly where to find it on every major platform.

What Is a Stream Key?

A stream key is a secret credential that identifies and authenticates your channel to a streaming server. Think of it as a password combined with an address label. When your encoder sends video to a platform, the platform needs to answer two questions: who is this, and which channel does this belong to? The stream key answers both.

Without a stream key, a streaming server has no way to know that the incoming video is yours. Anyone could point an encoder at YouTube or Twitch, and the platform would have no way to route the feed to the right account. The key ties the raw video coming out of your encoder to a specific channel, so the platform accepts it, associates it with your profile, and publishes it to your viewers.

The key itself is not the video and it is not your login. You never type it into a website login form. It lives inside your encoder's stream settings, and it is sent quietly in the background every time you press "Start Streaming."

Server URL and Stream Key: How They Work Together

A stream key never works alone. It always pairs with a server URL, sometimes called the ingest URL, RTMP URL, or RTMP server. These are two distinct fields, and both go into your encoder.

  • Server URL: the address of the platform's ingest server, for example rtmp://a.rtmp.youtube.com/live2. This tells your encoder where to send the data.
  • Stream key: the secret string that identifies your channel, for example abcd-1234-efgh-5678-ijkl. This tells the server who you are.

Most encoders join these into a single address behind the scenes. The full RTMP endpoint is the server URL with the stream key appended to the end:

rtmp://a.rtmp.youtube.com/live2/abcd-1234-efgh-5678-ijkl

If you want a deeper look at the protocol carrying all of this, our explainer on what RTMP is and how it works walks through the handshake, and our comparison of RTMP, SRT, and HLS covers when you might use each one. For the purposes of this article, the important point is simple: the server URL is public, and the stream key is private.

Why Your Stream Key Must Stay Secret

Because the stream key is what authenticates your encoder, anyone who has it can broadcast to your channel. They do not need your email, your password, or two-factor authentication. They just paste your key into their own encoder and go live under your name, on your channel, in front of your audience.

This is the single most common self-inflicted streaming accident. It usually happens one of two ways: someone shares a screenshot of their OBS settings to ask for help, or someone screen shares their encoder while the key is visible on screen. In both cases the key is now public, and it can be abused within minutes.

💡
Never show your stream key on screen: treat it like a password. Do not paste it into public chats or forums, blur it out of screenshots, and hide the encoder settings window before you screen share. If it ever leaks, reset it right away.

How to reset a stream key

Every platform lets you reset or regenerate the key. Resetting immediately invalidates the old value, so any leaked copy stops working. You will find a "Reset" or "Revoke" button next to the key in the same settings panel where you copied it. After a reset you must paste the new key back into your encoder, or your next broadcast will fail to authenticate.

Persistent vs Single-Use Stream Keys

Not all stream keys behave the same way, and knowing which type you have saves confusion later.

  • Persistent keys stay the same across every broadcast until you manually reset them. Twitch and Kick use persistent keys. You paste the key into your encoder once and reuse it every stream, which is convenient but means the key is long-lived and worth protecting.
  • Single-use or session keys are generated fresh for each stream and expire when that stream ends. TikTok and most Facebook Live sessions issue session keys, and YouTube's auto-generated keys behave this way too. These are safer by default, but you often have to fetch a new key before each broadcast.

YouTube is worth a special mention because it supports both. It creates a temporary key each time you use the "Go Live" flow, but it also lets you create a reusable "stream key" that persists for scheduled or recurring broadcasts. Pick the reusable option if you want the same key every time.

Where to Find Your Stream Key on Every Platform

Every platform hides the stream key in a slightly different place, but the pattern is always the same: find the live or stream settings, then look for the server URL and stream key fields. Here is a quick reference, followed by step-by-step instructions.

PlatformWhere to find the stream keyKey type
YouTubeYouTube Studio → Go Live → Stream tab → Stream settingsSession or reusable
TwitchCreator Dashboard → Settings → Stream → Primary Stream keyPersistent
FacebookMeta Live Producer → Streaming software → Stream keySession (per broadcast)
TikTokTikTok LIVE Studio or LIVE access → third-party streamingSession (per broadcast)
KickCreator Dashboard → Settings → Stream KeyPersistent

How to find your YouTube stream key

  1. Go to studio.youtube.com and sign in.
  2. Click Create in the top right, then Go Live. Your account needs to be verified and live streaming enabled (this can take 24 hours the first time).
  3. In the Live Control Room, select the Stream tab.
  4. In the Stream settings panel at the bottom, you will see the Stream key field and the Stream URL (rtmp://a.rtmp.youtube.com/live2).
  5. Click Copy next to the stream key. Use Reset here if you ever need a new one.

How to find your Twitch stream key

  1. Open your Twitch Creator Dashboard.
  2. In the left menu, go to Settings, then Stream.
  3. At the top you will see Primary Stream key. Click Copy to grab it.
  4. The Twitch ingest server URL is chosen separately in your encoder, usually the nearest regional server such as rtmp://live.twitch.tv/app.
  5. Use the Reset button on this screen if the key leaks.

How to find your Facebook stream key

  1. Open Meta Live Producer on desktop.
  2. Choose Go live, then select Streaming software as your setup.
  3. Under Stream key, copy the key and the server URL (rtmps://live-api-s.facebook.com:443/rtmp/).
  4. Facebook keys are tied to the broadcast session by default. Enable Use a persistent stream key if you want to reuse it for recurring streams.

How to find your TikTok stream key

  1. TikTok live streaming from third-party software requires LIVE access, which typically needs a minimum follower count and an approved account.
  2. Open TikTok LIVE Studio on desktop, or use the LIVE access flow that grants a server URL and key for external encoders.
  3. Copy the Server URL and Stream key shown for your broadcast.
  4. TikTok keys are single-use per session, so fetch a fresh one each time. Our dedicated guide on finding and using your TikTok stream key covers the eligibility rules and workarounds in detail.

How to find your Kick stream key

  1. Log in to Kick and open your Creator Dashboard.
  2. Go to Settings, then Stream Key (sometimes listed under Stream setup).
  3. Copy both the Stream URL and the Stream Key.
  4. Kick keys are persistent, so you can reuse them until you reset them from this same panel.

Plugging Your Stream Key Into OBS

Once you have the server URL and stream key, entering them into OBS takes under a minute:

  1. Open OBS and go to Settings → Stream.
  2. For built-in platforms, set Service to the platform name (for example YouTube or Twitch), then either log in or click Use Stream Key and paste it.
  3. For any other destination, set Service to Custom. Paste the server URL into the Server field and the stream key into the Stream Key field.
  4. Click OK, then Start Streaming.

That is the whole process. If your stream fails to connect, the two most common causes are a mistyped or extra-spaced key, and a mismatch between the server URL and the platform. If your encoder settings also need tuning for a clean broadcast, our guide to the best OBS settings for 1080p streaming covers bitrate, keyframes, and encoder choice.

How Multistreaming Tools Use Your Stream Keys

Here is the catch with the setup above: OBS only sends your stream to one server at a time. If you want to be live on YouTube, Twitch, Facebook, TikTok, and Kick simultaneously, you cannot do it from OBS alone, because each platform needs its own key sent to its own server.

This is exactly the problem multistreaming solves. Instead of pasting a single platform's key into OBS, you point OBS at a multistreaming service once, then enter each platform's stream key into that service. The service receives your single encoder feed and forwards a copy to every destination using that platform's own key.

In practice it works like this:

  1. You copy each platform's server URL and stream key using the steps above.
  2. You add each platform as a destination, entering its key once. With Livepush you can connect your social media accounts so many destinations authorize automatically, no manual key needed.
  3. OBS sends one stream to Livepush, and Livepush distributes it to every platform at once using the keys you saved.

You send your video a single time, at your full bitrate, and reach every audience simultaneously. You only ever manage your keys in one place, and when a session key expires or a persistent key needs resetting, you update it once rather than juggling five encoder profiles.

Key Takeaways

A stream key is the secret credential that pairs with a server URL to authenticate your encoder to a specific channel. Keep it private, never show it on screen, and reset it the moment it leaks. Some platforms give you a persistent key you reuse forever, while others hand out a fresh session key for each broadcast. Wherever it lives, the pattern is the same: find the live or stream settings, copy the server URL and the key, and paste them into your encoder. And when you want to be everywhere at once, a multistreaming tool lets you enter each key a single time and go live across every platform together.

RTMP & SRT ingest — included free

Livepush accepts RTMP and SRT from OBS, vMix, Wirecast, and any encoder.

Create Your Stream →

Frequently Asked Questions

Is a stream key the same as an RTMP URL?
No, they are two separate pieces that work together. The RTMP URL (also called the server or ingest URL) tells your encoder where to send the stream. The stream key identifies which channel that stream belongs to and authenticates you. You need both, and on some platforms the full RTMP address is the server URL and stream key joined together.
Is it safe to share my stream key?
No. A stream key is a password for your channel. Anyone who has it can broadcast to your account without logging in. Never post it in a chat, never leave it visible while screen sharing, and never paste it into a public forum when asking for help. If it leaks, reset it immediately from the platform's stream settings.
Do stream keys expire or reset?
It depends on the platform. Persistent keys (Twitch, Kick) stay the same until you manually reset them. Single-use or session keys (YouTube's auto-generated keys, TikTok, most Facebook Live sessions) are generated fresh for each broadcast and stop working once the stream ends. You can also reset a persistent key at any time if you think it has leaked.
Where is my YouTube or Twitch stream key?
On YouTube, open YouTube Studio, click Go Live, choose the Stream tab, and copy the key from the Stream settings panel. On Twitch, open the Creator Dashboard, go to Settings then Stream, and copy the Primary Stream key. Both platforms let you reveal, copy, or reset the key from that screen.
Can I use one stream key for multiple platforms?
No. Each platform issues its own stream key that only works for that platform. To go live everywhere at once you enter each key into a multistreaming service, which takes your single encoder feed and forwards it to every destination using that platform's own key.

Start streaming free — 20 hours/month

Multistream to YouTube, Facebook, Twitch, and 40+ platforms. No credit card required.