I have an application that monitors a varying set of streams using the Twitch API. It’s currently polling Get Stream By User for each stream, but since that results in tons of requests I wanted to change it to the Get Streams endpoint to batch 100 checks at a time.
However, this is working terribly. If I check for a specific stream for testing, the results I get are:
- for the first 2-3 minutes after starting the stream, the stream randomly either shows up or it doesn’t (I assume this is due to caching differences between servers. I can work around this)
- after those 2-3 minutes, the stream stops showing up entirely even though it’s still live.
This happens on both v5 (
https://api.twitch.tv/kraken/streams/) and helix (
https://api.twitch.tv/helix/streams). I don’t understand what could be causing the stream to just stop showing up. There is no indication on the docs about what condition makes streams not present. The Get Stream By User endpoint from v5 works fine.
This also makes it impossible to migrate to Helix, since the only way to get a specific user’s stream, and the replacement endpoint for Get Stream By User from v5 according to the migration guide, is this one that has this issue.