INTERFACE
Directory
A Directory is a container of content – Streams, Videos, and Clips – on Twitch.
link GraphQL Schema definition
1 interface 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. 8 Int, : Int): String ( : 9 10 # Number of broadcasters currently broadcasting in this directory. 11 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. 18 Int, : Int): String ( : 19 20 # The type of directory – community or game. 21 DirectoryType : 22 23 # The name to display for the directory. 24 String! : 25 26 # Number of users that follow this directory. 27 Int : 28 29 # The directory's unique Twitch identifier. 30 ID! : 31 32 # The canonical name of the directory. 33 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. 38 Int, : Cursor, : [String!], : [String!]): StreamConnection ( : 39 40 # Number of viewers currently watching a stream which is in this directory. 41 Int : 42 43 }
link Required by
- DirectoryEdgeContains information about a Directory's relationship to a given page (connection), and the Directory itself.
- GameA Game is often the subject of a Stream on Twitch.
- QueryRoot fields to access the Twitch API.
- StreamA live stream.
- UserDirectoryConnectionThe connection between a user and the directories they have selected to broadcast in.