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

X-Plex-Token
string
header
required

Plex Authentication Token

Headers

Accept
enum<string>
Available options:
application/json,
application/xml
Example:

"application/json"

X-Plex-Token
string
required

An authentication token, obtained from plex.tv

Example:

"CV5xoxjTpFKUzBTShsaf"

Response

200
application/json
Media providers and their features
MediaContainer
object