OBJECT

Game

A Game is often the subject of a Stream on Twitch.

link GraphQL Schema definition

1type Game implements Directory {
2
3# What campaigns are active for this game.
4activeDropCampaigns: [DropCampaign!] @deprecated( reason: "Functionality not supported in Drops 2.0" )
5
6# URL to an avatar image.
7# The image dimensions are specifiable via the `height` and `width` parameters.
8#
9# If `height` or `width` are not specified, the URL will contain
10# the template strings `{height}` and/or `{width}` in their respective places.
11avatarURL(width: Int, height: Int): String
12
13# URL to a box art image.
14# The image dimensions are specifiable via the `height` and `width` parameters.
15#
16# If `height` or `width` are not specified, the URL will contain
17# the template strings `{height}` and/or `{width}` in their respective places.
18boxArtURL(width: Int, height: Int): String
19
20# Number of broadcasters streaming this game.
21broadcastersCount: Int
22
23# Number of channels currently streaming this game.
24channelsCount: Int @deprecated( reason: "Use broadcastersCount instead." )
25
26# A paginated list of clips featuring this game, ordered by view count descending.
27# When criteria is not specified, the default values are used.
28clips(first: Int, after: Cursor, criteria: GameClipsInput): ClipConnection
29
30# URL to a cover image.
31# The image dimensions are specifiable via the `height` and `width` parameters.
32#
33# If `height` or `width` are not specified, the URL will contain
34# the template strings `{height}` and/or `{width}` in their respective places.
35coverURL(width: Int, height: Int): String
36
37# The game's description.
38description: String
39
40# The game's developers.
41developers: [String!]
42
43# The type of directory – in this case, always GAME.
44directoryType: DirectoryType
45
46# The translated game name used for display purposes.
47# Use name for tracking props or URLs.
48displayName: String!
49
50# The associated clientID for a game used to determine if users have an account
51# link
52# created between tuid and in-game userID as well as the timestamp of when this
53# link was created.
54dropAccountLink: DropAccountLink
55
56# A list of clients that use the Enhanced Experiences (E2) API for
57# Twitch integrations with this game.
58enhancedExperiencesClients(organizationID: ID!): [EnhancedExperiencesClient!]
59
60# The game's ESRB rating.
61esrbRating: ESRBRating!
62
63# The game's ESRB descriptions.
64esrbDescriptions: [String!]
65
66# A list of extension recommendations, according to the game.
67extensionRecommendations: [ExtensionRecommendation!]
68
69# Number of users that follow this game.
70followersCount: Int
71
72# The franchises the game belongs to.
73franchises: [String!]
74
75# The game's unique GiantBomb identifier.
76giantBombID: ID @deprecated( reason: "No longer supported" )
77
78# The game's unique Twitch identifier.
79# It is used to associate games with product offers.
80id: ID!
81
82# URL to a game logo image.
83# The image dimensions are specifiable via the `height` and `width` parameters.
84#
85# If `height` or `width` are not specified, the URL will contain
86# the template strings `{height}` and/or `{width}` in their respective places.
87logoURL(width: Int, height: Int): String
88
89# The name of the game. This string is untranslated.
90# This field should only be used in limited occassions, like tracking and URLs.
91# You should use displayName for all all game names shown to the users.
92name: String!
93
94# The original release date of the game. Date string is formatted as
95# yyyy-mm-ddThh:mm:ssZ.
96originalReleaseDate: String
97
98# The platforms the game is on.
99platforms: [String!]
100
101# A measure of the games popularity.
102popularityScore: Int
103
104# The game's unique Presto identifier.
105prestoID: ID
106
107# The game's publishers.
108publishers: [String!]
109
110# The authenticated user's relationship with this Game.
111self: GameSelfConnection
112
113# Get a page of live streams broadcasting this game.
114# The languages param can be used to filter the streams. Otherwise all languages
115# will be returned.
116# The filters param contains additional metadata filters, for example
117# {hearthstoneGameMode: "arena"}.
118# The sort param can be used to change the default sorting, which sometimes is
119# specific to specific games.
120# The tags param are an array of tag ID as optional filters for streams.
121# DEPRECATED field arguments: languages, requestID, sort, tags
122# Use GameStreamOptions instead.
123streams(
124first: Int,
125after: Cursor,
126options: GameStreamOptions,
127languages: [String!],
128filters: StreamMetadataFilterInput,
129sort: StreamSort,
130requestID: ID,
131tags: [String!]
132): StreamConnection
133
134# List of recommeded tags in the corresponding category.
135tags(limit: Int, tagType: TagType!): [Tag!]
136
137# A paginated list of top videos for this game.
138videos(
139first: Int,
140after: Cursor,
141languages: [String!],
142types: [BroadcastType!],
143sort: VideoSort
144): VideoConnection
145
146# Number of viewers currently watching a stream which features this game.
147viewersCount: Int
148
149}

link Required by