When you get videos the first item will also be the live stream if the user is currently streaming, but the “thumbnail_url” field is just an empty string.
I wasn’t sure how to handle this entry. Ideally, I would like to show information about the live stream, but it looks like the only way to do that is through a separate call.
Sounds like you just need to call “get streams” and see if they are streaming before calling get videos?
Concieveable, however, you could parse the duration and created_at times from the first video and see if created_at + duration = now give or take 30 minutes.
Usually created_at + duration = now is only about 5 minutes behind “now”