Guides

How Xtream Codes Works — API, Credentials and Catch-up

Understand Xtream Codes IPTV: host/username/password credentials, Live/VOD/Series API endpoints, provider EPG, TV archive catch-up and how GridStreamr uses the API without selling you a line.

14 min read

Responsible use

GridStreamr does not provide IPTV channels, VOD, or playlists. You bring your own authorized Xtream Codes or M3U sources. You are responsible for complying with applicable terms, licenses, and local law.

“Xtream Codes” shows up in provider emails as if it were a brand of television. Technically it is closer to a contract between panels and apps: a base host, a username, a password, and a family of HTTP API actions that return live categories, VOD, series, provider EPG and sometimes TV archive. This guide explains those moving parts in plain language and how GridStreamr’s Xtream player uses them — without pretending GridStreamr is your content provider.

The three secrets in every Xtream email

FieldWhat it isCommon footguns
Host / DNS / URLBase address of the panel (http(s)://domain[:port])Missing port, wrong http vs https, outdated DNS after migrations
UsernameLine identifierExtra spaces when copying from PDF emails
PasswordLine secretSharing it in group chats; confusing it with your GridStreamr account password

Apps do not download a mysterious “Xtream file.” They call endpoints under that host using your username/password (or tokenised derivatives) and receive JSON (or similar) lists of categories and streams.

What the API typically exposes

Exact paths vary by panel family, but conceptually you get:

  1. Authentication / account info — status, expiry, allowed outputs
  2. Live TV — categories → channels → stream URLs
  3. Movies (VOD) — categories → titles → info + playback
  4. Series — shows → seasons → episodes
  5. Provider EPG — now/next (and longer listings when the panel provides them)
  6. TV archive / catch-up — optional replay windows per live channel
  7. XMLTV helpers — many panels also publish a separate guide URL

GridStreamr maps those structures into Sources, the IPTV player, Smart Collections and Premium TimeShift.

Live TV flow (mental diagram)

Your app
  → GET live categories (auth)
  → GET streams in a category
  → User picks a channel
  → App requests / builds playback URL
  → Player (HLS/MPEG-TS/etc.) starts

If categories load but one channel fails, the failure is often upstream on that stream, not “Xtream is broken globally.”

VOD and series vs live

Live channels are continuous streams with optional archive. Movies/Series are on-demand titles the panel catalogs with metadata of uneven quality. That is why TMDB enrichment exists in GridStreamr — panels frequently ship empty posters and cryptic filenames.

EPG: Xtream provider guide vs XMLTV vs Global EPG

Xtream panels may offer:

  • Provider EPG via the Xtream API (convenient, sometimes thin)
  • A separate XMLTV URL (fuller schedules when maintained)

GridStreamr can also map channels to Global EPG so you are not stuck when panel guides are empty. Practical how-to: Add EPG to an IPTV playlist.

Catch-up / TV archive

When a panel enables archive on a channel, the API advertises that the channel has a replay window and how to request a past segment. GridStreamr Premium TimeShift turns that into a programme picker + scrubber + Back to Live control.

Details: How IPTV catch-up / TimeShift works.

No archive flag → no honest catch-up button. Apps that fake rewind without archive are guessing.

Xtream vs M3U (short version)

TopicXtream APIM3U playlist
ShapeHost + user + passURL to a text playlist
StructureLive / VOD / Series treesFlat or group-title lists
UpdatesPanel state via APIRe-fetch entire file
Catch-upArchive endpoints when enabledRare / attribute hacks
PortabilityNeeds Xtream-aware appsWorks almost everywhere

Full comparison: M3U vs Xtream Codes. Many households use both inside Smart Collections.

How GridStreamr uses Xtream specifically

When you tap Add Source → Xtream and save:

  1. Credentials are stored for your GridStreamr account (treat the device like it holds secrets)
  2. Categories and catalogs import into the Sources UI
  3. You play directly or add channels into Smart Collections
  4. EPG mapping and AI cleanup can improve presentation
  5. Secure shares mint virtual credentials so family never sees the real panel password
  6. Premium TimeShift talks to archive endpoints when present

Feature page: Xtream Codes. Setup: Android, iPhone, Android TV.

Multiple Xtream accounts

Premium users often keep complementary lines:

  • Sports-heavy panel A
  • Movies-heavy panel B

Connect both, merge into collections — combine multiple Xtream providers. Free includes a single Xtream account.

Security basics for Xtream credentials

  1. Never post host+user+pass in public forums
  2. Prefer virtual shares for family
  3. Rotate panel passwords when a leak is suspected — then recreate shares
  4. Beware phishing “panel login” pages
  5. Remember: your GridStreamr password and Xtream password are different secrets

Panels, resellers and why quality varies

“Xtream-compatible” covers many panel codebases and reseller setups. That is why two “Xtream” emails behave differently:

  • One has rich VOD metadata and 3-day archive
  • Another has empty EPG and flaky DNS

The API pattern is shared; operations quality is not. GridStreamr can organize and play what the panel returns — it cannot fix an empty bouquet.

Troubleshooting map

SymptomLikely layer
Auth failedCredentials / expiry / host typo
Categories emptyPanel lag, empty package, wrong host path
All channels bufferYour network / VPN / ISP path
One channel failsUpstream encode or geo
No TimeShiftNo archive or not Premium
EPG wrongTimezone / mapping, not “Xtream broken”

What Xtream is not

  • Not a legal shortcut around content rights
  • Not the same as “a GridStreamr subscription” (pricing is for the app features)
  • Not automatically available in every player (needs Xtream support)
  • Not Android Automotive / CarPlay / a shipping Apple TV app by itself — those are client concerns on top of the API

Verification checklist (understanding + practice)

  • You can explain host vs username vs password
  • You know whether your panel includes VOD/series
  • You know whether any channels advertise archive
  • You have added the account in GridStreamr successfully
  • You are not texting the real password to share access

Next reading

Connect Xtream the structured way

Add your authorized host, username and password in GridStreamr — then curate Smart Collections, EPG and optional TimeShift on top of the API.

Frequently asked questions

What is Xtream Codes?

Xtream Codes refers to a common IPTV panel/API pattern. Providers give you a host URL, username and password; apps call HTTP endpoints for live categories, VOD, series, provider EPG and optional TV archive.

Is Xtream Codes a subscription GridStreamr sells?

No. GridStreamr is a player and organizer. You bring an authorized Xtream account from a provider you already use. GridStreamr does not sell channels or lines.

How is Xtream different from M3U?

M3U is a playlist file of stream URLs. Xtream is a live API with structured Live/VOD/Series and better hooks for catch-up. Many providers offer both. See our M3U vs Xtream guide.

What do host, username and password mean?

Host is the panel base URL (often with a port). Username and password authenticate your line. Apps combine them to request category lists and playback URLs — treat them like account secrets.

Does Xtream always include catch-up?

No. TV archive is optional per panel and per channel. GridStreamr TimeShift only works when your provider exposes archive metadata.

Can I use multiple Xtream accounts?

In GridStreamr, Free includes one Xtream account; Premium allows unlimited accounts merged via Smart Collections.

Get started

Download gridstreamr free

Add your sources, build a Smart Collection, then upgrade to Premium in-app when you need more.

Related

Keep reading