AnyFilm ANYFILM TV Developer docs
AnyFilm

ANYFILM TV API & Embeds

Every channel is available as JSON and as a ready to iframe player page. No API key needed — endpoints are open with CORS enabled.

Embed a channel

Drop this anywhere on your site. Replace 143 with any channel id.

<iframe
  src="https://anyfilmtv.pages.dev/embed/143"
  width="100%" height="480"
  frameborder="0" allowfullscreen
  allow="autoplay; fullscreen; encrypted-media; picture-in-picture">
</iframe>

Responsive 16:9 version:

<div style="position:relative;padding-top:56.25%">
  <iframe src="https://anyfilmtv.pages.dev/embed/143"
    style="position:absolute;inset:0;width:100%;height:100%;border:0"
    allowfullscreen allow="autoplay; fullscreen; encrypted-media"></iframe>
</div>

Player colour

Add ?colour= to any embed or watch URL to theme the player accent — controls, LIVE badge, loading spinner, quality/server menus and the watermark all follow it. Accepted value: a six-digit hex colour, with or without # (URL-encode # as %23). Text on the accent switches to black or white automatically. Without the parameter — or with an invalid value — the player keeps its default colour.

<iframe
  src="https://anyfilmtv.pages.dev/embed/143?colour=%23FFFFFF"
  width="100%" height="480"
  frameborder="0" allowfullscreen
  allow="autoplay; fullscreen; encrypted-media; picture-in-picture">
</iframe>

GET /api/public/channels

Full channel list with ids, names, categories, logos and links. Optional query params: category, lang (e.g. hindi, tamil, english), q (name search). Each channel has language and tags.

curl "https://anyfilmtv.pages.dev/api/public/channels?category=News&lang=hindi"
{
  "count": 1,
  "channels": [
    {
      "id": "143",
      "name": "CNBC TV18 Prime",
      "category": "English",
      "logo": "https://…/CNBCTV18Prime.png",
      "embed": "https://anyfilmtv.pages.dev/embed/143",
      "watch": "https://anyfilmtv.pages.dev/watch/143"
    }
  ]
}

GET /api/public/channels/{id}

Resolves one channel into playable sources: signed manifest URL(s) plus ClearKey DRM values when the stream is encrypted. Tokens are short-lived, so call it right before playback.

curl "https://anyfilmtv.pages.dev/api/public/channels/143"
{
  "id": "143",
  "name": "CNBC TV18 Prime",
  "category": "English",
  "sources": ["https://…/index.mpd?__hdnea__=…"],
  "drm": { "type": "clearkey", "keyId": "eb19…", "key": "b279…" },
  "embed": "https://anyfilmtv.pages.dev/embed/143"
}

GET /api/public/guide/{id}

Programme guide for a channel ID: current programme, next programme, upcoming shows and the full available schedule. No stream links or DRM keys are returned.

curl "https://anyfilmtv.pages.dev/api/public/guide/144"
const guide = await fetch("https://anyfilmtv.pages.dev/api/public/guide/144").then(r => r.json());
// guide.nowPlaying, guide.upNext, guide.upcoming, guide.guide
// Programme fields: title, start, stop, startTime, stopTime, desc, category, image

Start and stop are Unix timestamps in seconds; startTime and stopTime are provider display times. An empty schedule returns 200 with empty lists and null programmes. Invalid IDs return 400; an unavailable provider returns 502. CORS is enabled, responses cache for 30 seconds, and requests appear in API analytics.

Notes & limits