Plex Content API

The actual content of the media provider

GitHub OpenAPI
Business capability
Self-Hosted Media Servers & Library Automation AE-170.90

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /library/collections/{collectionId}/composite/{updatedAt} Get a collection's composite image · Get a collection's image #
Ask an LLM
“How do I get the cover image a smart collection builds from its items?”
“Can I fetch a collection's composite image for a specific update time?”
Tell an agent
Get the composite image for collection {collectionId}.
Fetch collection {collectionId}'s cover image updated at {updatedAt}.
GET /library/collections/{collectionId}/items List the items in a collection · Get items in a collection #
Ask an LLM
“Which items are in a particular smart collection?”
“Why does a collection with over 100 items need paging?”
Tell an agent
List the items in collection {collectionId}.
Show every item in smart collection {collectionId}.
GET /library/metadata/{ids} Get metadata for library items · Get a metadata item #
Ask an LLM
“How do I look up one or more library items by their IDs?”
“Can I check files or refresh analysis when fetching metadata?”
Tell an agent
Get metadata for items {ids}.
Fetch items {ids} with file check {checkFiles}.
GET /library/sections/{sectionId}/all List items in a library section · Get items in the section #
Ask an LLM
“How do I list every item in a library section?”
“Can I filter the items in a section with a media query?”
Tell an agent
List all items in section {sectionId}.
Show section {sectionId} items matching {mediaQuery}.
GET /library/sections/{sectionId}/allLeaves List leaves in a section · Set section leaves #
Ask an LLM
“How do I get every episode in a show section?”
“What are the leaf items of a section like a TV library?”
Tell an agent
List all leaves in section {sectionId}.
Show every episode in TV section {sectionId}.
GET /library/sections/{sectionId}/arts Get artwork for a library section · Set section artwork #
Ask an LLM
“How do I get the artwork of a library section?”
“Can I fetch section artwork by section ID?”
Tell an agent
Get the artwork for section {sectionId}.
Show section {sectionId}'s artwork.
GET /library/sections/{sectionId}/albums List albums in a music section · Set section albums #
Ask an LLM
“How do I list all albums in a music library section?”
“Can I see every album in a music section?”
Tell an agent
List the albums in music section {sectionId}.
Show every album in section {sectionId}.
GET /library/sections/{sectionId}/categories List categories in a library section · Set section categories #
Ask an LLM
“How do I see the categories a library section is split into?”
“Can I list the categories of a music or photo section?”
Tell an agent
List the categories in section {sectionId}.
Show section {sectionId}'s categories.
GET /library/sections/{sectionId}/cluster Get clusters in a library section · Set section clusters #
Ask an LLM
“How do I get the clusters of a photo library section?”
“Can I list clusters in a photo section?”
Tell an agent
Get the clusters in section {sectionId}.
Show photo clusters in section {sectionId}.
GET /library/sections/{sectionId}/computePath Find similar tracks between two songs · Similar tracks to transition from one to another #
Ask an LLM
“How do I find a path of similar tracks from one song to another?”
“Can I cap how far apart the tracks on the path can be?”
Tell an agent
Find similar tracks from {startID} to {endID} in section {sectionId}.
Get a {count}-track path from {startID} to {endID} in section {sectionId} with max distance {maxDistance}.
GET /library/sections/{sectionId}/location List folder locations of a section's media · Get all folder locations #
Ask an LLM
“Where are the media files of a library section stored?”
“Can I list every folder location a section's media comes from?”
Tell an agent
List the folder locations of section {sectionId}.
Show where section {sectionId} media is stored.
GET /library/sections/{sectionId}/nearest Find tracks similar to an analysis · The nearest audio tracks #
Ask an LLM
“How do I find tracks that sound most like a given music analysis?”
“Can I limit how far out from the analysis I search?”
Tell an agent
Find tracks similar to analysis {values} in section {sectionId}.
Get {limit} tracks within distance {maxDistance} of {values} in section {sectionId}.
GET /library/sections/{sectionId}/moment Get moments in a library section · Set section moments #
Ask an LLM
“How do I get the moments of a photo library section?”
“Can I list the moments in a photo section?”
Tell an agent
Get the moments in section {sectionId}.
Show photo moments in section {sectionId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/plex:plex-content-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

plex-content-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Plex Media Server Content API
  version: '1.2.2

    '
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  description: '# API Info

    ## Content Types

    The API supports responses in both XML and JSON, and clients can request one or the other using the standard `Accept` HTTP header.'
servers:
- url: https://{IP-description}.{identifier}.plex.direct:{port}
  variables:
    IP-description:
      default: 1-2-3-4
      description: A `-` separated string of the IPv4 or IPv6 address components
    identifier:
      default: 0123456789abcdef0123456789abcdef
      description: The unique identifier of this particular PMS
    port:
      default: '32400'
security:
- user_token:
  - shared user
  - admin
tags:


# --- truncated at 32 KB (74 KB total) ---
# Full source: https://artifacts.apis.io/plex/openapi/plex-content-api-openapi.yml