Get server player history
Retrieve historical player count data for a specific server with configurable aggregation.
Authorization
BearerAuth AuthorizationBearer <token>
JWT access token obtained via logging in with an identity provider.
In: header
Header Parameters
Connect-Protocol-Version*number
Define the version of the Connect protocol
Value in
1Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
ipAddress?string
Server IP address.
port?integer
Server port number.
Default
"7777"Format
int32Range
1 <= value <= 65535period?string
Time period for the data.
Value in
"DAY" | "WEEK" | "MONTH"type?string
Aggregation method for the data.
Value in
"PEAK" | "AVERAGE" | "MINIMUM"[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://server-api.sagl.app/serversapi.v1.TimeseriesService/GetServerPlayers" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"datapoints": [
{
"timestamp": "string",
"value": 0
}
]
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}