Games

class twitch.api.games.Games

This class provides methods for easy access to Twitch Games API.

classmethod get_top(limit, offset)

Gets a list of games sorted by number of current viewers.

Parameters:
  • limit (int) – Maximum number of objects to return. Default 25. Maximum 100.
  • offset (int) – Object offset for pagination of result. Default 0.
>>> from twitch import TwitchClient
>>> client = TwitchClient('<my client id>')
>>> games = client.games.get_top()