This package contains a bunch of functions to interact with the New twitch.tv API ("helix") that I wrote for my PhD research. It is currently limited to endpoints useful for data gathering purposes (i.e. collection of current top streams, retrieving game and user info, collecting followers of a given account etc.), as this is what I'm using for my own research.
All functions require authentification via a valid twitch client id, such as an app access token (you can learn how to obtain one here). This limits the number of requests to 30 per minute, which is enough to look up stream, game and user_info but struggles with pulling followers which can reach tens of millions.
Fetches the current top stream by viewers. API reference
Fetches game info from twitch (if you already have game-ids, i.e. es returned by the get_streams function). API reference
Fetches user info for given userids (as returned by the get_streams function). API reference
Fetches a given user's followers. API reference
Fetches all tags used by twitch.tv. API reference
Fetches the tags of a given stream (as identified by user-id of a user currently broadcasting). API reference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.