As i understand, it is no easy solution for getting rerun status of online stream.
I think, I’m found something =)
For getting status rerun, I’m making two different GET requests.
- GET https://api.twitch.tv/helix/streams?user_id=<user_id>
if response is undefined then make second request
- GET https://api.twitch.tv/helix/search/channels?query=<name_user_id>
filter response array by <user_id> and get status “is_live”: true
So, if 1 request undefined and second request is_live: true then we have rerun status.
What you think about it? Is is working for you?