Plex Server - API DVR

Hi all,

I want to integrate the plex DVR into my home automatisation application. This means that I want to make subscriptions and so on over my application instead plex web.
I wonder if there is some documentation about the URLs/API itself. For example I would be interested in retrieving the EPG for a specific channel for the upcoming days. Not all EPGs of all channels like it is in the grid (PLEX WEB).

Does anyone have an idea for that?

Thanks.

You can use a service like mc2xml to get your epg data for whatever channels you want without talking to Plex at all. That is one piece but you will need additional work to interact with the DVR system itself which again might be easier to accomplish outside of Plex.

1 Like

I don;t think you can get full EPG for 1 channel but you can do it by type, for example

http://x.x.x.x:32400/tv.plex.providers.epg.onconnect:16/sections/2/all?type=2&channel=3&X-Plex-Container-Start=0&X-Plex-Container-Size=1150&X-Plex-Product=Plex%20Web&X-Plex-Version=3.77.4&X-Plex-Platform=Chrome&X-Plex-Platform-Version=71.0&X-Plex-Sync-Version=2&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=1920x969%2C1920x1080&X-Plex-Token=&X-Plex-Language=en-GB&X-Plex-Text-Format=plain

Will give you all Shows on channel id 3, change the second 2 in bold to a 4 and it will give you all episodes
Change both bold 2s to 1 and it will get movies on the same channel

For an idea how to send a subscription request have a look at some of my scripts, in particular
AutoSchedule.py
episodeKeyword.py
DVRShows.py

These were written for me so there’s a bit of hard coding going on but it shouldn’t take much to adapt to your needs.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.