API Streams - more records


I use this link to see who is playing lol.
I can see maximum 100 records, I can somehow see the rest of the player?


You can specify an offset parameter, so instead of giving you the first 100 streams, it can give you the second batch of 100 streams when you specify an offset of 100. The API actually tells you what the URL of the current/previous/next page is in the _links object of the response.

Thanks. :slight_smile:

How i can get “viewers” on one game?
this link not work


I’m afraid you can’t specify a particular game if you are looking for total number of viewers. You’ll have to iterate over that whole list until you find the once you want.

Actually it is possible.

https://api.twitch.tv/kraken/streams/summary?game=League%20of%20Legends yields:

    channels: 1683,
    viewers: 96585,
    _links: {
        self: "https://api.twitch.tv/kraken/streams/summary?game=League+of+Legends"
1 Like