> ## Documentation Index
> Fetch the complete documentation index at: https://doc.va777.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Get online player count

> Get online player count: request parameters, response format and response codes.

> [!NOTE]
>
> * Queries the number of members currently playing.

## Path

```text theme={null}
GET {host}/vendor/v2.0/member/gamingCount
```

## Headers

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="56%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`Authorization`</td><td>string</td><td>Yes</td><td>Token we provide</td></tr>
  </tbody>
</table>

## Request parameters

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="11%" />

    <col width="45%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Signed</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`channelID`</td><td>number</td><td>Yes</td><td>✓</td><td>Channel ID (use 1 if you have no channels)</td></tr>
    <tr><td>`account`</td><td>string</td><td>Yes</td><td>✓</td><td>Member account (leave empty to query all members)</td></tr>
    <tr><td>`sign`</td><td>string</td><td>Yes</td><td /><td>Signature. See [Signature](https://doc.va777.net/en/v2/guides/signature.md) for how to generate it</td></tr>
  </tbody>
</table>

## Response

Success (the HTTP status code is always 200; check `status.code` for the result)

<table>
  <colgroup>
    <col width="34%" />

    <col width="12%" />

    <col width="54%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`data`</td><td>object</td><td /></tr>
    <tr><td>`data.gameCount`</td><td>number</td><td>Number of games in play</td></tr>
    <tr><td>`data.memberCount`</td><td>number</td><td>Number of members online</td></tr>
    <tr><td>`data.list`</td><td>object\[]</td><td>List of members' games in play</td></tr>
    <tr><td>`data.list[].account`</td><td>string</td><td>Member account</td></tr>
    <tr><td>`data.list[].token`</td><td>string</td><td>Game token</td></tr>
    <tr><td>`data.list[].gameID`</td><td>number</td><td>Game ID</td></tr>
    <tr><td>`status`</td><td>object</td><td>Response status. See [Response format](https://doc.va777.net/en/v2/guides/request-format.md#response-format)</td></tr>
  </tbody>
</table>

### Response example

```json theme={null}
{
  "data": {
    "list": [
      {
        "account": "aaa123",
        "token": "0feb26b6683147c8900ca17c43ecd5fb",
        "gameID": 63
      }
    ],
    "gameCount": 1,
    "memberCount": 1
  },
  "status": {
    "code": "0",
    "message": "success",
    "datetime": "2022-10-14T17:37:59.184+08:00",
    "traceCode": "2888018b99504bc5945e15f51b7e3e0c"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.