Hi Folks,
I want to get a list of all online status (if it is streaming or not) of Twitch team members for a given team name.
My current approach
- Get team from API (
https://api.twitch.tv/kraken/team/<team name>
) - Get stream status for each team member (
https://api.twitch.tv/kraken/streams/<channel id>
)
My problem with this
First request is okay and works as expected. but I have to request each channel / streamer by it self and not in bulk - and the responded data is more than I really need.
That would be very important for performance and also to avoid hitting the request limits.
Question
Is there any Twitch API endpoint that I can use, that takes several channel ids and response just a flat dict of channel Id and flag if the streamer is online?
Like:
{[
{ id: 123, online: false },
{ id: 456, online: true}
}]
Thanks a lot for any help!
- Tobi