Skip to main content
Guides

M3U vs Xtream Codes API: Which Login Method is Better?

M3U vs Xtream Codes API: Which Login Method is Better?
7 min readBy Ciarán O'Brien

M3U vs Xtream Codes API: What Is the Difference for IPTV in Ireland?


When you subscribe to an IPTV service in Ireland, your provider gives you credentials to access their service. These credentials come in one of two formats: an M3U playlist URL or Xtream Codes API login details (a host URL, username, and password). Understanding the difference between these two formats helps you set up your IPTV app correctly and troubleshoot issues.


This guide explains M3U and Xtream Codes in plain terms, when to use each, and how they affect your IPTV experience.


What Is an M3U Playlist?

M3U vs Xtream Codes API: Which Login Method is Better?

M3U is a file format originally designed for audio playlists (the name stands for MPEG version 3 URL). For IPTV, an M3U playlist is a text file containing a list of channel URLs in a specific format.


A typical IPTV M3U file looks like:


#EXTM3U

#EXTINF:-1 tvg-id="RTE1" tvg-name="RTE One" group-title="Irish TV",RTÉ One

http://server.example.com:8080/live/username/password/123.ts

#EXTINF:-1 tvg-id="TG4" tvg-name="TG4" group-title="Irish TV",TG4

http://server.example.com:8080/live/username/password/124.ts


Each channel in the list has:

  • A channel name and metadata
  • A direct URL to the video stream

When you load an M3U playlist into an IPTV app, it reads this list and presents the channels for you to browse. The app directly fetches each stream from the URL listed when you select a channel.


M3U URL format you receive from your provider:

Typically looks like: http://server.example.com:8080/get.php?username=USER&password=PASS&type=m3u_plus


What Is Xtream Codes API?


Xtream Codes is a more sophisticated IPTV management system. Instead of a static list of stream URLs, Xtream Codes is an API (Application Programming Interface) that dynamically manages your subscription.


With Xtream Codes, you receive three pieces of information:

  1. Host URL: The server address (e.g., http://server.example.com:8080)
  2. Username: Your account username
  3. Password: Your account password

The IPTV app logs into the Xtream Codes API using these credentials. The API then:

  • Returns the current channel list for your subscription
  • Manages your session and simultaneous connection limit
  • Provides EPG (programme guide) data
  • Manages VOD content availability
  • Handles catch-up/time-shift scheduling

Key Differences Between M3U and Xtream Codes


| Feature | M3U Playlist | Xtream Codes API |

|---|---|---|

| Format | Static file/URL | Dynamic API with 3 credentials |

| Session management | None (anonymous stream access) | Yes (login session with limits) |

| Connection limit enforcement | Unreliable | Reliable (enforced per-session) |

| EPG integration | Separate URL required | Built-in EPG endpoint |

| VOD management | Listed in file | Dynamic VOD library |

| Channel updates | Requires playlist re-download | Automatic (API updates) |

| Catch-up TV | Sometimes supported | Built-in API support |

| App compatibility | All IPTV apps | Most IPTV apps |

| Bandwidth | Lower (stream direct) | Slightly higher (API overhead) |


Which Format Should You Use?


Use Xtream Codes API if:

  • Your IPTV app supports it (TiviMate, IPTV Smarters Pro, GSE Smart IPTV, OTT Navigator — all support it)
  • You want catch-up TV and on-demand VOD browsing
  • You want EPG to load automatically without a separate URL
  • You want automatic channel updates when your provider adds channels

Use M3U if:

  • Your app does not support Xtream Codes (some older or simpler players)
  • You use a MAG box (which uses a portal rather than Xtream Codes or M3U)
  • You want to use VLC on a computer (VLC plays M3U files directly)
  • Your provider offers M3U as the primary connection method

Emerald IPTV supports both: When you subscribe, you can use either your Xtream Codes credentials or your M3U URL depending on which app you use.


Setting Up with Xtream Codes in TiviMate


  1. Open TiviMate → Add Playlist → Xtream Codes
  2. Enter:

- Name: "Emerald IPTV" (your choice)

- Host: your Emerald IPTV host URL

- Username: your username

- Password: your password

  1. Add — channels load automatically

Setting Up with M3U in TiviMate


  1. Open TiviMate → Add Playlist → M3U playlist
  2. Enter your M3U URL in the "URL" field
  3. Add — channels load from the playlist file

Both methods show identical channels — the difference is in how the connection is managed behind the scenes.


Setting Up with Xtream Codes in IPTV Smarters Pro


  1. Open IPTV Smarters Pro → Add New User
  2. Select "Login with Xtream Codes API"
  3. Enter Host URL, Username, Password
  4. Add User — channels and EPG load automatically

Troubleshooting M3U vs Xtream Codes Issues


M3U URL expired or broken:

M3U URLs sometimes contain the username and password in the URL itself. If your provider regenerates credentials, your old M3U URL may stop working. Re-request your M3U URL from Emerald IPTV support.


Xtream Codes login shows "connection refused":

The host URL must include the correct port number (commonly 8080 or 25461). Format: http://server.emeraldiptv.ie:8080. Contact support to confirm the current host URL.


App shows channels but they won't play:

With M3U: the individual stream URLs may have changed. Re-download or refresh the M3U. With Xtream Codes: log out and back in to refresh the session.


EPG not loading with M3U:

M3U playlists do not automatically include EPG data. In your IPTV app, add your EPG source URL separately (in TiviMate: Settings → EPG → Add source → enter your XMLTV URL from Emerald IPTV).


EPG not loading with Xtream Codes:

Xtream Codes includes an EPG endpoint automatically. If EPG is empty, check that your app is configured to pull EPG from the Xtream Codes API (in TiviMate: Settings → EPG → ensure "From playlist" or "From Xtream Codes" is selected).


Which Is More Reliable?


For daily use, Xtream Codes is generally more reliable because:

  • Session management means your connection is authenticated and tracked
  • Channel updates push automatically without re-downloading a file
  • EPG integration is seamless
  • VOD library updates automatically

M3U is simpler and works everywhere, but requires more manual maintenance when your provider updates their infrastructure.


Both M3U and Xtream Codes are fully supported by Emerald IPTV. For Firestick users with TiviMate or IPTV Smarters, Xtream Codes is the recommended connection method for the best experience.


Ready to Try Emerald IPTV Ireland?

Start your free 24-hour trial and experience the best IPTV for Ireland.