What is an Xtream Codes (Xtream API) login?
Xtream Codes started out as the name of a stream management system used by many IPTV providers. Today the term mostly describes the login method that system introduced, known as the Xtream API. Instead of one long link, your provider gives you three details: a server URL (usually with a port number), a username and a password. An Xtream Codes player uses them to connect to your provider's server and request live channels, movies, series and program data directly from it.
One distinction matters: an Xtream Codes login is not a subscription, it is simply a way to access the subscription you already have. Only your own IPTV provider can give you these details. AFKast does not hand out accounts, channels or playlists; it connects to your provider using your login.
Why Xtream is often better organized than a plain M3U
A plain M3U file is essentially a list of links, one after another. Categories depend on group-title tags, and logos and guide matching depend on how carefully the file was put together. The Xtream API delivers content in a structured way instead:
- Split by type: live TV, movies (VOD) and series come from the server separately, so films never clutter your channel list.
- Seasons and episodes: series can be listed by season and episode rather than as one endless list.
- Richer details: where the provider has filled them in, posters, plot summaries, year and runtime come along too. Their quality depends entirely on the provider's server.
- Program guide: if the provider offers EPG, it arrives already matched to channels, often with no separate XMLTV link to hunt for.
- Up-to-date content: every refresh reads the current categories and titles from the server.
That does not make Xtream better in every case. Some providers only offer M3U, and some Xtream data is incomplete. For a fuller comparison, read Xtream Codes vs M3U.
| Xtream Codes login | M3U / M3U8 link | |
|---|---|---|
| What you enter | Server URL + username + password | A single link or file |
| Categories | Structured, straight from the server | Depend on group-title tags |
| Movie and series details | Posters, plots, seasons/episodes if the provider adds them | Usually name and logo |
| EPG | Through the API, if the provider offers it | May need a separate XMLTV link |
| Copy-paste risk | Three short fields | One long URL where a single typo breaks it |
Live TV, movies and series in AFKast
Once your Xtream Codes login is added, AFKast groups everything into three main sections. Live TV shows your provider's categories, channel logos and EPG where available. Movies and Series behave like a library, with posters, descriptions and a season-and-episode layout for shows. Anything you have not finished waits for you in "continue watching".
The everyday tools are the same everywhere: favorites, fast search, profiles (with an optional PIN), subtitle and audio track selection, playback speed and a sleep timer. HDR10 and HLG are supported on compatible devices and content.
EPG: the guide comes from your provider
With the Xtream API, the program guide is read from your provider's server. So if one channel shows an empty guide, the cause is usually that the provider supplies no program data for it, not the player. AFKast also supports guides in XMLTV format. Our what is EPG guide explains how it all works.
Common Xtream Codes errors and how to fix them
Most "login failed", "cannot connect to server" or "empty playlist" messages come down to a handful of simple causes:
| Symptom | Likely cause | What to do |
|---|---|---|
| Cannot reach the server | Wrong server URL or missing port | Enter the address exactly as your provider gave it, port included (e.g. http://example-server.com:8080). Do not add paths such as /get.php or /player_api.php. |
| Connection times out | https instead of http (or the other way round) | Use the protocol your provider specified. Many Xtream servers only work over http, and trying https can stop the connection. |
| Wrong username or password | Extra spaces from copying, letter case | Check each field by hand and remove leading or trailing spaces. Usernames and passwords may be case-sensitive. |
| Login refused after working before | Expired or suspended account | Check your subscription status with your provider; there is nothing to fix in the player. |
| Channel will not start, "max connections" message | Too many simultaneous connections | Your provider's limit on simultaneous streams may be reached. Stop playback on your other devices and try again. |
| Movies or series section is empty | No VOD in your package, or stale data | Refresh the playlist; if it is still empty, ask your provider whether your package includes movies and series. |
If your provider also gives you an M3U link for the same account, you can run it through the free M3U Checker to tell whether the problem lies with the account or the login details. For more fixes, see IPTV not working.
Which devices can you use as an Xtream Codes player?
| Device | Status | Where to get it |
|---|---|---|
| iPhone & iPad | ✅ Available | App Store |
| Mac | ✅ Available | Mac App Store |
| Windows | ✅ Available | Microsoft Store |
| Android phone & tablet | ✅ Available | Google Play |
| Android TV & Google TV | ✅ Available | Google Play |
All options are on the download AFKast page.
Free plan and Pro
The free plan covers 1 playlist and 2 devices and includes ads. Pro removes ads and adds offline downloads (where the source allows it), picture-in-picture, custom groups and sync on up to 6 devices. "6 devices" does not mean 6 streams at once: how many streams can play simultaneously is set by your provider's connection limit. Details are on the pricing page.
Your login details and privacy
Your Xtream Codes username and password are the key to your subscription, so do not post them anywhere public. AFKast uses them only to connect to your provider's server. They are stored on your device, and if you sign in to an AFKast account, your playlist syncs to your other devices through that account so you do not have to type it again. You can remove the playlist from the app at any time.
http:// and the port number. A missing port or the wrong protocol is behind a large share of Xtream login errors.