Plex API endpoints for add track to playlist and for remove track from playlist

I writing a personal use tool to keep my iTunes and Plex playlists in sync using the Plex API.

I’ve been through the various lists of Plex API endpoints that are mentioned in the forums but I can’t find any that list the endpoints for:

  • add track to playlist
  • remove track to playlist

Could someone please point me in the right direction?

A Swagger page would be perfect but even just a complete list of endpoints, as the lists I’ve found so far all seem to be incomplete.

(Also I couldn’t tag this “API”…)

Use the Chrome Luke :wink:

Browse towards your server using Chrome Browser, and switch it into debug mode (Press F12).
Then on the network tab, you can see the requests taking place, when you create a playlist

Like a post looking like:

https://IP_OF_MY_PMS:32400/playlists?uri=server%3A%2F%2Ffac6d1f34ZZZ2d06XXX026a2ffbbYYYc25cabde9%2Fcom.plexapp.plugins.library%2Flibrary%2Fmetadata%2F1109%2C1200&includeExternalMedia=1&title=Come%20Together%20and%20Let%20It%20Be&smart=0&type=audio&X-Plex-Product=Plex%20Web&X-Plex-Version=4.12.3&X-Plex-Client-Identifier=3oqnywstl4gyupfnsd8vrh98&X-Plex-Platform=Chrome&X-Plex-Platform-Version=80.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media%2Cindirect-media&X-Plex-Model=bundled&X-Plex-Device=Linux&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=1920x949%2C1920x1080&X-Plex-Token=MY_TOKEN&X-Plex-Language=en&X-Plex-Text-Format=plain&X-Plex-Provider-Version=1.3

In above, I added Come Together with a key of 1109 and Let It Be with a key of 1200 to a brand new playlist named Come Together and Let It Be for the server with the Id of fac6d1f34ZZZ2d06XXX026a2ffbbYYYc25cabde9

1 Like

And adding to self…

To find your server ID, browse towards: http://<IP_OF_PMS>:32400/identity

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.