Twitch is a live streaming website that mainly focuses on video gaming and other eSports. Streaming your favorite Twitch game is an exhilarating experience. You can watch your favorite game in real-time, interact with the streamer and other viewers, and even make donations with Twitch Bits. If you have been curious about adding a Twitch stream to your website or blog, we have good news for you!
In this tutorial, we will show you how to embed a Twitch stream in any HTML site for free!
There are two ways to embed Twitch Stream on your website. The first method is using a website widget. The second method is using the embed or link option. I will show you the steps for each of those methods so you can decide which one is the best for you.
- Create your Twitch Stream widget here.
- Customize your Twitch Stream widget.
- Copy the Twitch Stream widget embed code.
- Login to your HTML website admin panel and create or edit a page.
- Paste the embed code where you want the Twitch Stream widget to appear.
- Save and view your page. Done!
That's easy! Embedding Twitch Stream widget on your HTML website will take only 2 minutes. If you need a more detailed guide, scroll down to follow our complete guide or watch our video guide.
Looking to purchase our premium features like auto-sync, customization, premium support and more? Please check the details on our pricing page here.
- Go to your Twitch profile.
- Please follow these steps to embed the Twitch live stream on your website.
- Add a placeholder element with a unique ID to your page, where you want the Twitch embed to be displayed.
- Load the Twitch embed JavaScript file.
- Initialize a
Twitch.Embed
object, with the placeholder element ID and options. If your site will be embedded on other domains, you must include them as a JavaScript array of strings under theparent
key.
Here's the example script code:
<html> <body> <!-- Add a placeholder for the Twitch embed --> <div id="twitch-embed"></div> <!-- Load the Twitch embed JavaScript file --> <script src="https://embed.twitch.tv/embed/v1.js"></script> <!-- Create a Twitch.Embed object that will render within the "twitch-embed" element --> <script type="text/javascript"> new Twitch.Embed("twitch-embed", { width: 854, height: 480, channel: "monstercat", // Only needed if this page is going to be embedded on other websites parent: ["embed.example.com", "othersite.example.com"] }); </script> </body> </html>
For more reference. You can visit Twitch Docs.
You may choose method 1 or method 2, it depends on your needs. But in case you choose method 1, you can follow our complete guide below.
Create and customize your Twitch Stream widget
The first part is creating your Twitch Stream widget using the SociableKIT dashboard. Customize the look and feel to match your brand. Follow the steps below.
-
Sign up FREE or login to SociableKIT. You can login here if you already have an account. Once you sign up, you will start your 7-day premium trial. After 7 days, you can activate the free plan if you don't need our premium features.
- Paste the embed code and save your HTML website page. Please follow the second part below to add Twitch Stream widget to your HTML website.
Enter your Twitch username.
Add Twitch Stream widget to your HTML website
The second part is adding your Twitch Stream widget to your HTML website. After you customize your Twitch Stream widget and copied the embed code, it is time to add it to your HTML website. Follow the steps below.
- Copy your free Twitch Stream widget embed code. Make sure you followed the first part above. It detailed how to you can create and customize your widget to get your free embed code.
- Open your HTML file.
- You can create a new HTML page or edit your existing HTML page.
- Paste the Javascript code you copied from SociableKIT. Paste it where you want the widget to appear.
- Save your HTML page.
- You may now upload your HTML page to your web hosting.
LIMITED TIME OFFER!
Sign up now to use our widgets for FREE FOREVER!
No credit card required. Cancel anytime.
In conclusion, this is a great way to show off your gaming skills to the world and potentially attract new viewers and followers. This is also a great way to add some interactivity to your site and give your visitors another reason to keep coming back. Just remember to follow the directions carefully and test everything out before you go live. Have fun!
Discover additional widget types you can embed on your website to enhance your business:
- Embed Google reviews on your website
- Embed LinkedIn feed on your website
- Embed Facebook feed on your website
- Embed Facebook events on your website
- Embed TikTok feed on your website
- Embed Indeed jobs on your website
- Embed YouTube channel on your website
- Embed YouTube playlist on your website
- Embed X (Formerly Twitter) feed on your website
- Embed RSS feed on your website
- Embed Google calendar on your website
- Embed Eventbrite events on your website
- Explore more widget types here
If you integrate these widgets, you can improve user engagement and provide valuable information directly on your website.
Need Support?
If you need help, feel free to chat with us in the live chat box on the lower right corner of this page. You may also use the chat box located here.
You may also email us at [email protected]
We’re happy to talk about how to embed Twitch Stream on your website!
