Useful Custom APIs

Something like this:

!commands add !random $(urlfetch https://api.rtainc.co/twitch/random?format=[0]&choices=a,b,c)

Now replace a b c with options you would the command to display.

The response for subbage(sub length) doesnt work correctly. It responds with incorrect values. Subs with 3 month sub badge get a response that they have been subbed for 2 months or sometimes way less. We have tried changing the token but it shows same data. What could be the problem?

1 Like

I’ve noticed this myself, and I think I know what’s happening.

When a subscriber renews a subscription, it will say “3-Month Subscriber” when they’ve only been subscribed for 2 months because they’ve paid for the third month and are going into the 3rd month. Alerts will say 3 months, but the sub length will accurately show the 2 months that the sub has currently served.

As for less time being shown, I’ve noticed that any of my subscribers that subscribe with Prime never show an accurate sub length. I think Prime does something weird with the sub renewal process that only reflects in sub length. The alerts and badges still reflect their accurate subscription length.

1 Like

No, I meant that it shows a 3 month sub badge but when the person uses the command, it shows he/she is a 2 month sub or way less. Even when the broadcaster uses the command its way off. It seems to be stuck.

1 Like

I believe what I said still applies. I have noticed that my Subscribers will have a 3-month badge, but the command will say the subscriber has only been a sub for 2 months. In actuality, I think they’re both correct. Twitch counts the sub ahead of time, meaning when a sub resubscribed, Twitch adds that prepaid month to their sub anniversary. The command, however only counts the number of days they have actually been a sub, not the prepaid days
This is why the command is always a month off. If it’s more than a month off, I’ve always noticed that the sub is subbed with Prime. I think Prime doesn’t keep track of sub lengths correctly.

1 Like

Is anyone else getting an error message when trying to use the API, a lot of my commands have broken and just return: “[Error Connecting To Remote Server - Error Connecting To Remote Server].” I was just wondering if there is a fix for it.

1 Like

ya , it is an error, hope the host can repair it as soon as possible

1 Like

Keep getting the “Error Connecting To Remote Server” error

1 Like

No, Twitch prime doesnt do that because it happens to almost every sub. The same goes for subbing for more months. Even the broadcaster gets incorrect data, which is what I have mentioned before. The broadcaster isnt subbed to himself, he cant extend it. He is considered his own sub on twitch though, but the command still returns incorrect data. If you pay for more months, you dont get the badge because thats not how it works. You just paid for more months. Its broken for subs.

1 Like

Does anyone know a way of doing !followage or !subs and it shows you your current amount of YOUTUBE subs or your lasted video etc

1 Like

Cant view russian text
$(customapi https://api.rtainc.co/twitch/random?format=[0]&choices=тДст+1,тДст+2)
Out “B5AB 1” or “B5AB 2”

1 Like

Try using the QueryString variable to encode the special characters:
$(customapi https://api.rtainc.co/twitch/random?format=[0]&choices=$(querystring тДст+1,тДст+2))

1 Like

api.rtainc.co seems to be down few days or is it just me?

1 Like

It is not just you, that appears to be the case. @rtainc any info on this?

I want to use this Nightbot API for an live output in my stream:
https://api.rtainc.co/twitch/channels/CHANNEL/status?format=[0]+is+currently+playing+[1]

(or in my case): https://api.rtainc.co/twitch/channels/CHANNEL/status?format=[1]
It returns the game title, but I want to change the @font-face. (I used the CLR Browser, but any change of style won’t be acknowledged.)

URL: https://api.rtainc.co/twitch/channels/Haituga/status?format=[1]
@font-face {
font-family: ‘Bebas Neue’;
font-style: normal;
font-weight: normal;
src:
local(‘Bebas Neue Standard’),
url(‘sharism.org/assets/fonts/bebas-neue/BebasNeue-webfont.woff’) format(“woff”) !important;
}

body {
background-color: rgba(0,0,0,0);
font: 12px ‘Bebas Neue’, Georgia, sans-serif;
color: #fff;
margin: 0px auto;
overflow: hidden;
}

The API has it’s own stylesheet (HTML argument) and I want to override it with my own style settings.

I would be glad if somebody could help me. The !important-markers won’t set any difference at all.
I’m sorry if this is the wrong topic to post this little issue. Greetings & thank you.

1 Like

Hi,

i was wondering why subcount not working anymore, but then i noticed the server api.rtainc.co is down again.

did anyone notice problems with subcount per api before, i mean different result compared to what streamer can see in dashboard? maybe there are problems with that command bc of new subscription tiers.for 9,99$ (counts as 2 subs) and 24,99$ (counts as 6 subs for the streamer).

regards Anti

1 Like

At this point just use the built in Twitch variable.

$(twitch $(channel) "{{subscriberCount}}")

i know that build in command, but it only works in your own channel. i want to check subcount from other people (my gf and other people where i am main moderator) in my discord server where nightbot from my twitch channel is connected, so i need the command with external api call hehe

btw that integrated subscriberCount from nightbot also gives different results now compared to dashboard check (lower numbers) i guess bc of new sub tiers

regards Anti

1 Like

The 8-Ball API seems to be down, as well as the one I was using for !followage/howlong.

1 Like

Can we contact? i have a livestream with 3000 viewers 24/7.

1 Like