Check Streamer is Online

Hello, I shall wish to make an extension for chromium for check if I am live or not I made a code but I have not the impression that he work = (https://puu.sh/sDM0a/1cc9a9dff4.png) thus I shall want to have of the help.

Seems like you’re not sending a client-id in your request which is required since August (see Client-ID Requirement FAQs)

Also, there’s no “onair” attribute in the channels response
If you wanna check whether a stream is online or not use the /streams endpoint and check the “stream” attribute
The stream is offline when it’s null. Otherwise it has data

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.