How to handle getting badge info

Alright, so in this gui I’m making I want it so that badge stats are able to viewed with accurate information.

Essentially despite using BadgeService I’m like 90% sure it doesn’t retrieve stuff like “Badges Awarded” and “Awarded Yesterday”

Im thinking of using HttpService to get this data, but I’m not sure if I should just ditch the idea if it’s bad practice to use request for ~40 badges. (It’d gather requests only on badges you click on, and after getting the data it would have a 15-30 minute cooldown before it would use another request.)

If any of the wording is confusing I can clarify it further.

1 Like

Why not just use BadgeService? the rate limit should not affect you too much (and you can stagger it while the player is playing)

CheckUserBadgesAsync() lets you check up to 10 at a time, which should give you a realistic 150 badge calls per minute, per player

1 Like

Not what I was going for. Essentially I want to show the number of times the badges have been awarded and how many people got it yesterday.

BadgeService however is just the best call for checking basic badge info and if a player owns it. This is just to keep immersion inside the game however.

in that case you may have an easier time using something like the new memory store

Despite being bad practice I used a client->Server remote function to get the Http request while using a buffer (server sided) in order to avoid getting spammed badge http lookup requests. This returns the info from the badge the client is looking for and then the server doesn’t have to update info for ~30 minutes. (This is just going off of 500 requests / minute limit I read.)

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