Plex Media Server contains a large number of API commands that can be sent as requests to the Plex server. These commands can allow a Plex owner to gather information about their Plex server, download the Plex database or logs, and even manage the updates of the Plex server software.
Using the API commands
The API commands can be run from any Web browser, or from tools that can make GET HTTP requests, such as Postman. Most requests sent to Plex will return an XML string value that can then be parsed to obtain the information needed from the request.
All requests do require a Plex token to be submitted. The owner of the Plex server can easily obtain the Plex token from the server, and then add it to any API request for authentication.
This API is organized into various categories to help sort the API requests that can be sent to a Plex server. I have tried to provide as much documentation about each request as I could, however, there is sometimes limited information about the return data from an API request.
In addition, I will continue to add more API commands to this site as I am able to find and report the commands.
The current API commands can be found in the following sections:
- The API commands in this section provide information about the Plex server, available libraries, accounts, authorised devices, and other high-level information for reporting and debugging Plex server.
- The API commands in this section provide information about the various libraries within a Plex server. These commands can be used to get the location of specific media that can then be used to get more detailed information.
- The API commands in this section provide information about the playlists created on a Plex server.