Skip to main content

plex-api

Reference for the Plex Media Server REST API. Use when adding, debugging, or extending Plex API calls (library/section queries, sessions, playback, collections, server identity, response schemas).

跳到安装

来源信息

仓库
ahembree/librariarr
最近来源活动
2026年5月20日 21:23
检测到的 SKILL.md 语言
英语
星标
7
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
plex-api
description
Reference for the Plex Media Server REST API. Use when adding, debugging, or extending Plex API calls (library/section queries, sessions, playback, collections, server identity, response schemas).
# Plex API Plex does not publish a stable server-fetchable URL for its OpenAPI spec — the official developer site (https://developer.plex.tv/) only offers it via a browser-side `blob:` URL that changes on every page load and cannot be hit with `curl`. **Primary (recommended) source — `LukeHagar/plex-api-spec`:** https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-api-spec.yaml This is the community-maintained OpenAPI 3.1 spec that powers the Speakeasy-generated official Plex SDKs. Stable URL, kept in sync with PMS releases. **Official (volatile) alternative:** browse to https://developer.plex.tv/, click "Download" to save `openapi.json` locally, then query the local file. Use this if the LukeHagar mirror looks stale or you need to verify against the upstream source. Auth is the `X-Plex-Token: <token>` header (security scheme name `token` in the spec). Most identifying client headers (`X-Plex-Client-Identifier`, `X-Plex-Product`, etc.) are also expected on real calls — check `components.parameters` for the canonical list. **The spec is YAML, not JSON** — use `yq` (mikefarah, v4) directly, or pipe through `yq -o json` into `jq`: - List all paths: `curl -sL <url> | yq '.paths | keys'` - Inspect one endpoint: `curl -sL <url> | yq '.paths."/library/collections"'` - Look up a schema: `curl -sL <url> | yq '.components.schemas.Metadata'` - Find endpoints by tag: `curl -sL <url> | yq -o json | jq '[.paths | to_entries[] | select(.value | .. | .tags? // [] | index("Library")) | .key]'` - List tags / sections of the API: `curl -sL <url> | yq '.tags[].name'` - Check auth + identifying headers: `curl -sL <url> | yq '{security: .components.securitySchemes, headers: (.components.parameters // {} | to_entries | map(select(.value.in == "header")) | from_entries)}'`
在 GitHub 查看