Xtream Codes setup guide (2026)

Xtream Codes is the de-facto API for IPTV providers. This guide explains the URL format, how to enter credentials in any modern player, and how to troubleshoot the most common errors.

What is Xtream Codes?

Xtream Codes (also called Xtream API or Xtream UI) is a panel format that exposes channels, movies and series via a structured API. Compared to a flat M3U file, it gives players richer category navigation, EPG, VOD and series sections. See our deeper comparison: M3U vs Xtream Codes.

What credentials your provider sent you

Your provider typically gives you three pieces of information:

  • Server URL — e.g. http://my-iptv-server.com:8080
  • Username
  • Password

Some providers send a single line like http://server:port/get.php?username=USER&password=PASS&type=m3u_plus — the username and password are the URL parameters.

Setting up Xtream Codes in POWTV (recommended)

  1. Sign in on powtv.app/login with your Device ID.
  2. Click Add a Playlist → select Xtream Codes.
  3. Paste the Server URL (without trailing slash), username and password.
  4. Optionally set a 4-8 digit PIN to protect the playlist.
  5. The playlist syncs to your TV / Firestick / mobile instantly.

Common errors & fixes

"Invalid credentials" or HTTP 401

Username or password is wrong, or the subscription expired. Double-check the exact characters (case-sensitive) and contact your provider.

"Connection refused" or timeout

Your ISP is likely blocking the server port. POWTV's built-in anti-block DNS resolves most of these — or read our buffering troubleshooting guide.

Channels load but no EPG

Your provider might not expose the EPG endpoint. Ask them for the XMLTV URL and configure it separately if your player supports it.

Best players that support Xtream Codes

  • POWTV — full Xtream support + TMDB enrichment, multi-device sync.
  • TiviMate — Android TV only, EPG-heavy.
  • IPTV Smarters Pro — legacy choice; see our Smarters alternative.
Got a channel, a blog or a community?Become a POWTV partner: 30% of every licence sold through you, 90-day tracking, PayPal payouts.