Generating a List of Followed, Online Streams

This is how I do it, although there may be a simpler way…

  1. Setup an application in your Settings > Connections. Call it whatever you want and set the redirect URI to http://localhost. Next screen, ask for a New Client Secret. Keep that and your Client ID.

  2. Run this URL to get an access token from Twitch - replace the field as indicated:
    https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id=YOUR_CLIENT_ID&redirect_uri=http://localhost&scope=user_read

  3. Look at your new URL and note down the THIS_IS_YOUR_ACCESS_TOKEN value:
    http://localhost/#access_token=THIS_IS_YOUR_ACCESS_TOKEN&scope=user_read

Then, you will need to build your query into Twitch and pass the access token in the header as indicated on that API page. However you do that is based on what language/API you are using to build and manage your request.

From there, you will get your streams in order I believe, not “top” if you mean by most popular in terms of follows or viewers or what ever.