Useful Custom APIs


#385

Kinda random but your one post about !howlong formats, i was wondering if you could add one that had year and months. Like &format=yearmonth (X has been following Y for 2 years, 9 months).

Thank you!


#386

i`ll need to get an api for how long person has been following channel… or how long this person was subscribed, is it possible to make somehow


#387

I found an alternate API site:


#388

I am currently trying to add a command that tells the user that typed in the command since when their account was made I am using an API from the original post

https://api.rtainc.co/twitch/channels/CHANNEL?format=[0]'s+account+has+existed+for+[1])

and to make the command I put

!addcom !created $(touser) created their account on $(customapi https://api.rtainc.co/twitch/channels/CHANNEL?format=[0]'s+account+has+existed+for+[1])

Im not sure what to put for CHANNEL since I am attempting to direct it to whomever typed the !created command so I replaced it with (touser) and $(touser) but it keeps saying “USER has created their account on Error Connecting To Remote Server”

Is there a newer version of the API I’m trying to use, typo, or I just don’t know what I’m doing

Any help would be appreciated


#389

Never mind i have just learned that $(customapi) is now $(urlfetch) and was able to create a command that tells how long the account has been made for without using an api in a format such as “1 year 1 month 1 week 1 minute 1 second” if anybody wants to know the code for the command its

!addcom !created $(twitch $(touser ) “{{displayName}} was created {{createdLength}} ago”)

Im still working on how long someone has been following the specified channel for in the same format as the above instead of a date


#390

nice, i was looking for that command to check how long an user exist!

for followage i’m using this: !howlong has suddenly stop working!


#391

Would anyone have or be able to create a custom API for returning the quote of the day text from a website? Thanks!


#392

So my commands aren’t working anymore. The randomizer is just showing an error. Is there a way to fix it? Here’s a couple of the commands that were working but aren’t anymore.

$(user) challenges $(touser) to a pokemon battle! $(urlfetch https://api.rtainc.co/twitch/random?format=[0]&choices=$(user),$(touser)) is the victor!

$(touser) now wields the $(urlfetch https://api.rtainc.co/twitch/random?format=[0]&choices=Kingdom Key,Oathkeeper,Oblivion,Ultima Weapon,Keyblade of People’s Hearts,Lady Luck,Olympia, Jungle King,Three Wishes,Pumpkinhead,Wishing Star,Crabclaw,Fairy Harp,Divine Rose,Spellbinder,Metal Chocobo,Lionhearted,Diamond Dust,One-Winged Angel,Soul Eater,Bond of Flame,Follow the Wind,Hidden Dragon,Monochrome,Photon Debugger,Star Seeker,Maverick Flare,Total Eclipse,Midnight Roar,Two Become One,Star Seeker)!


#393

The Rtainc APIs are not working anymore, if you scroll up in this thread you’ll see alternatives for the random command:


#394

So this eval isn’t working ether…


#395

Its working fine, what kind of command do you need?


#396

Anyone have a Returns the channel’s follower count. api?


#397

Try this

$(twitch YOUR_NAME "{{displayName}} has {{followers}} followers")

Replace “YOUR_NAME” with your twitch channel of course.


#398

Appreciate my dude it worked just fine


#399

When i try to use the token link gives me a page not found error.


#400

Yes, this customapi has been down for a while and it doesn’t look like it will be coming back. If you state what you are trying to solve many other people have made customapi’s to replace these ones though.


#401

Oh well shoot, I was trying to have the Total Sub count command. If anybody has a nice one that would be amazing.


#402

Nightbot already has a way to access the twitch subcount using the $(twitch) variable, the docs are here: https://docs.nightbot.tv/commands/variables/twitch


#403

Thank you, I tried using that command line but kept getting “Only the current channel’s subscribers count can be checked.” in response.


#404

Yes… you can’t check the subscriber count of other channels.