Plex icon

Plex

Interact with Plex Media Server API

Library → Get Recently Added

AI-generated

Summary

Retrieve recently added media items from a specified Plex library section, optionally limiting the number of results.

Inputs

  • Library Key (required) — The key/ID of the Plex library section from which to get recently added items.
  • Return All — Whether to return all recently added results or only up to a specified limit.
  • Limit — The maximum number of recently added items to return if not returning all. Must be between 1 and 500.

Output shape

a list of media item metadata objects representing recently added items in the specified library section

If 'Return All' is true, all recently added items are returned (pagination handled internally). Otherwise, only up to the limit specified are returned. The response data is extracted from the MediaContainer's Metadata array.

Examples

Example 1: Get 10 recently added items from library section with key '2'

Library Key=2, Return All=false, Limit=10

Discussion