# Access PMS Database???

**URL:** <https://forums.plex.tv/t/access-pms-database/130378>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [January 6, 2016, 9:53pm UTC](https://forums.plex.tv/t/access-pms-database/130378 "2016-01-06T21:53:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjrjr1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jjrjr1/32/10993_2.png) [@jjrjr1](https://forums.plex.tv/u/jjrjr1)\
**Post date:** [January 6, 2016, 9:53pm UTC](https://forums.plex.tv/t/access-pms-database/130378/1 "2016-01-06T21:53:08Z")

</div>

Hi

Does anyone know how to access the PMS database on a windows box??

I want to get, from an external app I wanna write:  
Library name  
Media Name  
Sort Name  
Cover Art location and file name  
Media file location and filename

Any help would be appreciated.

Thanks  
John

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 6, 2016, 10:06pm UTC](https://forums.plex.tv/t/access-pms-database/130378/2 "2016-01-06T22:06:42Z")

</div>

sorry - closed in error - re-opened

---

<div class="post-metadata">

**Author:** ![cayars](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cayars/32/6296_2.png) [@cayars](https://forums.plex.tv/u/cayars)\
**Post date:** [January 6, 2016, 10:43pm UTC](https://forums.plex.tv/t/access-pms-database/130378/3 "2016-01-06T22:43:55Z")

</div>

Yes this isn’t to hard. Check out the thread in my sig and look at the index on the op message. There are a few examples of how to access the database.

Carlo

---

<div class="post-metadata">

**Author:** ![jjrjr1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jjrjr1/32/10993_2.png) [@jjrjr1](https://forums.plex.tv/u/jjrjr1)\
**Post date:** [January 6, 2016, 11:55pm UTC](https://forums.plex.tv/t/access-pms-database/130378/4 "2016-01-06T23:55:26Z")

</div>

@cayars

I looked.

Could not find anything that appears it would work for my needs.

I wanna write an external program where I can get the data described above to be used for an app I have in mind.

Thanks  
John

---

<div class="post-metadata">

**Author:** ![cayars](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cayars/32/6296_2.png) [@cayars](https://forums.plex.tv/u/cayars)\
**Post date:** [January 6, 2016, 11:57pm UTC](https://forums.plex.tv/t/access-pms-database/130378/5 "2016-01-06T23:57:46Z")

</div>

U didn’t look good enough. 🙂

> **[Cayars - Setup walk through and some tips and tricks](https://forums.plex.tv/discussion/comment/927727/#Comment_927727)**
>
> This is going to be a bit technical and needs refinement which I'll get to.  I literally just whipped this up and thought I'd share before I finish automating it. The premise is to give "virtual library" support to Plex in a way we can do much...

You can use that technique to get the info you want. You’ll have to explore the field names you need. If you get stuck let me know and I’ll help you build it.

Carlo

---

<div class="post-metadata">

**Author:** ![jjrjr1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jjrjr1/32/10993_2.png) [@jjrjr1](https://forums.plex.tv/u/jjrjr1)\
**Post date:** [January 7, 2016, 12:14am UTC](https://forums.plex.tv/t/access-pms-database/130378/6 "2016-01-07T00:14:37Z")

</div>

Thanks!!

Help me understand how that would work using a PHP application. I wanna get the database info realtime in the PHP app so the website is always current and I do not need to run an external app to this thing.

John

---

<div class="post-metadata">

**Author:** ![cayars](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cayars/32/6296_2.png) [@cayars](https://forums.plex.tv/u/cayars)\
**Post date:** [January 7, 2016, 12:30am UTC](https://forums.plex.tv/t/access-pms-database/130378/7 "2016-01-07T00:30:24Z")

</div>

OK then you want to go about it a different way. Instead of accessing the database directly (which you still can READ ONLY) you can use the Plex API to get this info.

You can find info and some 3rd party programs such as PlexPy [https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program/p1](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program/p1) in that section.

You may want to explore the code used in some of these programs as Plex isn’t the best documented API.

---

<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:** [January 8, 2020, 7:54pm UTC](https://forums.plex.tv/t/access-pms-database/130378/8 "2020-01-08T19:54:10Z")

</div>

Closed on January 8, 2020, 7:54pm UTC


