games.getGameById


Description

Returns a game by its game id.


Code Examples

Request

GET
https://api.rivet.gg/cloud/games/{game_id}
curl -X GET 'https://api.rivet.gg/cloud/games/{game_id}'

Request Parameters

game_id

required path parameter

watch_index

optional query parameter

A query parameter denoting the requests watch index.


Response Body

game

required object

A full game.

available_regions

required array<object>

A list of region summaries.

available_regions[*]

object

A region summary.

provider

required string

The server provider of this region.

provider_display_name

required string

Represent a resource's readable display name.

region_display_name

required string

Represent a resource's readable display name.

region_id

required string

region_name_id

required string

A human readable short identifier used to references resources. Different than a rivet.common#Uuid because this is intended to be human readable. Different than rivet.common#DisplayName because this should not include special characters and be short.

banner_url

string

The URL of this game's banner image.

create_ts

required string

RFC3339 timestamp

developer_group_id

required string

display_name

required string

Represent a resource's readable display name.

game_id

required string

logo_url

string

The URL of this game's logo image.

name_id

required string

A human readable short identifier used to references resources. Different than a rivet.common#Uuid because this is intended to be human readable. Different than rivet.common#DisplayName because this should not include special characters and be short.

namespaces

required array<object>

A list of namespace summaries.

namespaces[*]

object

A namespace summary.

create_ts

required string

RFC3339 timestamp

display_name

required string

Represent a resource's readable display name.

name_id

required string

A human readable short identifier used to references resources. Different than a rivet.common#Uuid because this is intended to be human readable. Different than rivet.common#DisplayName because this should not include special characters and be short.

namespace_id

required string

version_id

required string

total_player_count

required integer

Unsigned 32 bit integer.

versions

required array<object>

A list of version summaries.

versions[*]

object

A version summary.

create_ts

required string

RFC3339 timestamp

display_name

required string

Represent a resource's readable display name.

version_id

required string

watch

required object

Provided by watchable endpoints used in blocking loops.

index

required string

Index indicating the version of the data responded. Pass this to WatchQuery to block and wait for the next response.