Plex Media Server Control Plex Media Server using the Plex API. Setup Set environment variables: - : Your Plex server URL (e.g., ) - : Your Plex auth token (find it at plex.tv/claim or in Plex app XML) Common Commands Get Server Info Browse Libraries List Library Contents Search Get Recently Added Get On Deck (Continue Watching) Get Active Sessions (What's Playing Now) List Available Clients/Players Library Section Types - Movies (usually section 1) - TV Shows (usually section 2) - Music - Photos Notes - Add for JSON output (default is XML) - Library section keys (1, 2, 3...) vary by server s…