Practical Guide

Xtream Code API Account: Login, Format & Testing Guide

Updated: 8 min read

An Xtream Code API account is the login most IPTV providers give you today. Instead of one long playlist link, modern players ask for three fields: Server URL (Host), Username and Password. This guide explains where to find each one, how to check that the account works, and how to log in on any player, including your car screen with Android Auto.

Quick answer: the 3 fields of an Xtream account

FieldExampleWhere to find it
Server URL / Hosthttp://my-server.com:8080Everything before /get.php or /player_api.php
UsernameJohnDoe22After username=
PasswordSecure99After password=

Don't want to do it by hand? Paste your link into the free Xtream Codes extractor and it splits it for you, right in your browser.

What is an Xtream Codes API account?

“Xtream Codes” started as server software for IPTV providers. Its API became a de facto standard: almost every IPTV player (IPTV Smarters, XCIPTV, TiviMate, AutoIPTV…) can log in with it. Compared to a plain M3U playlist, an Xtream login:

  • Downloads channels already organized by category.
  • Loads the EPG (program guide) and VOD posters automatically.
  • Updates itself when the provider changes channels, with no new link needed.
  • Shows account info such as expiry date and max connections.

The link formats you may receive

Providers send credentials in different shapes. All of these contain the same three fields (examples are made up):

1. M3U “get.php” link (most common)

http://my-server.com:8080/get.php?username=JohnDoe22&password=Secure99&type=m3u_plus&output=ts

2. Player API link

http://my-server.com:8080/player_api.php?username=JohnDoe22&password=Secure99

3. Direct stream link

http://my-server.com:8080/live/JohnDoe22/Secure99/12345.ts

In the third format, the username and password are the two path segments after /live/ (or /movie/, /series/).

How to extract the credentials step by step

1. Server URL (host + port)

Take the protocol (http:// or https://), the domain or IP, and the port. Common ports are :8080, :80, :8000, :25461 and :2086. Forgetting the port is the #1 cause of “can't connect to server”.

2. Username

Copy everything after username= up to the next &. Usernames are case-sensitive.

3. Password

Copy everything after password= up to the next &. Watch out for spaces at the end when copying from WhatsApp or email.

Test your Xtream Code API account live

Before setting up your player, check whether the server responds, when the account expires and how many simultaneous connections it allows.

Open the free Xtream Codes checker

How to log in with your Xtream account

On Android Auto (car screen)

Phone IPTV players don't show up on Android Auto, because Google doesn't allow video apps there (see Xtream player for Android Auto). With AutoIPTV, open the app on your phone and choose “Add Xtream Codes API account”:

  • Account name: any label (e.g. “My Car TV”)
  • Server URL: http://my-server.com:8080
  • Username: JohnDoe22
  • Password: Secure99

Then plug your phone into the car. First time? Follow how to watch IPTV on Android Auto to enable developer mode.

On other players

The process is the same in any player: look for “Login with Xtream Codes API” (sometimes “Xtream login” or “XC API”) and paste the three fields. Some players call the server field “Portal URL” or “Any name / URL”.

Troubleshooting Xtream logins

ErrorLikely causeFix
Invalid username or passwordTypo, wrong case or trailing spaceCopy with the extractor
Can't connect to serverMissing port or wrong protocolAdd :8080 (or your port) and http://
Account expiredSubscription or trial endedContact your provider
Max connections reachedAccount in use on another deviceClose the other session
Channels load but don't playServer overloaded or format issueSee playlist loading errors

A word on “free Xtream Code API accounts”

Lists of free accounts shared on forums are usually leaked credentials: they stop working within hours, can expose your IP address and often carry unlicensed content. Use accounts from your own provider or official trials. More in our guide to Xtream test accounts.

FAQ

Is an Xtream Code API account the same as an M3U link?

They usually point to the same service. The M3U link contains the Xtream username and password, so you can convert one into the other.

Can I get the M3U link from my Xtream login?

Yes: http://server:port/get.php?username=USER&password=PASS&type=m3u_plus&output=ts. The extractor builds it for you.

Is it safe to paste my link into an online tool?

Our extractor runs entirely in your browser; nothing is sent or stored. Avoid tools that ask you to “log in” to check your account.

Instant categories, EPG and VOD in your car

Logging in via API lets AutoIPTV load categories, the program guide and posters without slowing down your head unit.

Download AutoIPTV APK