You already know how to get Xtream Codes working in a player. Now you need to turn those credentials into a plain M3U playlist URL — the format that half the players out there only accept. This guide covers the get.php endpoint, the URL types, EPG handling, and the M3U-specific failures you’ll hit along the way.
Prerequisite: if your codes aren’t working in a player yet, read How to Use Xtream Codes in 2026 first. That article covers getting credentials, choosing a server, and full player setup. This one picks up where that leaves off: converting the API credentials into an M3U URL that any playlist-capable player can load.

Why some players only accept M3U, not Xtream API
Xtream Codes servers expose two ways to pull your channels:
- Xtream API — the native protocol. You give the player a server address, port, username, and password. The player talks to the server’s API endpoints directly: login, stream, VOD, EPG. Players like TiviMate, Smarters, and STB Emu speak this protocol natively and give you the full experience — live EPG, VOD library, group management.
- M3U / M3U+ / M3U8 — a plain text playlist. The server generates a URL that lists every channel as a line of text. The player just loads that URL like a web page and parses the channel list. VLC, many Android TV apps, older set-top boxes, and some smart TV apps only understand this format.
If your player has no “Xtream” or “API” login option, it almost certainly wants an M3U URL. That’s where get.php comes in. The conversion is a single URL — no software, no conversion tool, no file download. You build the URL from your credentials and paste it into the player.
One thing to keep in mind: M3U is a static snapshot. The channel list is generated once when the player loads the URL. If your provider adds a new bouquet or renames a channel, the player won’t see it until the playlist is reloaded. The Xtream API, by contrast, queries the server in real time. For most users, M3U is “good enough” — you just need to know the trade-off.
The get.php endpoint explained
Every Xtream Codes server exposes a get.php file at its root (or a provider-specific path). You build the M3U URL by appending your credentials and a type parameter:
http://SERVER:PORT/get.php?username=USER&password=PASS&type=m3u_plus
Using placeholders:
http://server.example.com:25461/get.php?username=example_user&password=example_pass&type=m3u_plus
Break it down:
server.example.com— your Xtream server hostname or IP address25461— the port. Commonly 25461, 8080, or 80. Check your provider’s documentation for the correct port.get.php— the playlist generator endpoint. Some providers use a different path (e.g.,/playlist.php), so check your docs ifget.phpreturns a 404.username/password— your Xtream credentials, exactly as your provider gave themtype— the playlist format. See the table below for the options.
Open that URL in a browser and you’ll see a plain-text list of channels. Each line looks like:
#EXTM3U
#EXTINF:-1,Channel Name,http://server.example.com:25461/live/example_user/example_pass/12345.ts
#EXTINF:-1,Another Channel,http://server.example.com:25461/live/example_user/example_pass/12346.ts
That’s your M3U playlist. Paste the get.php URL (not the channel list) into your player’s M3U field. The player fetches and parses the list automatically.
Tip: if your provider uses HTTPS, the URL starts with https:// instead of http://. Some older set-top boxes can’t handle HTTPS — in that case, ask your provider for an HTTP port.
Which M3U type to pick
The type parameter controls what the server returns. Here’s the full breakdown:
| Type | What it gives you | Use it when |
|---|---|---|
m3u_plus | Full channel list with EPG metadata in #EXTINF lines, VOD entries, and group names | Default choice. Best for TiviMate, VLC, and most modern players. This is what you want 90% of the time. |
m3u8 | HTTP Live Streaming (HLS) variant — chunked segments with a master playlist. Better for live streaming over flaky or mobile connections | Mobile players, apps that specifically request HLS, or when you’re watching on a phone over 4G/5G |
m3u | Basic channel list, no EPG metadata, no VOD. Smallest payload | Older set-top boxes that choke on the extended format, or when the m3u_plus playlist is too large and loads slowly |
Start with m3u_plus. If your player struggles with the playlist size (slow initial load, channels appearing one by one), try m3u to cut the payload. If you’re streaming on a phone over mobile data and seeing buffering, m3u8 can help because HLS chunks are smaller and more resilient to packet loss.
Some providers only support one type. If m3u8 returns a 404, your server doesn’t generate HLS — stick with m3u_plus.
Using your M3U URL in a player
Full player setup walkthroughs live in How to Use Xtream Codes in 2026. Here’s the M3U-specific part for the most common players:
- TiviMate — Settings → Add Playlist → M3U URL. Paste your
get.phpURL. TiviMate will fetch the channel list and, if you also add thexmltv.phpEPG URL, pull the guide too. TiviMate is the best M3U experience on Android TV because it handles large playlists well and caches the channel list locally. - VLC — Media → Open Network Stream → paste the URL. VLC plays the playlist and shows a basic channel list, but it won’t give you a full EPG grid or VOD library. It’s fine for quick testing, not for daily use.
- Smarters Player — supports both Xtream API and M3U. If you’re already using the API login, you don’t need to convert. Use M3U only if the API login fails or the player doesn’t have an API option on your device.
- Generic set-top boxes — most have an “IPTV” or “Network” setup screen where you paste an M3U URL. The exact menu path varies by brand. Your provider’s support page usually has a device-specific guide.
The key difference to remember: with M3U, the player loads a static list. With Xtream API, the player queries the server in real time. M3U is simpler but less dynamic — channel renames, new bouquets, or VOD additions won’t appear until the playlist is reloaded (usually a manual refresh or app restart).
EPG: Xtream API vs M3U
This is where M3U users hit the biggest wall. The get.php playlist includes basic EPG metadata in the #EXTINF lines, but it’s a snapshot — generated once when you load the URL. It won’t update with the next day’s schedule, and it often lacks detailed programme descriptions.
For a live, updating EPG, you need the server’s xmltv endpoint:
http://server.example.com:25461/xmltv.php?username=example_user&password=example_pass
Most players that support M3U also have a separate EPG field (TiviMate calls it “EPG URL”, VLC uses “TV Guide URL”). Paste the xmltv.php URL there. The player will poll it regularly (usually every 30 minutes to a few hours) and keep your guide current.
If your player has no EPG field, you’re stuck with the snapshot EPG from get.php. That’s a limitation of the M3U format, not your setup. Some players (TiviMate, IPTVnator) handle this well; others (VLC) don’t show EPG at all.
Pro tip: if your EPG is empty or shows “no data”, wait 2–3 minutes after adding the xmltv.php URL. The first fetch can take a while on large EPGs. If it’s still empty after 5 minutes, the provider’s EPG feed may be down or the URL is wrong.
Troubleshooting M3U-specific failures
Most M3U problems fall into six categories. Work through this table top to bottom:
| Symptom | Likely cause | Fix |
|---|---|---|
get.php returns 404 | Wrong port, or the server doesn’t expose get.php at root | Try port 8080 or 80. Check your provider’s docs for the correct endpoint path. Some providers use /playlist.php or /m3u.php instead. |
Empty playlist (just #EXTM3U) | Expired credentials, or the account has no active subscription | Verify your codes work in a native Xtream player first (TiviMate API login). If the API login works but M3U is empty, the provider’s M3U generator is misconfigured — contact support. |
| Channels load but no video | Geo-block: the M3U URL resolves to a different IP than your API login, or the stream .ts URL is region-locked | Use a VPN that matches your provider’s allowed region. Test the individual .ts stream URL directly in a browser — if it plays, the issue is the player; if it 403s, it’s geo-blocking. |
| EPG shows “no data” | Player isn’t polling xmltv.php, or the EPG field is empty | Paste the xmltv.php URL into the player’s EPG field. Wait 2–3 minutes for the first fetch. If still empty, the provider’s EPG feed may be down. |
| Playlist works in browser but not in player | Player expects m3u8 (HLS) but you gave it m3u_plus, or the player can’t handle the playlist size | Switch the type parameter to m3u8 and retry. If that’s also 404, try m3u (basic) to reduce payload. |
| Intermittent buffering | M3U playlist is large; player is re-fetching the whole list on every channel change, or the stream bitrate exceeds your connection | Use m3u (basic) to reduce payload. Switch to native Xtream API if the player supports it. Check your connection speed — 1080p streams need at least 5 Mbps sustained. |
If none of the above applies, the issue is likely on the provider’s side. Test the same credentials in a different player (TiviMate is the best diagnostic tool) to isolate whether it’s your setup or the server.
FAQ
Can I use the same M3U URL on multiple devices?
Yes. The get.php URL is just a text list — there’s no per-device token. Paste it on as many devices as you like. Your provider’s concurrent-connection limit still applies (check your plan — most free codes allow 1–2 simultaneous streams).
Does the M3U URL expire?
The URL itself doesn’t expire, but the credentials inside it do. When your Xtream subscription renews, the same URL keeps working. If the account lapses, the playlist returns empty. “Daily” codes (free codes that rotate every 24 hours) will give you a new URL each day — the format is the same, the server/username/password changes.
Why does my M3U playlist have fewer channels than my Xtream API login?
Some providers hide VOD, adult, or regional channels from the M3U output. The get.php endpoint only includes what the server’s M3U generator is configured to expose. The API login shows the full catalogue. If you’re missing channels you can see in the API, ask your provider to include them in the M3U output.
Can I add my own channels to an M3U playlist?
Yes — M3U is plain text. You can download the playlist, edit it locally, add #EXTINF lines for your own streams (YouTube, local radio, etc.), and load the modified file. The Xtream channels will still update on reload, but your manual additions won’t. Some players (TiviMate) let you add individual channels on top of an M3U playlist without editing the file.
Is M3U faster than Xtream API?
For initial load, M3U is faster (one HTTP request vs. multiple API calls). For ongoing use, Xtream API is more efficient because it doesn’t re-download the whole channel list on every channel change. M3U re-fetches the playlist on each reload, which adds a few seconds of delay. If you’re switching channels frequently, the API is the smoother experience.
Ready for premium?
If you’re tired of hunting for free codes that expire every few days, our premium Xtream Codes give you a stable server, 24/7 support, and a 30-day money-back guarantee. No daily refresh, no “code of the day” roulette. One login, all devices, EPG included.
For the full setup guide — getting codes, choosing a server, and player walkthroughs — start with How to Use Xtream Codes in 2026. For the definition of what Xtream Codes actually are, see What Are Xtream Codes?.