Server
Get Media Providers
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 Media Providers
Retrieves media providers and their features from the Plex server.
GET
/
media
/
providers
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->server->getMediaProviders(
xPlexToken: 'CV5xoxjTpFKUzBTShsaf'
);
if ($response->object !== null) {
// handle response
}
{
"MediaContainer": {
"size": 123,
"allowCameraUpload": true,
"allowChannelAccess": true,
"allowSharing": true,
"allowSync": true,
"allowTuners": true,
"backgroundProcessing": true,
"certificate": true,
"companionProxy": true,
"countryCode": "<string>",
"diagnostics": "<string>",
"eventStream": true,
"friendlyName": "<string>",
"livetv": 123,
"machineIdentifier": "<string>",
"musicAnalysis": 123,
"myPlex": true,
"myPlexMappingState": "<string>",
"myPlexSigninState": "<string>",
"myPlexSubscription": true,
"myPlexUsername": "<string>",
"offlineTranscode": 123,
"ownerFeatures": "<string>",
"platform": "<string>",
"platformVersion": "<string>",
"pluginHost": true,
"pushNotifications": true,
"readOnlyLibraries": true,
"streamingBrainABRVersion": 123,
"streamingBrainVersion": 123,
"sync": true,
"transcoderActiveVideoSessions": 123,
"transcoderAudio": true,
"transcoderLyrics": true,
"transcoderSubtitles": true,
"transcoderVideo": true,
"transcoderVideoBitrates": "<string>",
"transcoderVideoQualities": "<string>",
"transcoderVideoResolutions": "<string>",
"updatedAt": 123,
"updater": true,
"version": "<string>",
"voiceSearch": true,
"MediaProvider": [
{
"identifier": "<string>",
"title": "<string>",
"types": "<string>",
"protocols": "<string>",
"Feature": [
{
"key": "<string>",
"type": "<string>",
"flavor": "global",
"scrobbleKey": "/:/scrobble/new",
"unscrobbleKey": "/:/unscrobble/new",
"Directory": [
{
"hubKey": "<string>",
"title": "<string>",
"agent": "<string>",
"language": "<string>",
"refreshing": true,
"scanner": "<string>",
"uuid": "<string>",
"id": "<string>",
"key": "<string>",
"type": "<string>",
"subtype": "<string>",
"updatedAt": 123,
"scannedAt": 123,
"Pivot": [
{
"id": "<string>",
"key": "<string>",
"type": "<string>",
"title": "<string>",
"context": "<string>",
"symbol": "<string>"
}
]
}
],
"Action": [
{
"id": "addToContinueWatching",
"key": "/actions/addToContinueWatching"
}
]
}
]
}
]
}
}
Authorizations
Plex Authentication Token
Headers
Available options:
application/json
, application/xml
Example:
"application/json"
An authentication token, obtained from plex.tv
Example:
"CV5xoxjTpFKUzBTShsaf"
Response
200
application/json
Media providers and their features
Example:
"global"
Example:
"/:/scrobble/new"
Example:
"/:/unscrobble/new"
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->server->getMediaProviders(
xPlexToken: 'CV5xoxjTpFKUzBTShsaf'
);
if ($response->object !== null) {
// handle response
}
{
"MediaContainer": {
"size": 123,
"allowCameraUpload": true,
"allowChannelAccess": true,
"allowSharing": true,
"allowSync": true,
"allowTuners": true,
"backgroundProcessing": true,
"certificate": true,
"companionProxy": true,
"countryCode": "<string>",
"diagnostics": "<string>",
"eventStream": true,
"friendlyName": "<string>",
"livetv": 123,
"machineIdentifier": "<string>",
"musicAnalysis": 123,
"myPlex": true,
"myPlexMappingState": "<string>",
"myPlexSigninState": "<string>",
"myPlexSubscription": true,
"myPlexUsername": "<string>",
"offlineTranscode": 123,
"ownerFeatures": "<string>",
"platform": "<string>",
"platformVersion": "<string>",
"pluginHost": true,
"pushNotifications": true,
"readOnlyLibraries": true,
"streamingBrainABRVersion": 123,
"streamingBrainVersion": 123,
"sync": true,
"transcoderActiveVideoSessions": 123,
"transcoderAudio": true,
"transcoderLyrics": true,
"transcoderSubtitles": true,
"transcoderVideo": true,
"transcoderVideoBitrates": "<string>",
"transcoderVideoQualities": "<string>",
"transcoderVideoResolutions": "<string>",
"updatedAt": 123,
"updater": true,
"version": "<string>",
"voiceSearch": true,
"MediaProvider": [
{
"identifier": "<string>",
"title": "<string>",
"types": "<string>",
"protocols": "<string>",
"Feature": [
{
"key": "<string>",
"type": "<string>",
"flavor": "global",
"scrobbleKey": "/:/scrobble/new",
"unscrobbleKey": "/:/unscrobble/new",
"Directory": [
{
"hubKey": "<string>",
"title": "<string>",
"agent": "<string>",
"language": "<string>",
"refreshing": true,
"scanner": "<string>",
"uuid": "<string>",
"id": "<string>",
"key": "<string>",
"type": "<string>",
"subtype": "<string>",
"updatedAt": 123,
"scannedAt": 123,
"Pivot": [
{
"id": "<string>",
"key": "<string>",
"type": "<string>",
"title": "<string>",
"context": "<string>",
"symbol": "<string>"
}
]
}
],
"Action": [
{
"id": "addToContinueWatching",
"key": "/actions/addToContinueWatching"
}
]
}
]
}
]
}
}