Files
All files are under https://cdn.worldwide-tv.dev/database/.
| File | Content | Use it to |
|---|---|---|
channels.json | every channel, its IDs and its logo | show a logo from our ID, an iptv-org or Wikidata ID |
logos.json | every logo file, with its size and date | list the logos, refresh a cache |
logos/<id>[.white].png | one logo (PNG, transparent) | display it |
version.channels.json
{"version": 1, "channels": [...]}: every channel of the database, closed and merged ones included.
ch_dhk02zjhwa. Never changes, never reused.france-3-alsace.fr. May change when the channel is renamed.uk for the United Kingdom).merged: the channel became parent.France3.fr, or France3.fr@Alsace for an edition.Q and digits), when it is known.logo is not the channel's own: the ID of the channel it comes from (its parent).{
"id": "ch_dhk02zjhwa", "slug": "france-3-alsace.fr", "name": "France 3 Alsace", "aliases": [],
"country": "fr", "status": "active", "parent": "ch_1r840gxdj5", "website": "https://www.france.tv/france-3/",
"iptv": "France3.fr@Alsace", "wikidata": null,
"logo": "https://cdn.worldwide-tv.dev/database/logos/ch_dhk02zjhwa.png",
"logo_white": "https://cdn.worldwide-tv.dev/database/logos/ch_dhk02zjhwa.white.png",
"logo_from": null
}
logos.json
A list with one record per logo file (a white version is a record of its own).
white for the version made for dark backgrounds, else null.PNG.YYYY-MM-DD): refresh a cached copy when it changes.Examples
Logo of a channel from its iptv-org ID:
const base = 'https://cdn.worldwide-tv.dev/database/'
const { channels } = await (await fetch(`${base}channels.json`)).json()
const channel = channels.find(c => c.iptv === 'France3.fr@Alsace')
channel?.logo
import json, urllib.request
base = 'https://cdn.worldwide-tv.dev/database/'
channels = json.load(urllib.request.urlopen(base + 'channels.json'))['channels']
channel = next((c for c in channels if c['iptv'] == 'France3.fr@Alsace'), None)
print(channel and channel['logo'])
curl -s https://cdn.worldwide-tv.dev/database/channels.json \
| jq -r '.channels[] | select(.iptv == "France3.fr@Alsace") | .logo'
Logo of a channel from a TV guide ID: see TV guides (the guides and their link to our channels are published by the epg repository).
Good to know
The channel has no logo here yet. It is listed on its country page with a Request it button, and the weekly searches keep looking for it.
Yes: iptv is the id of iptv-org's channels (or channel@feed
for its feeds). Categories, languages and broadcast areas are there.
Download the files once a day; compare updated in logos.json to download again only the images that changed.
Not yet: everything is a static file, so it never goes down with a server. A read-only lookup API (a guide ID, a name or a whole XMLTV channel list in, channels and logos out) is planned.