player_api.php to fetch categories, live channels, movies, series, the EPG and your account details, including the expiry date and allowed connections. It loads faster than one big M3U file and keeps movies and series separate.What the player asks the panel
After you log in, a player makes a series of small requests to player_api.php instead of downloading one big file:
| Request | What comes back |
|---|---|
| No action (login) | Account status, expiry date, active and maximum connections, server time zone |
get_live_categories |
Live TV groups |
get_live_streams |
Channels, logos, EPG ids, catch-up flags |
get_vod_categories / get_vod_streams |
Movie groups and titles |
get_series / get_series_info |
Series, seasons and episodes |
get_short_epg |
Now and next for a channel |
Xtream login or M3U link?
| Xtream Codes | M3U link | |
|---|---|---|
| Loading time | Fast: loads per category | Slow on big lists: one large file |
| Movies and series | Separate sections with seasons | Mixed into the channel list |
| Expiry date in the app | Yes | No |
| Works in every player | Most modern players | Every player |
Reading the account details
status shows Active, Expired, Banned or Disabled. exp_date is a Unix timestamp; players turn it into a date. max_connections is how many screens may play at once, and active_cons how many are playing now. When those two are equal, the next screen gets max connections reached.
You can see all of this without an app in the IPTV checker.
Frequently asked questions
Is Xtream Codes legal?
Xtream Codes is a login method and API. Whether a service is legal depends on whether the provider has the rights to what it streams, not on the login type.
Where do I find my server URL?
It is the part of your get.php link before /get.php, including http:// and the port.