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.
On this page
Find your Twitch stream key
Sign in on twitch.tv
Sign in to the channel that you stream to.
Open your stream settings
Go to dashboard.twitch.tv/settings/stream. Or open the Creator Dashboard, then select Settings, then Stream.
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 URL | Stream key | |
|---|---|---|
| What it tells Twitch | Which server receives the video | Which channel the stream is for |
| Default value | rtmp://ingest.global-contribute.live-video.net/app | Your own key |
| Secure form | rtmps://ingest.global-contribute.live-video.net/app | The same key |
| Secret | No | Yes |
| When it changes | When you choose another server | When you reset it or change your password |

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.
Open the stream settings
In OBS Studio, open Settings, then Stream. For Service, select Twitch.
Connect, or choose the key
Select Connect Account (recommended) and sign in to Twitch. To use a key instead, select Use Stream Key.
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.
| Symptom | Cause | Fix |
|---|---|---|
| You cannot see the key | You are not signed in on twitch.tv | Sign in on twitch.tv in a browser, then open Settings, Stream |
| You cannot go live | A streaming suspension, for 24 hours to 30 days | Check or appeal it at appeals.twitch.tv |
| Twitch does not receive the stream | A wrong key, server or encoder setting | Copy the key again, and let the encoder choose the server |
| Your key leaked | Another person saw it | Select 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.
- In your loop, open the General tab, and select Connect a destination. If the loop has one already, select Add destination.
- Select Connect new destination, then choose Twitch.
- Paste your key into Stream key, and select Save destination.

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
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]".
Sources
Sources
Twitch Help: Twitch Stream Key FAQ, Why Can't I Stream? and Broadcasting Guidelines
Twitch Help: Guide to Using Twitch Inspector, Enhanced Broadcasting with Multiple Encodes and On-Demand Content on Twitch
Twitch: Recommended Ingest Endpoints For You, and the Video Broadcast documentation for developers
Questions or a correction? Contact us
