List media
list_mediaBrowse and filter Plex library items by type, genre, year, rating, and watch status, returning view counts and last-viewed data with pagination.
Instructions
List items from any library with rich filtering. Returns watched state, view counts and last-viewed on every record. watched defaults to 'all': the full library, seen and unseen. For SHOW libraries: the watched filter means any-episode-played (watched) / has-unplayed-episodes (unwatched), while each record's watched field means fully watched. A partially-watched show matches both filters' opposites. kind defaults to the library's natural top-level type (movie/show/artist). Use episode/track/album/season for deeper types, or collection to list a section's collections. rated filters on the owner's star rating (userRating, 1-10 internal scale). Movie records carry userRating, and sort=userRating asc puts unrated first. Filters combine (AND). Paginate with offset/limit. detail=true caps limit at 25 and adds fields such as directors, actors, collections and summaries. kind=collection lists a section's collections only. Other filters/sort are ignored for collections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| sort | No | addedAt | |
| user | No | see the library as this Plex Home user (name or id) | |
| year | No | ||
| genre | No | ||
| limit | No | ||
| order | No | desc | |
| rated | No | all | |
| decade | No | e.g. '1970s' | |
| detail | No | ||
| fields | No | project each record to these keys (ratingKey always kept). Use to keep large listings small | |
| offset | No | ||
| studio | No | ||
| country | No | ||
| library | No | Movies | |
| watched | No | all | |
| addedSince | No | ISO date or relative like '-30d' | |
| collection | No | filter to members of a collection | |
| contentRating | No | e.g. 'PG-13' | |
| maxDurationMin | No | ||
| lastViewedAfter | No | last viewed after this ISO date or relative like '-30d' | |
| lastViewedBefore | No | last viewed before this ISO date or relative like '-3y'. Never-watched items match too unless watched='watched' |