plex-api-spec
plex-api-spec copied to clipboard
additional information for the plex api
Hi,
I am currently working on a project that makes use of the plex apis and am currently generating a http client from this library, and just wanted to pop in and give some additional information based on some data I have found myself.
So just off the top of my head for what I am currently doing, I can think of 2 additions that change or add to the data you currently have.
-
One being
includeElements
set toStream
for the endpoint/library/metadata/<ratingKey>/children
which adds theMedia
section to the data, which is not currently present in your response. -
Another new endpoint you don't have yet is
/statistics/resources
which allows returning resources like cpu/ram stats. What I have for this one is: https://github.com/petio-team/petio/blob/dev/server/src/services/plex/serverInfo.ts -
Same as number 2, though using bandwidth endpoint:
/statistics/bandwidth
which returns bandwidth data. What I have for this one is: https://github.com/petio-team/petio/blob/dev/server/src/services/plex/bandwidth.ts
Let me know if you want me to create a PR for this or not, hope this helps a bit. I can continue to make issues and prs about other endpoints I found, if this is acceptable.