TS IPTV

Xtream Codes style links

If your provider gave you a server, a username and a password, or a link that contains get.php, the service uses an Xtream Codes style API. This page explains those links and how to use them in TS IPTV.

TS IPTV includes no channels and recommends no provider. Every example uses the placeholder server provider.example.com, username U and password P.

What it is

“Xtream Codes” is the name of panel software that many IPTV providers use to manage subscribers and streams. It is a provider API, not a file format: the provider's server generates an M3U playlist, an XMLTV guide and JSON data for your account. There is no official public specification; the structure below is the one open-source players use. Whether a provider is licensed to carry its channels is a question about that provider, not about the software it runs.

The link contains your username and password. Do not share it, post it online or take screenshots that show it. Anyone who has the link can use your account.

URL structure

http(s)://provider.example.com:8080 is the server and port your provider gave you; U is the username, P the password.

PurposeURL
M3U playlist…/get.php?username=U&password=P&type=m3u_plus&output=ts
type=m3u_plus: with names, logos, groups and tvg-id; type=m3u: without. output=ts (MPEG-TS) or output=m3u8 (HLS).
Account information (JSON)…/player_api.php?username=U&password=P
Returns user_info (status, expiry date, maximum connections…) and server_info.
Categories and channel lists (JSON)…/player_api.php?username=U&password=P&action=get_live_categories
…&action=get_live_streams (add &category_id=X to filter)
Films and series (JSON)…&action=get_vod_categories, get_vod_streams, get_vod_info&vod_id=X, get_series_categories, get_series, get_series_info&series_id=X
XMLTV guide…/xmltv.php?username=U&password=P
One live channel…/live/U/P/<stream_id>.ts (or .m3u8)
One film / one episode…/movie/U/P/<id>.<ext>, …/series/U/P/<id>.<ext>
Catch-up…/timeshift/U/P/<minutes>/<YYYY-MM-DD:HH-MM>/<stream_id>.ts

Example

This is the playlist link you paste into TS IPTV. There is no file to download: the provider's server generates the list for your account each time it is fetched.

http://provider.example.com:8080/get.php?username=U&password=P&type=m3u_plus&output=ts

What it returns is an ordinary M3U playlist. Some providers add a guide link to the first line, for example #EXTM3U url-tvg="…/xmltv.php?username=U&password=P". Each channel points to a /live/U/P/… link.

Create one

Not applicable: the provider's server generates the list; you do not write it.

Hosting

Not applicable: your provider hosts the list, the guide and the streams.

Add it in TS IPTV

TS IPTV has no separate Xtream login screen. You add the account as a playlist link:

  1. Build the link: http(s)://<server>:<port>/get.php?username=U&password=P&type=m3u_plus&output=ts, replacing the server, the port, U (username) and P (password) with your provider's details. Many providers send this link ready-made.
  2. Open Add IPTV Source, enter a Source Name, paste the link into Source Link and choose Add IPTV.
  3. Programme guide: some providers add a url-tvg or x-tvg-url that points to xmltv.php, and then the guide loads automatically. If yours does not, TS IPTV has no separate guide URL field yet: download the list, add x-tvg-url="…/xmltv.php?username=U&password=P" to its #EXTM3U line and use Import from file (see the XMLTV guide).

TS IPTV does not send this link to analytics.

Common mistakes

MistakeSymptomFix
Using type=m3uChannels without groups, logos or guideUse type=m3u_plus.
Pasting the player_api.php linkNot recognised as a playlistThat is a JSON API, not a playlist; use get.php.
Wrong port, or https when the server only speaks http (or the reverse)Cannot connectUse exactly the server, port and protocol your provider gave you.
The account has expired or is suspendedAn empty list, or “The server refused this stream”Check the account with your provider.
Too many connections (several devices watching)Channels stop or are refusedStop playback on the other device.
Channels do not play on iOS with output=tsPlayback errorTry output=m3u8 (HLS).
Sharing the link, or a screenshot that shows itSomeone else uses your accountChange your password with the provider.

What TS IPTV supports

FeatureStatus
get.php playlists (m3u, m3u_plus)Supported on every platform
The xmltv.php guide through the list's url-tvg/x-tvg-urlSupported
A separate Xtream login screen (server, username, password)Not available Use the get.php link.
Films and series through player_api.phpNot supported Only the entries in the M3U list.
Catch-up (catchup="xc")Stored, playback coming later