Check if a stream is online

What is the correct way to check if a stream is online from your website?

For each requested user ID currently live, you’ll get back a Stream. The rest is omitted from the response.

Is that in the javascript or something? Im so confused, PHP?

Solved. I’m stupid af lol