Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

GQL

Twitch is now exposing a GraphQL API.

It is reachable at https://api.twitch.tv/gql or at https://gql.twitch.tv/gql. The two endpoints do not seem to show differences.

Note that it does /not/ provide an introspection endpoint through GET, but you can still query the __schema.

The only required header is Client-ID. For authenticated requests, use Authorization: OAuth <oauth_token>.

A base dump of the schema is available in schema.json, generated using the official IntrospectionQuery.

Interesting tidbits

Select the base types for query and mutation:

.data.__schema.types[] | select(.name == "Query")
.data.__schema.types[] | select(.name == "Mutation")

About

No description, website, or topics provided.

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors