Skip to content

How to Find Your Twitch Stream Key and Server URL

Your Twitch stream key is in the Creator Dashboard. Select Settings, then Stream, and copy the Primary Stream key. Most encoders, such as OBS, choose the Twitch server for you, so you usually need only the key.

Use a web browser, because the Twitch app goes live without a key. The key works like a password for your channel, so never show it on stream or share it.

Where
Creator Dashboard, Settings, Stream
Server URL (default)
rtmp://ingest.global-contribute.live-video.net/app

Most encoders fill it in. When you need it.

Using OBS? OBS can connect your Twitch account instead, with no key. No key, or you cannot go live? See the fixes. Looping prerecorded video 24/7, such as lofi or music sets? Streamloop, a cloud tool for 24/7 loops, can stream it with your key.

Updated Checked against Twitch Help and the Streamloop dashboard

Find your Twitch stream key

  1. Sign in on twitch.tv

    Sign in to the channel that you stream to.

  2. Open your stream settings

    Go to dashboard.twitch.tv/settings/stream. Or open the Creator Dashboard, then select Settings, then Stream.

  3. Copy the Primary Stream key

    Under Primary Stream key, select Copy. The key shows only as dots unless you select Show.

    Twitch Creator Dashboard, Stream Settings. Under Stream Key & Preferences, the Primary Stream key shows only dots, with Copy and Reset buttons.

    Show, Copy and Reset are next to the key.

  4. Paste it into your encoder

    Unless you reset the key, you do not need to paste it again before each stream.

What is the Twitch server URL, and do you need it?

The server URL is the address of the Twitch ingest server that receives your video. When Twitch is the service in OBS, OBS chooses the server for you.

You type the server URL yourself only when your tool asks for it, as a hardware encoder does.

Server URLStream key
What it tells TwitchWhich server receives the videoWhich channel the stream is for
Default valuertmp://ingest.global-contribute.live-video.net/appYour own key
Secure formrtmps://ingest.global-contribute.live-video.net/appThe same key
SecretNoYes
When it changesWhen you choose another serverWhen you reset it or change your password
Diagram: the public server URL says where the stream goes. The secret stream key says which channel it is.

Your encoder joins them as rtmp://SERVER/app/STREAM-KEY. The key in the diagram is fake.

Twitch lists its regional servers at ingest.twitch.tv/ingests. For how RTMP sends your video to these servers, see what RTMP is and how it works.

Should OBS use a stream key or connect to Twitch?

OBS Studio can connect to your Twitch account, so you do not copy a key. Use the key when you cannot sign in on that computer. Other encoders have the same two fields: Server and Stream key.

  1. Open the stream settings

    In OBS Studio, open Settings, then Stream. For Service, select Twitch.

  2. Connect, or choose the key

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

  3. Paste the key and save

    Paste your key, and leave the server as it is. Select Apply, then OK.

What if you cannot see your key or go live?

Twitch Help names these common causes. For OBS connection errors, see how to fix RTMP and stream key errors.

SymptomCauseFix
You cannot see the keyYou are not signed in on twitch.tvSign in on twitch.tv in a browser, then open Settings, Stream
You cannot go liveA streaming suspension, for 24 hours to 30 daysCheck or appeal it at appeals.twitch.tv
Twitch does not receive the streamA wrong key, server or encoder settingCopy the key again, and let the encoder choose the server
Your key leakedAnother person saw itSelect Reset next to Primary Stream key, then paste the new key

How do you stream prerecorded video to Twitch 24/7?

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, music sets and podcasts. A channel that is always live gives viewers a place to return to for study, sleep or focus.

Streamloop uses your Twitch stream key to send the loop to your channel. For a live game or camera stream from your computer, OBS is enough.

  1. In your loop, open the General tab, and select Connect a destination. If the loop has one already, select Add destination.
  2. Select Connect new destination, then choose Twitch.
  3. Paste your key into Stream key, and select Save destination.
Streamloop Connect Twitch form. The RTMP URL field is locked to the Twitch ingest address. The Stream key field is empty.

The Twitch server is filled in and locked. You paste only the key.

Twitch asks you to mark prerecorded video as a Rerun. It also ends a broadcast after 48 hours, so Streamloop reconnects before then, and Twitch starts a new broadcast.

Next: send one loop to Twitch, YouTube and other platforms. For a live OBS show on both, see how to stream on Twitch and YouTube at the same time.

Stream a prerecorded loop to Twitch

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

Where do I find my stream key on Twitch?

Sign in on twitch.tv, open the Creator Dashboard, and select Settings, then Stream. Copy the key there, and keep it secret.

Can I get my Twitch stream key on the mobile app?

You do not need one there. Twitch says the Twitch app on iOS or Android needs no stream key. For another tool, use a web browser.

What is the Twitch RTMP URL?

The default server is rtmp://ingest.global-contribute.live-video.net/app. The full format is rtmp://SERVER/app/STREAM-KEY. Most encoders choose the server for you.

Is it safe to share my Twitch stream key?

No. Twitch says that sharing it could compromise your channel. Give a co-streamer a guest key from the Permissions part of your Stream settings.

How do I reset my Twitch stream key?

In the Creator Dashboard, open Settings, then Stream, and select Reset next to Primary Stream key. Then paste the new key into each encoder, and in Streamloop, add the destination again and remove the old one.

Does my Twitch stream key change?

It changes when you reset it and each time you change your Twitch password. Twitch may also reset it after an account takeover.

Can I stream prerecorded video to Twitch with my stream key?

Yes. Twitch calls it a Rerun. Select the Rerun checkbox in Edit Stream Info, and start the title with "[Rerun]".