# Plex Media Server - JSON rather than XML?

**URL:** <https://forums.plex.tv/t/plex-media-server-json-rather-than-xml/40601>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [August 16, 2013, 7:29am UTC](https://forums.plex.tv/t/plex-media-server-json-rather-than-xml/40601 "2013-08-16T07:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![area](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@area](https://forums.plex.tv/u/area)\
**Post date:** [August 16, 2013, 7:29am UTC](https://forums.plex.tv/t/plex-media-server-json-rather-than-xml/40601/1 "2013-08-16T07:29:58Z")

</div>

I'm currently looking into controlling my Plex server via the API. I have two questions:

&nbsp;

1. Is there a way to get JSON returned from commands rather than XML?
2. Are the available commands documented cleanly anywhere, or do I have to go scavenging around API wrappers and things that have already been implemented, which may or may not be complete?

---

<div class="post-metadata">

**Author:** ![kingargyle](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kingargyle/32/100618_2.png) [@kingargyle](https://forums.plex.tv/u/kingargyle)\
**Post date:** [August 23, 2013, 1:16pm UTC](https://forums.plex.tv/t/plex-media-server-json-rather-than-xml/40601/2 "2013-08-23T13:16:33Z")

</div>

Add an http header:  
  
  
Accept: application/json   
  
  
To get back a JSON response. For the rest you can check the wiki for some docs but there isn’t really a fully documented third party api. The best is to look at examples or search the forum.

---

<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, 11:54pm UTC](https://forums.plex.tv/t/plex-media-server-json-rather-than-xml/40601/3 "2019-12-20T23:54:55Z")

</div>

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