When it comes to streaming movies, TV shows, series, and live TV, IPTVs are the simple, easier, and fastest way of accessing content anytime and anywhere around the world. There are multiple streaming services available on the internet like Netflix, Disney+, Prime Video, HBO Max, etc. But these services are costly and include less content compared to IPTV services. In order to simplify the process, IPTV offers all of it under a single subscription and single login. The cost of IPTV services is extremely low compared to the streaming services discussed above. Generally, there are two types of login available in IPTV: Xtream Codes API and M3U URL. You can either use the M3U URL or Xtream Codes API to stream the content of your IPTV provider. In this article, we’ve included a complete guide on Xtream Codes API.
What is Xtream Codes API
Xtream Codes API is a login credential that consists of a username, password, and server/port URL. It is used by various IPTV services as their login credential. Even if your IPTV service provides M3U URL and only a server/port URL, you can still extract the Xtream Codes API’s username and password. Xtream Codes is supported on popular IPTV player apps such as IPTV Smarters, GSE Smart IPTV, 247 IPTV player, and more.
How to Extract Xtream Codes API from M3U URL
 Sign up and get the M3U playlist URL from any IPTV service provider for free or paid.
 You will receive all the required and available login credentials via mail.
 From the URL, the text or number next to the “username=” up to “&” is the Username.
 Then, the text or number next to the “password=” is the Password.
 The start of the M3U URL up to the colon (:) is the server URL.
 The number next to the colon (:) is the port number
 Now, you have successfully extracted the Xtream Codes API from M3U URL.
Sample M3U Playlist URL:
- Server URL – http://galaxytests.noip.best
- Port ID – 8080
- Username – iptvplayerguide
- Password – iptv123
How to Use Xtream Codes API to Stream IPTV on Smartphone
One of the most popular IPTV applications that support Xtream Codes API is GSE Smart IPTV. Follow the below steps to set up Xtream Codes on GSE Smart IPTV.
 Install GSE Smart IPTV on your Android or iOS device.
 Tap on the hamburger icon at the top left corner.
 Choose Xtream Codes API from the menu.
 Click on Add (+) at the bottom right corner.
 Enter the Xtream Codes details like the name, username, password, and server URL of your IPTV provider in the respective field.
 Click on Add and tap on the created profile.
 Now, you can stream the content of your IPTV provider on your Android or iOS device.
How to Set Up Xtream Codes API on Firestick
Follow the below steps to install the 247 IPTV player app on Firestick and stream the IPTV content using Xtream Codes API.
 Click the Find option on the Firestick home screen.
 Choose the Search tile and search for Downloader.
 Select the app and click on Download.
 Once downloaded and installed, get back to the home screen.
 Select the Settings (cog) icon from the menu.
 Go to My Fire TV >> Developer Options >> Install Unknown Apps >> Enable Downloader.
 Now, launch Downloader and enter the apk link of 247 IPTV Player.
 Click on Go to download the file.
 Tap Install on the pop-up menu.
 Once installed, open the 247 IPTV Player and enter the Username, Password, and server port URL. Then, tap Log in.
 Wait for the content to load on the 247 IPTV player.
 Now, play any video content and enjoy streaming it on your Firestick-connected TV.
How to Add Xtream Codes API to Stream IPTV on PC (Windows and Mac)
By using the VLC Media Player app, you can stream IPTV videos on Windows or Mac PC. Before moving into the steps, make sure to get the Xtream Codes API from your desired IPTV provider.
 Install the VLC Media Player app on your PC from the official website.
 Launch the VLC Media Player app and click the Media tap displayed at the top.
 From the list of options, choose the Open Network Stream option. You can also use the shortcut key, Ctrl + N.
 Now, the Open Media dialog box will open. Enter the server port URL in the box.
 Tap the Play button. Now, wait for the IPTV content to load.
 After loading, choose any content to play and enjoy streaming it on VLC Media Player.
How to Add and Stream IPTV on Smart TV using Xtream Codes API
Follow the below steps to install IPTV Smarters on Smart TV and watch IPTV content by adding Xtream Codes API to the IPTV Smarters app.
 Turn On your Smart TV and connect it to a stable internet connection.
 Navigate to the app store on your Smart TV and search for the IPTV Smarters application.
 Install the IPTV Smarters application on your Smart TV.
 Open it and tap Accept to the EULA agreement form.
 Once you’re in, select the option Login with Xtream Codes API.
 Now, you will be navigated to a new screen. Here, enter the Playlist name, Username, Password, and Port URL of your IPTV provider.
 Finally, select the Add User button and wait for the content to load on IPTV Smarters.
 Now, play your desired video content and watch it on a big screen.
With this, you came to know, how to use and extract Xtream Codes API from the M3U playlist. There are several other application that allows you to stream IPTV using Xtream Codes API. Some of them are SOPlayer, XC IPTV, and Perfect Player. It is highly recommended to use a VPN while streaming IPTV content. Nowadays, most IPTV services are illegal and stream copyrighted content without the knowledge of the original creator. So, use a standard VPN service to protect yourself from legal issues.