GET

{protocol}://{ip}:{port}

/
library
/
recentlyAdded

Authorizations

X-Plex-Token
string
headerrequired

Plex Authentication Token

Query Parameters

contentDirectoryID
integer
pinnedContentDirectoryID
integer[]
sectionID
integer

The library section ID for filtering content.

type
enum<integer>
required

The type of media to retrieve. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries

Available options:
1,
2,
3,
4
includeMeta
enum<integer>
default: 0

Adds the Meta object to the response

Available options:
0,
1
X-Plex-Container-Start
integer
default: 0

The index of the first item to return. If not specified, the first item will be returned. If the number of items exceeds the limit, the response will be paginated. By default this is 0

X-Plex-Container-Size
integer
default: 50

The number of items to return. If not specified, all items will be returned. If the number of items exceeds the limit, the response will be paginated. By default this is 50

Response

200 - application/json
MediaContainer
object

The Meta object is only included in the response if the includeMeta parameter is set to 1.