Plex Status API

The status endpoints give you information about current playbacks, play history, and even terminating sessions.

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

Operations 6

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 /status/sessions List current playbacks on the server · List Sessions #
Ask an LLM
“Which media is currently playing on my Plex server?”
“Can I see every active playback session right now?”
Tell an agent
List all current playbacks on this server.
Show every active playback session.
GET /status/sessions/background List background tasks · Get background tasks #
Ask an LLM
“What background tasks are running on the server?”
“Can I see the server's background activity?”
Tell an agent
Get the list of all background tasks.
Show what background tasks are in progress.
GET /status/sessions/history/all List playback history · List Playback History #
Ask an LLM
“Who has watched what on my server recently?”
“Can I filter playback history by library section or time period?”
Tell an agent
List playback history for account {accountID}.
Show playback history for library section {librarySectionID} since {viewedAt}.
GET /status/sessions/history/{historyId} Get one playback history item · Get Single History Item #
Ask an LLM
“Can I look up a single playback history entry by its id?”
“What does one history item record show?”
Tell an agent
Get playback history item {historyId}.
Show the history record {historyId}.
DELETE /status/sessions/history/{historyId} Delete a playback history item · Delete Single History Item #
Ask an LLM
“Can I remove a single playback history entry?”
“Is it possible to delete one history item without touching the rest?”
Tell an agent destructive · confirm first
Delete playback history item {historyId}.
Remove the history record {historyId}.
POST /status/sessions/terminate Terminate a playback session · Terminate a session #
Ask an LLM
“How do I kick a user off a playback session?”
“Can I end one active playback session and tell the user why?”
Tell an agent destructive · confirm first
Terminate playback session {sessionId}.
End session {sessionId} with reason {reason}.

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-status-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-status-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Plex Media Server Status 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 (50 KB total) ---
# Full source: https://artifacts.apis.io/plex/openapi/plex-status-api-openapi.yml