Skip to content

How to Find Your YouTube Stream Key and Server URL

Your YouTube stream key and server URL are in YouTube Studio. Select Create, then Go live, and open the Stream tab. The key is in the Key menu, and the URL is under Stream settings.

Use a computer, because YouTube documents the key only in YouTube Studio, not in the phone app. The key works like a password for your channel, so never show it on stream or share it.

Where
YouTube Studio, Create, Go live, Stream tab
Server URL (RTMP)
rtmp://a.rtmp.youtube.com/live2

RTMPS and backup: see the table.

Using OBS? OBS can sign in to YouTube instead, with no key. No key or no Go live? See the fixes. Looping prerecorded video 24/7, such as lofi or sermon replays? Streamloop, a cloud tool for 24/7 loops, can stream it with no key.

Updated Checked against YouTube Help and the Streamloop dashboard

Find your YouTube stream key

The first time, YouTube can take up to 24 hours to turn on live streaming. No Go live button? See the fixes.

  1. Open YouTube Studio on a computer

    Sign in to the channel that you want to stream to.

  2. Open Live Control Room

    At the top right, select Create, then Go live.

  3. Open the Stream tab

    Select Stream in the left menu. For your first stream, edit the stream and select Create stream.

  4. Copy the stream key

    Above the preview, the Key menu shows the key name, not the key. Select the copy icon next to it.

    YouTube Studio Stream tab. The Key menu is open: Create new stream key, Manage stream keys, Default stream key (RTMP, Variable).

    The Key menu names the key but does not show it. A reset icon and a copy icon are next to the menu.

  5. Copy the Stream URL

    Under Stream settings, select Copy next to Stream URL. Paste the URL and the key into your encoder.

    YouTube Studio Stream tab. The Key menu is above the preview. Stream settings shows the Stream URL rtmp://a.rtmp.youtube.com/live2.

    Under Stream settings, the Stream URL and the Backup server URL each have a Copy button.

What are the YouTube RTMP and RTMPS server URLs?

The default YouTube server URL is rtmp://a.rtmp.youtube.com/live2. The table also lists the RTMPS and backup server URLs. To learn what RTMP and RTMPS mean, see what RTMP is and how it works.

The server URL tells your encoder where to send the video, and the stream key tells YouTube which channel it is. YouTube calls the server URL the Stream URL.

Diagram: the public server URL rtmp://a.rtmp.youtube.com/live2 and a secret stream key join in your encoder.

The server URL says where the stream goes, and many channels share it. The key says which channel it is, so keep it secret.

ServerURL
RTMP, primary (the default shown in Live Control Room)rtmp://a.rtmp.youtube.com/live2
RTMP, backuprtmp://b.rtmp.youtube.com/live2?backup=1
RTMPS, primary (encrypted, recommended by YouTube)rtmps://a.rtmps.youtube.com:443/live2
RTMPS, backuprtmps://b.rtmps.youtube.com:443/live2?backup=1

To see the RTMPS URL in Live Control Room, select the lock icon in the Stream URL field. For RTMPS, use rtmps and port 443.

Should OBS use a stream key or sign in to YouTube?

OBS Studio can sign in to your YouTube account, so you do not copy a key. Use the key for a channel that you cannot sign in to. Other encoders have the same two fields: Server and Stream key.

  1. Open the stream settings

    In OBS Studio, open Settings, then Stream. Set Service to YouTube - RTMPS.

  2. Sign in, or choose the key

    Select Connect Account (recommended) and sign in with Google. To use a key instead, select Use Stream Key.

  3. Paste the key and save

    Paste the stream key from Live Control Room. Select Apply, then OK.

Fix a missing key or a rejected stream

Most problems have one of these causes. For OBS connection errors, see how to fix RTMP and stream key errors.

You cannot see a stream key or Go live

What you seeLikely causeFix
No Go liveThe channel is not verified, or is new to liveVerify by phone, then wait up to 24 hours
Live streaming is blockedA restriction in the past 90 days, a strike, or an age under 16Wait until it ends. A strike blocks live streaming for 14 days

YouTube does not receive your stream

SymptomLikely causeFix
It stopped after a resetThe encoder has the old keyPaste the new key into every tool
A scheduled stream key stoppedA key made for one scheduled stream can be deleted after that streamUse a reusable key: in the Key menu, select Create new stream key
RTMPS does not connectThe URL says rtmp, or the port is wrongUse rtmps with port 443

To create a scheduled stream in YouTube Studio, see how to schedule a YouTube live stream.

How do you stream prerecorded video to YouTube 24/7 without a key?

Streamloop turns prerecorded videos into a 24/7 live stream from the cloud. You need no OBS, and your computer can be off. It suits lofi and ambient channels, sermon replays and podcasts. A 24/7 live stream stays live, so new viewers can find it at any hour.

To reach your channel, Streamloop uses a YouTube sign-in or your stream key. With the sign-in, called Connect channel, you need no key. For a live game or camera stream to one channel, OBS is enough.

In your loop, open the General tab, and select Connect a destination. Select Connect new destination, choose YouTube, then select Connect channel and sign in with Google.

If you prefer to paste a key, choose the RTMP stream key option instead.

Streamloop Add destination dialog. YouTube has two options: Connect channel, which is recommended, and RTMP stream key.

Connect channel signs in with Google. RTMP stream key takes a key from YouTube Studio.

Next: send one loop to YouTube and other platforms, or run a 24/7 prerecorded stream.

Stream to YouTube without a key

Streaming is billed by the minute, only while live: one 24/7 stream at 1080p is about $10 per 30 days. Start with a $1 trial week, which becomes a monthly plan unless you cancel, or top up and pay as you go. See all prices

Start the $1 trial

Frequently asked questions

Can I get a YouTube stream key on my phone?

YouTube documents the stream key only in YouTube Studio on a computer. A cloud loop streams prerecorded video with no computer on: see the 24/7 guide.

Do I need 50 subscribers to get a stream key?

No. YouTube lists the 50-subscriber rule only for the mobile app. An encoder needs a verified channel with no live streaming restrictions in the past 90 days.

How do I reset my YouTube stream key?

On the Stream tab in YouTube Studio, select Reset, the circular arrow icon next to the Key menu. Then paste the new key into each encoder, and in Streamloop, add the destination again and remove the old one.

Does my YouTube stream key change every time I stream?

No. YouTube loads your previous settings, including the key. To pick a key on purpose, open the Key menu and select Create new stream key.