Xtream Codes is both a server-side IPTV panel (the software most providers run to manage subscribers) and a client API (the login method your IPTV player uses). The latter is what this article is about.

The three fields

What Xtream Codes gives you that M3U does not

Adding Xtream Codes to your player

  1. TiviMate: Add playlist → Xtream Codes → fill name, server, username, password → Next.
  2. IPTV Smarters Pro: Add new user → Login with Xtream Codes API → same fields.
  3. iPlayTV (Apple TV): + → Xtream Codes → same fields.
  4. Perfect Player (Windows/desktop): Settings → Playlists → + → Xtream → same.

Converting Xtream Codes to M3U

Every Xtream Codes subscription also exposes an M3U endpoint. If you need a plain M3U URL (for a device that doesn't support the API — e.g. old MAG boxes, Enigma2 receivers), construct it like this:

http://SERVER:PORT/get.php?username=USER&password=PASS&type=m3u_plus&output=ts

For the matching EPG (XMLTV):

http://SERVER:PORT/xmltv.php?username=USER&password=PASS