INTERFACE

Directory

A Directory is a container of content – Streams, Videos, and Clips – on Twitch.

link GraphQL Schema definition

1interface Directory {
2
3# URL to an avatar image.
4# The image dimensions are specifiable via the `height` and `width` parameters.
5#
6# If `height` or `width` are not specified, the URL will contain
7# the template strings `{height}` and/or `{width}` in their respective places.
8avatarURL(width: Int, height: Int): String
9
10# Number of broadcasters currently broadcasting in this directory.
11broadcastersCount: Int
12
13# URL to a cover 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.
18coverURL(width: Int, height: Int): String
19
20# The type of directory – community or game.
21directoryType: DirectoryType
22
23# The name to display for the directory.
24displayName: String!
25
26# Number of users that follow this directory.
27followersCount: Int
28
29# The directory's unique Twitch identifier.
30id: ID!
31
32# The canonical name of the directory.
33name: String!
34
35# Get a page of live streams broadcasting in this directory.
36# If no language filters are provided all languages will be returned.
37# Tags are an array of tag ID as optional filters for streams.
38streams(first: Int, after: Cursor, languages: [String!], tags: [String!]): StreamConnection
39
40# Number of viewers currently watching a stream which is in this directory.
41viewersCount: Int
42
43}