Is there a way to check if a stream is live without using tokens?

I’m a novice coder, trying to make an extension that would let you organize channels you follow into folders, check if each channel is live, and link to each channel, and I think I successfully managed to get the streamer profile picture without using any tokens and want to avoid using them if I can just to avoid over complicating things since I don’t really get why it would need any authorization to see if a channel’s live.

All of Helix/the API requires the user of a token. (not just a ClientID)

No token, no data.

For an extension, I assume you mean a browser extension, you can use implicit auth to obtain a token to use, the user will just need to (re)login to Twitch and provide a new token ever 60 days or so

So Twitch know which apps are making API requests, can rate-limit requests, and potentially block bad actors. Something that is not possible with just a Client ID.

It is possible to code this in php without tokens, but it wont grab streamer profile pictures. Extension wise, would def need token.

To call the API requires a Token.

if using PHP you can use an App Access Token as streamer online status (and their profile picture) is public data.

A PHP example of generating a token:

This is screen scraping and generally considered to be bad from and make be against the Developer TOS.

https://www.twitch.tv/p/en/legal/developer-agreement/

Additionally if you are in PHP just generate an app access token.

This also won’t work since the Twitch website uses JS to post render the page after it’s loaded. (last I checked).

The intended way to get this data is via the API, not screenscraping.

As such I have removed your post

1 Like

Ah, it does work but I did not know it was against terms. I’ll keep that in mind before responding to future post.

if it aint on

Then it’s not supported and most likely not allowed.

The intended way to get data from Twitch is to call one of the third party products, such as the API, or EventSub.