# Plex 9 DB Schema

**URL:** https://forums.plex.tv/t/plex-9-db-schema/5049
**Category:** Dev/API Corner
**Tags:** other-dev
**Created:** [September 7, 2010, 1:56pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049 "2010-09-07T13:56:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![vdubeau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vdubeau/32/619_2.png) [@vdubeau](https://forums.plex.tv/u/vdubeau)
#### Post date: [September 7, 2010, 1:56pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/1 "2010-09-07T13:56:59Z")

</div>

Any chance of finding the DB schema somewhere?

---

<div class="post-metadata">

### Author: ![mkh](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mkh](https://forums.plex.tv/u/mkh)
#### Post date: [September 7, 2010, 2:28pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/2 "2010-09-07T14:28:24Z")

</div>

You can find the media databases here  
  
  
  
~/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases

---

<div class="post-metadata">

### Author: ![sansnipple](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sansnipple](https://forums.plex.tv/u/sansnipple)
#### Post date: [September 7, 2010, 7:02pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/3 "2010-09-07T19:02:53Z")

</div>

however, it is now an pretty bad idea to directly mess with the sqlite database. there are several new abstraction layers on top of the db, and trying to interact with the raw sqlite is just asking for trouble. you should interact with the library through either the plex media server http/xml api, or the plex media scanner command line interface. the new smart library backend is extremely complex and no longer just a simple dumb db, dont mess with the sql.

---

<div class="post-metadata">

### Author: ![mkh](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mkh](https://forums.plex.tv/u/mkh)
#### Post date: [September 7, 2010, 9:50pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/4 "2010-09-07T21:50:15Z")

</div>

Then some doc on the API would be nice 😃

---

<div class="post-metadata">

### Author: ![mkh](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mkh](https://forums.plex.tv/u/mkh)
#### Post date: [September 9, 2010, 10:04am UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/5 "2010-09-09T10:04:32Z")

</div>

I like the fact that dev people keep saying dont do this and dont do that  
  
  
  
well, then bring us some infomation on the API’s…  
  
  
  
jeezz

---

<div class="post-metadata">

### Author: ![atrus](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/atrus/32/31_2.png) [@atrus](https://forums.plex.tv/u/atrus)
#### Post date: [September 9, 2010, 11:32am UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/6 "2010-09-09T11:32:14Z")

</div>

> [@](#):
>
> I like the fact that dev people keep saying dont do this and dont do that  
>   
> well, then bring us some infomation on the API's...  
>   
> jeezz

  
Chill man. Either the devs fix the major bugs or they create the documentation, at the moment the choice is pretty clear at least for me.

---

<div class="post-metadata">

### Author: ![TMwNN](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@TMwNN](https://forums.plex.tv/u/TMwNN)
#### Post date: [October 3, 2010, 5:00am UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/7 "2010-10-03T05:00:08Z")

</div>

I’d like to see a little stand-alone python code on how to retrieve meta-information from the database.  
  
  
  
I want to make some utilities to do things; like show movies that weren’t scraped for some reason, etc.

---

<div class="post-metadata">

### Author: ![hrcolb0](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hrcolb0/32/380_2.png) [@hrcolb0](https://forums.plex.tv/u/hrcolb0)
#### Post date: [October 12, 2010, 11:00pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/8 "2010-10-12T23:00:04Z")

</div>

> [@](#):
>
> I'd like to see a little stand-alone python code on how to retrieve meta-information from the database.  
>   
> I want to make some utilities to do things; like show movies that weren't scraped for some reason, etc.

  
  
are you talking about movies that haven't been scanned? Would those movies even be in the database? Or are you talking about movies that do show up in Plex media manager but that don't find a match with freebase so that no metadata information is filled in?

---

<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:44pm UTC](https://forums.plex.tv/t/plex-9-db-schema/5049/9 "2019-12-20T20:44:32Z")

</div>

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