mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
Statistics
(Statistics)
Overview
API Calls that perform operations with Plex Media Server Statistics
Available Operations
- GetStatistics - Get Media Statistics
GetStatistics
This will return the media statistics for the server
Example Usage
using PlexAPI;
using PlexAPI.Models.Components;
using PlexAPI.Models.Requests;
var sdk = new PlexAPISDK(AccessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Statistics.GetStatisticsAsync(timespan: 411769);
// handle response
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Timespan |
long | ➖ | The timespan to retrieve statistics for the exact meaning of this parameter is not known |