Current Online Data
Parameters
| Parameter | Description | Example |
|---|---|---|
| date | Request date. Return the data of the specified date. If this parameter is not set, the current online count should be returned. | 2022-09-01 |
| serverid | Server range. Return the data of the specified servers. If there is no server split, this parameter is not required. Multiple servers should be separated by ,. | 1001,1002 |
| sign | Signature for data requests. Both parties may define the algorithm. It may be omitted when not required. | Example: MD5(date + serid + "key"); the key is provided separately, for example, 8-32 characters using uppercase and lowercase letters. |
Response
| Field | Description | Example |
|---|---|---|
| date | Online statistics time or current time | 2022-09-01 08:10:00 |
| serverid | Server ID | 1001 |
| online | Current online user count | Total online count under current conditions |
Result Description
For the current online count, return detailed records if detailed time-period records are available. If there are no detailed records, return data within 10 to 20 minutes of the current time.
Response Example
json
[
{"date":"2021-01-01 16:00:00","online":100,"serverid":20001},
{"date":"2021-01-01 16:00:00","online":101,"serverid":20002}
]