What's in an M3U link: get.php, username, password and type=m3u_plus
Most IPTV providers send a playlist link that looks like http://example.com:8080/get.php?username=jsmith&password=secret&type=m3u_plus&output=ts. It isn't random: every part has a job. Once you can read it, you can fix a link that won't load, choose the right variant, find the TV guide link, and turn the same account into an Xtream Codes login.
Short answer: An M3U link of the form http://server:port/get.php?username=…&password=…&type=m3u_plus&output=ts is your provider's playlist address with your login built in. type=m3u_plus asks for the full playlist with logos, categories and guide IDs; output picks the stream format (ts or m3u8). The part before /get.php plus the username and password is the same account as an Xtream Codes login.
Your playlist link contains your password. Anyone who has it can use your subscription and your connections, so don't post it in forums or screenshots.
The parts of the link
| Part | Example | What it does |
|---|---|---|
| Server and port | http://example.com:8080 | Your provider's server. The port (after the colon) is part of the address: leave it out and nothing loads. |
/get.php | /get.php | The panel's script that builds your playlist on request. |
username | username=jsmith | Your account name with the provider. |
password | password=secret | Your account password. |
type | type=m3u_plus | Which playlist format to return (see below). |
output | output=ts | Which stream format the channel addresses use (see below). Optional. |
The parts after the question mark are separated by &. Their order doesn't matter, but a missing or doubled &, a space, or a character lost when copying from an email is enough to break the link.
type=m3u_plus or type=m3u?
type=m3u_plusreturns the full playlist: every channel with its logo, its category (group-title) and its TV guide ID (tvg-id). This is the one you want in a player.type=m3ureturns a bare list of names and addresses. Channels play, but without categories, logos or a working TV guide.
If your channels arrive in one long list without categories, or the TV guide stays empty, check that the link says m3u_plus.
output=ts, m3u8 or hls?
output=ts: each channel is an MPEG-TS stream, the classic IPTV format.output=m3u8(some panels sayoutput=hls): each channel is an HLS stream, delivered in short pieces.- No
outputat all: the server uses its default.
Both play in a modern player. If channels stay black or keep stopping with one variant, try the other: some servers handle one of them better. Your provider can tell you which they recommend.
The TV guide link
Panels that serve get.php usually also serve the TV guide (XMLTV) for the same account at http://server:port/xmltv.php?username=…&password=…. Many playlists name it in their first line as url-tvg, and a player that reads it loads the guide by itself. If yours doesn't, this is the address to try as a guide link. See TV guide (EPG) not showing.
Turn the link into an Xtream Codes login
The link and an Xtream Codes login are two doors to the same account. Read them straight from the link:
- Server: everything before
/get.php, with the port, for examplehttp://example.com:8080. - Username: the text after
username=up to the next&. - Password: the text after
password=up to the next&.
Three short fields are much easier to type with a TV remote than one long link. How to enter it: Set up Xtream Codes on an LG TV. The differences in detail: M3U vs Xtream Codes.
Why the link downloads a file
Opened in a web browser, the link doesn't show a page: it downloads a file called get.php or playlist.m3u. That is the playlist itself, a plain text list of channels, and a sign that the link and your login work. A player needs the link, not the downloaded file: the link stays up to date when your provider changes channels, a file is only a snapshot.
Common problems with a playlist link
- Nothing loads at all
- Check the port and
http://versushttps://, and that no space or line break slipped in when copying. - The server refuses the login
- In a browser this shows as error 401 or 403. The username or password is wrong, the subscription has ended, or the account is already in use on another device.
- Channels but no categories or logos
- The link says
type=m3u: change it totype=m3u_plus. - Channels load but stay black
- Try the other
output(tsorm3u8). More checks: IPTV not working on an LG TV.
Questions
What does type=m3u_plus mean in an IPTV link?
It asks the provider's server for the full playlist, with each channel's logo, category and TV guide ID. type=m3u returns only names and addresses.
Should I use output=ts or output=m3u8?
Both work in a modern player. ts is the classic MPEG-TS stream, m3u8 is HLS. If channels stay black or stop with one, try the other.
How do I get the Xtream Codes login from an M3U link?
The server is everything before /get.php (with the port), the username follows username= and the password follows password=.
Is it safe to share my M3U link?
No. It contains your password; anyone with the link can use your subscription and its connections.