TrojanerHD / TrojanerBot

My discord bot
MIT License
4 stars 2 forks source link

Enable more than 100 streams to be fetched #40

Closed TrojanerHD closed 2 years ago

TrojanerHD commented 2 years ago

Currently, thanks to the Twitch API, only the first 20 streamers are returned in every request. This can be changed to 100 by specifying a first field. If there are more than 100, the remaining streamers have to be obtained by separate requests with an after field in the request using so-called pagnation

TrojanerHD commented 2 years ago

Apparently, if calling the Twitch APIs streams endpoint with user_logins, the limitation does not exist. However, you can only request 100 user_logins at a time so that has been fixed in da8c5236638fad67a640fcd88a4b4dd565760363