GET
/
playlists
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
using LukeHagar.PlexAPI.SDK.Models.Requests;

var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");

var res = await sdk.Playlists.GetPlaylistsAsync(
    playlistType: PlaylistType.Audio,
    smart: QueryParamSmart.Zero
);

// handle response
{
  "MediaContainer": {
    "size": 4,
    "Metadata": [
      {
        "ratingKey": "92",
        "key": "/playlists/92/items",
        "guid": "com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903",
        "type": "playlist",
        "title": "Static Playlist",
        "summary": "A Great Playlist",
        "smart": false,
        "playlistType": "video",
        "composite": "/playlists/92/composite/1705716440",
        "icon": "playlist://image.smart",
        "viewCount": 1,
        "lastViewedAt": 1705716298,
        "duration": 7328000,
        "leafCount": 32,
        "addedAt": 1705716298,
        "updatedAt": 1705716440
      }
    ]
  }
}

Authorizations

X-Plex-Token
string
header
required

Plex Authentication Token

Query Parameters

playlistType
enum<string>

limit to a type of playlist.

Available options:
audio,
video,
photo
smart
enum<integer>

type of playlists to return (default is all).

Available options:
0,
1

Response

200
application/json
returns all playlists
MediaContainer
object