!followage command not working 09/2023

Asked Sep 12, 2023·30 replies·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I am an mod for a streamer and it seems that the !followage command i set up previously stopped working.
After some research i found out the reason was bec Twitch changed their API's or something.
I'd like some clarification and a solution

command i use: $(urlfetch https://api.2g.be/twitch/followage/$(querystring $(channel))/$(querystring $(touser))?format=ymwdhis)

30 replies

I am having the same issue and the error I get says it is a Twitch error with the same command. I tried changing it in a couple of ways and nothing worked.

Anyone able to help out?

Hiya, yes that's my API, indeed there were some changes with the Twitch API. Which now requires you to log in either as the streamer or a moderator to be able to view that that info. I will need to update my API to support this change, but not sure when.. life is busy atm.

I am having the same issue, I do not know what to do and the streamer I am helping is at wits end. Is anyone able to help?

There is nothing you can do at the moment. Unless you find an alternative API.

you can prefer the followage command with the streamelements bot which works fine

will there be a work around for everyone to view or just for streamers and mods of the channel to view?

When I look at nightbot's twitch entry, there is no followage entry.
If nightbot does not add this item due to permission issues, I don't think there is any other way.
streamelements bot and cooingbot also support followage.

Yeah im having the same problem aswell any new api's found?

I found that a streamer I watched the followage command was broken so I decided to make one that works. The streamer has to login as it seems its no longer a public api on twitch to get followers.

Anyways the site is: https://commands.garretcharp.com

You need to login and then you can add the command:

$(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser))

Format (any values that are 0 would be omitted):

@viewer has been following @streamer for x years, x months, x days, x hours, x minutes, x seconds

This is great! Thank you for your work!

It should work fine for everyone. Are you seeing something different?

The streamer does need to login first so if they do not login it will not work.

Can you update this to work for mods too? Not just the owner to set up

not up to them... is up to twitch... they r the ones that made it so u have to log in

If you go to the site and login it should give an option to add a command that will use a moderator login token instead of the streamer.

Thank you so much, my chat was so sad when the API changed, now happy once more

Is it possible to format the date/time so that it only displays year,month,day or month & day like xgerhard's command was able to?

do you have to keep it tabbed after you log in and add the command?

Looks like if you close the tab, the command is not working anymore "Error Connecting To Remote Server"

That usually happens when the api goes down, Seems to be back up because both commands are still working without the tab being open including on different devices.

You do not need to keep the tab open.

I have seen this error pop up once when I used it but no clue why it happened as I don't have any issues with my service. I'm leaning towards it being an issue on nightbots end. Normally a retry of the command will work though.

I can look into doing this

EDIT because it wont let me send a new message here:

Just updated so you can add a specific format if you want. The default format is ymdhis: x years, x months, x days, x hours, x minutes, x seconds.

You can do pretty much any format you want assuming the values appear in the correct order so for your request of year, month, day or month, day:

?format=ymd : x years, x months, x days.
?format=md : x months, x days.

As the full command:

!commands add !followage $(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser)?format=ymd)
!commands add !followage $(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser)?format=md)

@Speedy Cat

Hi, thank you for your amazing work!! I have a question. Is there any way to make the API get the latest follower's name? To use it in something like that !thanks Thanks for the follow {latest follower}

Didn't find your answer? The community is on Discord.

Ask on Discord