GET games

Retrieve a paged listing of currently active multiplayer games.

Example

GET /api/v1/games HTTP/1.1
Accept: application/json
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "items": [{
    "id": "a2c4f9bd-b698-4b21-839d-81e75e514d0c",
    "instanceId": "a2c4f9bd-b698-4b21-839d-81e75e514d0c",
    "playId": "TerminalScene01",
    "name": "Terminal",
    "maxPlayers": 16,
    "currentPlayers": 4,
    "created": 1537907432
  },{
    "id": "1e544c18-f56f-491b-a1b1-a0b02528fb10",
    "instanceId": "1e544c18-f56f-491b-a1b1-a0b02528fb10",
    "playId": "bfba9f87-c805-4f13-8e60-77d2473e4867",
    "name": "Death Race 2000",
    "maxPlayers": 8,
    "currentPlayers": 1,
    "created": 1537933208
  }],
  "page": 0,
  "pageSize": 48,
  "total": 2
}

Security

Authentication is not required for this method.

URL Parameters

NONE

Query Parameters

NameDescriptionValue
playIdfilter results with this playId, by exact match optionalstring
fullfilter results based on capacity; false is the only supported value, which will return only servers which are not currently full optional
one of:
  • false
sortthe sort method to apply to results optional
one of:
  • name-asc
  • name-desc
  • created-asc
  • created-desc
  • max-players-asc
  • max-players-desc
  • current-players-asc
  • current-players-desc
  • open-seats-asc
  • open-seats-desc
pagethe 0-indexed page to return; by default, page 0 optionalnumber
sizethe number of items to return per page; may not be less than 10 or greater than 200; by default, 48 optionalnumber

Request Body

NONE

Response

Successful responses are code 200 with data in the response body. Error responses are standard.

Response Body

The response body is wrapped in a Paged data structure (described at this link). Items are of type Game (described below).

Game

NameDescriptionValue
idthe ID of the game instance, as a UUID with dashesNOTE: this field is deprecated and will be removed. Use instanceId instead.string
instanceIdthe ID of the game instance, as a UUID with dashesstring
playIdthe ID of the game being played on this instance; it may be a UUID of an entity (by reivision), or it may be another identifier known by the game client.string
namethe name given to the gamestring
maxPlayersthe maximum number of players allowed to join the gamenumber
currentPlayersthe number of players current connected to the gamenumber
createdthe time the game was created, as a Unix timestampnumber