Twitch Stream Uptime

After the recent changes to the Twitch API, useful tools like this twitchuptime script, which allowed to easily show on stream the uptime of any stream, have completely stopped working

Is there any way to resolve this or a possible replacement for this tool? Thank you

The notes and how to fix is note here

So you can PR back a fix to the script I imagine

1 Like

I tried to study that thread and the Twitch API to find a solution but due to my ignorance on the matter nothing really worked out.

As i explained in the first post the script that got disrupted due to Twitch new changes allowed to display a simple uptime box in a browser for any stream, this is its “simple” code (which doesn’t seem to show any OAuth calls)

If anyone knows a possible solution to this issue or if this is even fixable after the recent changes it would be amazing. If something similar already exists it would be even better; what i’m basically looking for is a simple script that shows the uptime of any stream in a browser (ex. 01:00:05), so that i can add that to my OBS screen.

Yeah that code won’t simply work anymore.

It can be updated/revised to use an App Access Token if the intent is to make it work for singular peoples. But each streamer using the script (in just obs) would need their own Twitch ClientID/secret.

TLDR: the script needs to be changed to talk to a backend server, and the backend server handles authentication and calling the API

It’s not a straight forward modification

1 Like

Thank you a lot for the reply and clarifying. As of right now i see that Twitch extensions like FFZ still show the uptime for any stream, without the need to have each individual Twitch ClientID. Would it possible to have something similar in a browser format?

Thank you again for your time.

I don’t know what FFZ does or how it does it in order to collect that information.

FFZ is a client-Side application that runs in the context of the Twitch Website thanks to how modern Browser Extensions work. This allows it to have access to the user’s credentials and act on the user’s behalf without further authentication, effectively giving access to all data the twitch page itself has access to.

This allows it to poll such information with relative ease, but this is an undocumented (and thus unsupported / may break at any time) approach.

If you want a local solution, you could build a simple script that prompts for an implicit oauth token and uses that to access the api, manually renewing said token once every 2 months when the token expires.

If you are curious about FFZ, you can find its source on github:

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