Server
Get MyPlex Account
Server
Media
Butler
Plex
Library
- GETGet Hash Value
- GETGet Recently Added
- GETGet All Libraries
- GETGet library details
- DELDelete library section
- GETGet library items
- GETGet all media of library
- GETRefresh Metadata Of The Library
- GETSearch library
- GETGet Genres of library media
- GETGet Countries of library media
- GETGet Actors of library media
- GETSearch All Libraries
- GETGet Media Metadata
- GETGet Items Children
- GETGet Top Watched Content
- GETGet On Deck
Watchlist
Playlists
Authentication
Sessions
Server
Get MyPlex Account
Returns MyPlex Account Information
GET
/
myplex
/
account
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Server.GetMyPlexAccountAsync();
// handle response
{
"MyPlex": {
"authToken": "Z5v-PrNASDFpsaCi3CPK7",
"username": "example.email@mail.com",
"mappingState": "mapped",
"mappingError": "<string>",
"signInState": "ok",
"publicAddress": "140.20.68.140",
"publicPort": 32400,
"privateAddress": "10.10.10.47",
"privatePort": 32400,
"subscriptionFeatures": "federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks",
"subscriptionActive": true,
"subscriptionState": "Active"
}
}
Authorizations
Plex Authentication Token
Response
200
application/json
MyPlex Account
Example:
"Z5v-PrNASDFpsaCi3CPK7"
Example:
"example.email@mail.com"
Example:
"mapped"
Example:
"ok"
Example:
"140.20.68.140"
Example:
32400
Example:
"10.10.10.47"
Example:
32400
Example:
"federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks"
Example:
"Active"
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Server.GetMyPlexAccountAsync();
// handle response
{
"MyPlex": {
"authToken": "Z5v-PrNASDFpsaCi3CPK7",
"username": "example.email@mail.com",
"mappingState": "mapped",
"mappingError": "<string>",
"signInState": "ok",
"publicAddress": "140.20.68.140",
"publicPort": 32400,
"privateAddress": "10.10.10.47",
"privatePort": 32400,
"subscriptionFeatures": "federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks",
"subscriptionActive": true,
"subscriptionState": "Active"
}
}