Create a gist now

Instantly share code, notes, and snippets.

tvheadend json api calls for version 4.0.8
http://admin:admin@192.168.1.239:9981/api/serverinfo
{"sw_version": "4.0.8~wheezy","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","trace"]}
http://admin:admin@192.168.1.239:9981/api/epg/events/grid
- returns tv listings guilde
http://admin:admin@192.168.1.239:9981/api/channel/list
- returns list of all tv/radio channels
{"entries":[ {"key": "8da5751f0c30fc8317d7d5875ce87bd4","val": "Markiza"}, ... }
http://admin:admin@192.168.1.239:9981/api/channel/grid
- returns detailed info of all tv/radio channels, use "tags" attribute to distinguish tv/hdtv/sdtv/radio channels
{"uuid": "...","enabled": true,"name": "Markiza","number": 0,"epgauto": true,"epggrab": [],"dvr_pre_time": 0,"dvr_pst_time": 0,"services": ["..."],"tags": ["...","..."],"bouquet": ""}
http://admin:admin@192.168.1.239:9981/api/channeltag/list
- returns mapping of "tags" attribute
{"entries": [{"key": "38b3ee78ee6655609b64d684706bed8b","val": "HDTV"},...}
http://admin:admin@192.168.1.239:9981/stream/channel/c2585aa2ec74d75fc022177c77c08dea
- returns video stream which can be opened in VLC / html5 video tag, the channel id is uuid of channel/grid request
- some extra http variables can be used to transcode the stream e.g. "?mux=PASS&transcode=1&acodec=AAC&vcodec=H264"
http://admin:admin@192.168.1.239:9981/api/mpegts/service/grid
- returns multiplex list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment