This will return the bandwidth statistics for the server
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"Device": [
{
"id": 208,
"name": "Roku Express",
"platform": "Roku",
"clientIdentifier": "793095d235660625108ef785cc7646e9",
"createdAt": 1706470556
}
],
"Account": [
{
"id": 238960586,
"key": "/accounts/238960586",
"name": "Diane",
"defaultAudioLanguage": "en",
"autoSelectAudio": true,
"defaultSubtitleLanguage": "en",
"subtitleMode": 1,
"thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"
}
],
"StatisticsBandwidth": [
{
"accountID": 238960586,
"deviceID": 208,
"timespan": 6,
"at": 1718387650,
"lan": true,
"bytes": 22
}
]
}
}
Plex Authentication Token
The timespan to retrieve statistics for the exact meaning of this parameter is not known
Bandwidth Statistics
The response is of type object
.
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"Device": [
{
"id": 208,
"name": "Roku Express",
"platform": "Roku",
"clientIdentifier": "793095d235660625108ef785cc7646e9",
"createdAt": 1706470556
}
],
"Account": [
{
"id": 238960586,
"key": "/accounts/238960586",
"name": "Diane",
"defaultAudioLanguage": "en",
"autoSelectAudio": true,
"defaultSubtitleLanguage": "en",
"subtitleMode": 1,
"thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"
}
],
"StatisticsBandwidth": [
{
"accountID": 238960586,
"deviceID": 208,
"timespan": 6,
"at": 1718387650,
"lan": true,
"bytes": 22
}
]
}
}
This will return the bandwidth statistics for the server
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"Device": [
{
"id": 208,
"name": "Roku Express",
"platform": "Roku",
"clientIdentifier": "793095d235660625108ef785cc7646e9",
"createdAt": 1706470556
}
],
"Account": [
{
"id": 238960586,
"key": "/accounts/238960586",
"name": "Diane",
"defaultAudioLanguage": "en",
"autoSelectAudio": true,
"defaultSubtitleLanguage": "en",
"subtitleMode": 1,
"thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"
}
],
"StatisticsBandwidth": [
{
"accountID": 238960586,
"deviceID": 208,
"timespan": 6,
"at": 1718387650,
"lan": true,
"bytes": 22
}
]
}
}
Plex Authentication Token
The timespan to retrieve statistics for the exact meaning of this parameter is not known
Bandwidth Statistics
The response is of type object
.
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
// handle response
{
"MediaContainer": {
"size": 5497,
"Device": [
{
"id": 208,
"name": "Roku Express",
"platform": "Roku",
"clientIdentifier": "793095d235660625108ef785cc7646e9",
"createdAt": 1706470556
}
],
"Account": [
{
"id": 238960586,
"key": "/accounts/238960586",
"name": "Diane",
"defaultAudioLanguage": "en",
"autoSelectAudio": true,
"defaultSubtitleLanguage": "en",
"subtitleMode": 1,
"thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"
}
],
"StatisticsBandwidth": [
{
"accountID": 238960586,
"deviceID": 208,
"timespan": 6,
"at": 1718387650,
"lan": true,
"bytes": 22
}
]
}
}