Skip to main content
7 min readLast updated: November 2026

What is a stream key? The key, the server URL, and where both go

A stream key is a secret code that tells a platform's ingest server which channel your video belongs to. The server URL, also called the stream URL or RTMP URL, is the address your encoder sends that video to. Together they are all OBS or any other encoder needs to go live. Below: what each part does, where eleven platforms show the pair, where it goes in OBS, and what to do when a key leaks. Checked against each platform's own help pages on 25 November 2026.

Copy the server URL and the key from the platformPaste the key straight into the encoder. A key left in a note, a chat or a screenshot is a key someone else can read.

Every platform that accepts video from streaming software hands out the same two values. The server URL points at the platform's Ingest Server: it says where the video goes. The Stream Key says whose it is, and the platform puts whatever arrives with it on your channel. That is why YouTube calls stream keys "like your YouTube stream's password and address" (YouTube Help), and why Twitch asks you never to share yours or show it on stream (Twitch Help).

Platforms differ in three ways: whether the server URL is the same for everyone or issued to you, whether the key lasts or is made fresh for each broadcast, and what an account needs before it gets a key at all. The table below covers eleven platforms; six of them also have a full guide of their own.

Where to put a stream key in OBS, step by step

The field names are much the same in every encoder. OBS Studio is shown because it is the one most people use; its own overview covers the same screen.

  1. Step 1

    Copy the server URL and the key from the platform

    Open the platform's live dashboard and find the pair; the table further down says where each platform keeps it. Use the platform's copy button rather than retyping: keys are long and case-sensitive.

    • Some platforms hide the key until you ask for it. Twitch shows it only once two-factor authentication is on (Twitch Help), and Kick asks for a 6-digit code first (Kick guide).

    Paste the key straight into the encoder. A key left in a note, a chat or a screenshot is a key someone else can read.

  2. Step 2

    Open Settings → Stream in OBS

    In OBS Studio open File → Settings (or the Settings button in the Controls dock) and choose Stream on the left.

    • This page holds three things: Service, Server and Stream Key. Everything else about the stream (bitrate, resolution, keyframes) is on the Output and Video pages.

    OBS keeps one stream destination per profile. To switch between platforms quickly, make a profile for each.

  3. Step 3

    Choose the service, or Custom...

    Pick your platform from Service. If it is listed, OBS knows its servers and may offer Connect Account or Get Stream Key. If it is not listed, or the platform gave you an address of its own, choose Custom....

    • Custom... is for any destination given as an address: Kick, Rumble, Instagram, LinkedIn, Telegram, Vimeo, X, or a server of your own.
    • Instagram's help puts it the same way: choose Custom RTMP in the streaming software and add the URL and the stream key (Instagram Help).

    Connect Account signs OBS in to the platform instead of using a key. It is convenient, but the key is still what the stream travels on.

  4. Step 4

    Paste the server URL and the key

    With a listed service, leave Server on the recommended choice and paste the key into Stream Key. With Custom..., paste the address into Server and the key into Stream Key. Then click Apply.

    • Keep the two in their own fields. They are joined into one string only for encoders that have no key field, which Vimeo documents: add the key to the end of the URL after a slash (Vimeo Help).
    • Check for a space copied before or after either value. The server compares the key character by character.

    Where the platform offers an rtmps:// address, use it: it is the same stream, encrypted on the way.

  5. Step 5

    Start streaming and check the platform's own page

    Click Start Streaming. Within a few seconds the platform's dashboard should show the incoming video. On YouTube's Stream tab the stream then goes live by itself; Instagram, LinkedIn and X also want a final click on their own page before viewers see anything.

    • Instagram: Go live in Live Producer, and end it there before stopping the encoder (Instagram Help).
    • X: create a broadcast on the source in Media Studio; Start immediately goes live at once (X Help).

    Test where nobody is watching first: Instagram's Practice audience, a Private broadcast on X, or ?bandwidthtest=true added to the end of a Twitch key (Twitch Help).

A server URL and a stream key, taken apart

Twitch documents the full address an encoder ends up connecting to, and it shows how the two values fit together (Twitch Help):

rtmp://TWITCH-INGEST-SERVER/app/STREAM-KEY
  • rtmp:// or rtmps://: the protocol. RTMP is the standard way to send live video to a platform. RTMPS is the same protocol inside an encrypted TLS connection, "an encrypted RTMP protocol" in Vimeo's words (Vimeo Help), usually on port 443.
  • The server (live.twitch.tv, a.rtmp.youtube.com): the ingest server that receives the video. YouTube, Twitch and Facebook publish one address for everyone. Kick, Rumble, TikTok, Instagram, LinkedIn, X, Telegram and Vimeo show you an address in your own dashboard, and that is the one to use.
  • The path (/app, /live2, /rtmp/): part of the server URL, not of the key. Copy the URL whole, trailing slash included where there is one.
  • The stream key: the last part. Encoders keep it in a separate field and add it when they connect, so you never type the slash between them.

So stream URL, RTMP URL, server URL and ingest URL are four names for the same first half, and a platform's help page may use any of them. The rtmp://a.rtmp.youtube.com/live2 guide takes YouTube's address apart in more detail.

Where each platform shows its stream key and server URL

Checked against each platform's help pages on 25 November 2026. Fixed means the platform publishes one address for everyone; otherwise the address is shown next to the key.

PlatformWhere the key isServer URLHow long the key lasts
YouTubeYouTube Studio → Create → Go live → Stream (guide)Fixed: rtmps://a.rtmps.youtube.com/live2Until you reset it; you can also make keys of your own
TwitchCreator Dashboard → Settings → Stream (guide)Fixed: rtmp://ingest.global-contribute.live-video.net/appUntil you reset it or change your password
KickCreator Dashboard → Stream URL & Key (guide)Shown beside the key, rtmps://…global-contribute.live-video.net:443/appUntil you reset it
FacebookLive Producer, streaming software (guide)Fixed: rtmps://live-api-s.facebook.com:443/rtmp/One broadcast, unless the persistent stream key is on
TikTokLIVE Center producer page, livecenter.tiktok.com/producer (guide)Shown with the keyNot documented; fetch a fresh pair before each LIVE
Rumblerumble.com/live → Go Live → Get the streamer configuration (guide)Shown with the keyOne live stream, or a static key that never changes
Instagraminstagram.com → Create → Live video (Live Producer) (Help)Shown with the keyA new key every time you use Live Producer
XMedia Studio → Producer → Sources → Create source, type RTMP (Help)Per source and region; an RTMPS URL is offered tooAs long as the source exists; sources are reusable
LinkedInLive Studio → Prepare to go live → Stream settings → Get URL (Help)Per event, after you pick a region; RTMP or RTMPSIssued for one scheduled event
TelegramA channel or group's live stream, for admins only (API docs)Shown with the keyUntil revoked; revoking issues a new one
VimeoLive event → Use an External Encoder → Stream panel (Help)Shown as an RTMPS URL with the keyNot stated by Vimeo
  • YouTube wants a verified channel, no live streaming restrictions in the past 90 days and an age of 16 or more; the first time, enabling live streaming can take up to 24 hours (YouTube Help).
  • TikTok shows the pair only after LIVE access: 18 or older and 1,000 followers (TikTok guide).
  • Instagram needs a public account with 1,000 followers or more, and newly created accounts may not be able to go live (Instagram Help).
  • LinkedIn needs more than 150 followers or connections, an account at least 30 days old, good standing under its Professional Community Policies, and a location outside mainland China (LinkedIn Help).
  • Vimeo needs a Professional or Studio plan, or Enterprise with the Events feature, and a stream runs for up to 12 hours (Vimeo Help).
  • X sets no maximum length for a broadcast started immediately; one scheduled to start later is capped at 6 hours (X Help).
  • Telegram gives the key to admins of the channel or group, and accepts one external encoder at a time (Telegram API).

A platform that is not in the table works the same way if it gives you an RTMP or RTMPS address and a key: choose Custom... in the encoder and paste both.

Keeping a stream key safe

A stream key is a credential, not an identifier: the platform takes video from whoever sends it, with nothing else to check. Twitch warns that sharing yours can get your channel compromised (Twitch Help).

  • Never show it on screen. A settings window caught in a stream, a screen recording or a screenshot is enough to give the key away.
  • Reset it the moment it leaks. On YouTube use Reset next to the key in Live Control Room (YouTube Help); on Twitch and Kick, the reset sits beside the key; on Instagram, the reset button on the Live Producer screen; on Telegram, revoking the key issues a new one (Telegram API).
  • Update the encoder after a reset. The old key stops working, so a 24/7 stream still using it goes off air until the new key is pasted in.
  • A password change can change the key. Twitch resets the stream key every time the account password changes (Twitch Help).
  • Give access, not your key. Twitch lets a channel add authorized streamers, who get a guest key of their own that is withdrawn by revoking them.

Any service you give a key to can broadcast to your channel with it, ours included. Give it only to one you trust, and reset the key on the platform when you stop using that service.

When the platform will not take the key

Most failures at this step are a wrong pair, not a wrong setting.

  • OBS says "Failed to connect to server"

    The encoder could not reach the address, or the server closed the connection at once.

    • Check the Server field: the whole URL, rtmp:// or rtmps:// included, and nothing after it.
    • Keep the port an rtmps:// address names (:443). Plain RTMP runs on port 1935, which some networks block; Vimeo lists TCP 1935 and 443 among the ports an encoder needs (Vimeo Help).
    • Make sure the key and the URL come from the same platform. A Twitch key sent to a YouTube address is refused.
  • The key is refused, or the stream never shows up

    The server answered but did not accept the key.

    • Copy the key again with the platform's copy button, and check for a space at either end.
    • Check that it is still current: Instagram makes a new key each time Live Producer is used, Facebook's lasts one broadcast unless the persistent key is on, and a reset anywhere retires the old one.
    • On Twitch, a password change resets the key.
  • The video arrives, but nobody can see it

    The pair is right; the platform is waiting for you.

    • Instagram, LinkedIn and X need the broadcast started on their own page as well.
    • On YouTube, check the visibility (private and unlisted streams do not appear to subscribers) and whether a scheduled stream is waiting for Go live.
    • Use the platform's preview: Instagram's Live Producer and X's Media Studio both show what they are receiving before anyone else sees it.
  • Two encoders on one key

    Sending two streams to the same key does not make two broadcasts.

Using a stream key with a cloud service

A cloud streaming service uses the pair exactly the way OBS does, except that the encoder runs on its servers instead of your computer. In TheLoops you paste a server URL and a key for each destination, and the service plays your uploaded videos to it around the clock: the same two values, with nothing at home left running.

That also means the service holds your key. Treat it the way you treat any app you sign in to: give a key only to a service you trust with your channel, and reset it on the platform when you stop using one.

Paste the key once, stream around the clock

TheLoops plays your uploaded videos to YouTube, Twitch, Kick or any RTMP address 24/7 from the cloud. Paste the server URL and the key, pick the playlist, and switch your computer off.

  • Any RTMP or RTMPS destination
  • Automatic restart if the platform drops the connection
  • Up to 10 destinations from one broadcast
Start Free Trial

Stream key questions

A secret code that identifies your channel to a platform's ingest server. Your encoder sends it along with the server URL, and the platform puts whatever video arrives with that key on your channel. YouTube describes stream keys as "like your YouTube stream's password and address".

The address of the ingest server your encoder sends video to, for example rtmps://a.rtmps.youtube.com/live2. Platforms also call it the stream URL, RTMP URL or ingest URL. The URL tells the encoder where to send; the key tells the platform whose stream it is.

In Settings → Stream. Choose your platform under Service (or Custom... if it is not listed), paste the key into Stream Key, click Apply, then Start Streaming. With Custom..., paste the server URL into Server as well.

It is not your account password, but it needs the same care: with the key alone, anyone can broadcast to your channel. It does not let them sign in or change your settings. Reset it on the platform if it has ever been visible.

That depends on the platform. YouTube, Twitch and Kick keys stay until you reset them, and Twitch also resets the key when you change your password. Instagram makes a new key every time you use Live Producer. Facebook's key lasts one broadcast unless you turn on the persistent stream key.

No. Each platform issues its own key for its own server. To reach several platforms at once, send the stream to each one with that platform's key: that is multistreaming.

RTMPS is RTMP inside an encrypted TLS connection, usually on port 443. The video is the same, but the key cannot be read on the way. Use the rtmps:// address wherever the platform offers one.

Usually the account is not eligible yet. TikTok and Instagram want 1,000 followers, LinkedIn more than 150 followers or connections, and YouTube a verified channel plus up to 24 hours the first time. On Twitch the key stays hidden until two-factor authentication is on.