# Plex HTTP API and UDP API information.

**URL:** <https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [May 8, 2009, 7:41am UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702 "2009-05-08T07:41:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oakgraphics](https://avatars.discourse-cdn.com/v4/letter/o/a6a055/32.png) [@Oakgraphics](https://forums.plex.tv/u/Oakgraphics)\
**Post date:** [May 8, 2009, 7:41am UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/1 "2009-05-08T07:41:06Z")

</div>

Looking for the basics to control Plex via TCP and UDP connections.
Hello gang. Been lurking for a while, but I can't seem to find where the HTTP API docs or the UDP API docs are located for Plex. :-?  
I have seen the XBMC HTTP API, and fiddled with it with minimal success until I read through the posts and noticed there is a lot of broken behavior with the keymaps and such at the moment. I started to follow the sendkey codes for the logitech remote and that seems to be working.  
However I was looking to get more things working - like playlists, and thumbnails, and jumping to new windows and the like. Any suggestions on where I can find these docs?  
  
Thanks in advance,  
Daniel

---

<div class="post-metadata">

**Author:** ![riviera](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/riviera/32/229_2.png) [@riviera](https://forums.plex.tv/u/riviera)\
**Post date:** [May 8, 2009, 10:00am UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/2 "2009-05-08T10:00:23Z")

</div>

I don’t believe there is any documentation beyond the [xbmc wiki](http://xbmc.org/wiki/?title=WebServerHTTP-API) page on the HTTP api. Same goes for the UDP EventServer, which can be found [here[/here].  
  
For the EventServer you can also find some example code etc. [url=http://github.com/elan/plex/tree/6c47c4d2ea8c7f36bbda836d176359ddfe11f515/tools/EventClients]here](http://xbmc.org/wiki/?title=EventServer).  
  
  
  
What is it you’re trying to do with it then?  
  
  
  
Edit: Saw your posts in the remote thread, so that kind of answers my question.  
  
I spent a bit of time trying to get the EventServer code to work on the iphone myself but not much luck so far. Still trying to get my head around using C++ code along objective c in a project. Would be great if you could post an update if you try this and get it to work.

---

<div class="post-metadata">

**Author:** ![bdrew](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bdrew](https://forums.plex.tv/u/bdrew)\
**Post date:** [May 8, 2009, 2:26pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/3 "2009-05-08T14:26:53Z")

</div>

The XBMC HTTPAPI is what I have been using for development for the XBMC and PLEX platforms. Currently the only difference is that the SendKey Values (256 to 283 ) do not work with PLEX anymore. Also the Keyboard values were broken in both PLEX and XBMC. There is a SVN fix for this for XBMC now. I am waiting to see if this is fixed in the upcoming versions of PLEX.  
  
  
  
Cheers

---

<div class="post-metadata">

**Author:** ![Jurgen](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jurgen](https://forums.plex.tv/u/Jurgen)\
**Post date:** [May 8, 2009, 7:46pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/4 "2009-05-08T19:46:36Z")

</div>

> [@](#):
>
> The XBMC HTTPAPI is what I have been using for development for the XBMC and PLEX platforms. Currently the only difference is that the SendKey Values (256 to 283 ) do not work with PLEX anymore. Also the Keyboard values were broken in both PLEX and XBMC. There is a SVN fix for this for XBMC now. I am waiting to see if this is fixed in the upcoming versions of PLEX.  
>   
>   
>   
> Cheers

  
  
Hi Audiocoder,  
  
Could you provide some details on the SVN fix of XBMC .. as this problem is something I am trying to remove for many weeks now...so your help would help the dev-team;-)  
Thanks on forehand for your swift reply.

---

<div class="post-metadata">

**Author:** ![Oakgraphics](https://avatars.discourse-cdn.com/v4/letter/o/a6a055/32.png) [@Oakgraphics](https://forums.plex.tv/u/Oakgraphics)\
**Post date:** [May 10, 2009, 6:43am UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/5 "2009-05-10T06:43:41Z")

</div>

> [@](#):
>
> The XBMC HTTPAPI is what I have been using for development for the XBMC and PLEX platforms. Currently the only difference is that the SendKey Values (256 to 283 ) do not work with PLEX anymore. Also the Keyboard values were broken in both PLEX and XBMC. There is a SVN fix for this for XBMC now. I am waiting to see if this is fixed in the upcoming versions of PLEX.  
>   
>   
>   
> Cheers

  
  
Thanks for the note. I was going crazy trying to find out if it was a coding issue, or not. For now I am trying to stick with the harmony remote codes, as they seem to be the only thing working in that area.  
  
my next hurdle is to make an objective-c base64 decoder. :-)

---

<div class="post-metadata">

**Author:** ![bdrew](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bdrew](https://forums.plex.tv/u/bdrew)\
**Post date:** [May 27, 2009, 8:09pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/6 "2009-05-27T20:09:28Z")

</div>

Sorry I missed this post Jaytee.  
  
  
  
The SendKey values for the xbox controller were removed from plex. This is what I was using for cursor navigation. Since they were removed I have has to use the Virtual Keyboard SendKey Values which up until v0.8.1 were broken.  
  
  
  
What I would really love is some documentation on the ReplaceWindow commands in Plex. The new App store windows and the direct window selection for iTunes would be cool. So for I have gotten as far as this command “ExecBuiltIn&parameter=XBMC.ReplaceWindow(10501,iTunes)” bringing me to the iTunes window, but am still trying to figure out how to go directly to iTunes at the Artist or Album level.  
  
  
  
Cheers

---

<div class="post-metadata">

**Author:** ![Jurgen](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jurgen](https://forums.plex.tv/u/Jurgen)\
**Post date:** [May 27, 2009, 10:43pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/7 "2009-05-27T22:43:53Z")

</div>

> [@](#):
>
> Sorry I missed this post Jaytee.  
>   
>   
>   
> The SendKey values for the xbox controller were removed from plex. This is what I was using for cursor navigation. Since they were removed I have has to use the Virtual Keyboard SendKey Values which up until v0.8.1 were broken.  
>   
>   
>   
> What I would really love is some documentation on the ReplaceWindow commands in Plex. The new App store windows and the direct window selection for iTunes would be cool. So for I have gotten as far as this command “ExecBuiltIn&parameter=XBMC.ReplaceWindow(10501,iTunes)” bringing me to the iTunes window, but am still trying to figure out how to go directly to iTunes at the Artist or Album level.  
>   
>   
>   
> Cheers

  
  
Hi Audiocoder,  
  
You can get to the Artist or Album level using the direct interface with the mediacenter (port 32400 on your mac running Plex and Mediacenter). Unfortunately I haven't found out yet how to start a certain file from this Mediacenter as I don't get the direct location of the files.. which means starting a file using the reference from the Mediacenter starts a stream .. ... leaving out all info on the file ..   
The data returned from Plex Mediacenter is in XML, so that shouldn't be a problem to digest in your software ;-)  
  
Rgds,  
JayTee

---

<div class="post-metadata">

**Author:** ![relaxer](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@relaxer](https://forums.plex.tv/u/relaxer)\
**Post date:** [January 18, 2010, 4:16pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/8 "2010-01-18T16:16:59Z")

</div>

> [@](#):
>
> Hi Audiocoder,  
>   
> You can get to the Artist or Album level using the direct interface with the mediacenter (port 32400 on your mac running Plex and Mediacenter). Unfortunately I haven't found out yet how to start a certain file from this Mediacenter as I don't get the direct location of the files.. which means starting a file using the reference from the Mediacenter starts a stream .. ... leaving out all info on the file ..   
> The data returned from Plex Mediacenter is in XML, so that shouldn't be a problem to digest in your software ;-)  
>   
> Rgds,  
> JayTee

  
  
  
Hey Jay,   
  
Did you solve it? I got stuck when trying to start playback of a file, I can only start streaming the file which seems odd.   
(I've tried http://xbox/xbmcCmds/xbmcHttp?command=GetShares(music) and then use that path to stitch it all together but with no luck)  
  
Anyone feels like helping out here?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:26pm UTC](https://forums.plex.tv/t/plex-http-api-and-udp-api-information/1702/9 "2019-12-20T20:26:16Z")

</div>

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