Question - Nightbot YouTube rate limit query

UPDATE: I ended up moving to using the API to send messages on behalf of Nightbot rather than use urlfetch command. I’ve noticed the 5~ second between resend attempts which I have accounted for. But outside of this, is there no other message limitations that I should be aware of?

Still have a bonus question at the end that, while not directly nightbot related - may have some knowledgeable users that know a bit more about my Youtube Livechat Message issue.

Update 2: For the bonus question, I’ve just discovered that the Live Chat section exists. My chat listener appears to only read Top Chat and ignores this filtered section. Please disregard question 2. Though Question 1 still stands.

Hey team, apologies if this has been asked before or is clearly stated in the documentation (and I have missed it).

Using our own API for Youtube Live Streams there is a rate limit of 10,000 credits. It seems as though Nightbot might not have this restriction?

I can see a search result where Nightbot limits API 100 requests to every 5 minutes. But unsure if this is also relates to the URLFETCH feature with commands.

I don’t intend to have Nightbot hit my API endpoint this many times, however in general would there be an overall limit that Nightbot would hit and then suddenly stop posting message in my YouTube live stream? Or does Nightbot always respond to commands that have been set?

For reference, the stream is 24/7 - I anticipate users probably not using URLFetch commands more than 100 times per hour.

Let me know if I’ve been unclear, I’m essentially just trying to produce a solution that could respond to users !codes without being restricted by an unclear limit.

Thanks in advance. H_NL

BONUS QUESTION:
I’ve noticed on a non moderator account I can send SOME messages to a live chat, but others won’t be picked up by the live-stream listener, or even show on the stream owners chat.(/package/youtube-chat).

I’m quite confused as to what the conditionals are, as I’ve disabled all spam filters inside of nightbot (not a nightbot issue though, as the message doesn’t even come through to the livestream) and allowed all messages inside of the live stream settings.

Hey @Harlski_NL!

I believe Nightbot has API privileges others don’t due to its size, but I’m also pretty sure you can request to have the limit raised up/lifted if you have legitimate reasons, I could be totally wrong here, so take my response with a good dose of salt, but that’s what I recall understanding a while ago.

Thanks again for your help Emily. You’ve covered most everything in Discord.

Yeah the YouTube API can be a bit sticky to work with as a new developer, hopefully in the future if YouTube streaming becomes more mainstream they can just natively allow higher API calls for all.

I’ll work with Nightbot as a solution for now.

Thanks again.

1 Like

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