Sending Https Requests On Roblox

Hey ive been trying to make a live member count for my group in a game but then i think you cant send https requests to roblox api on roblox so how would i work around this!1

Use a proxy, I recommend you host one yourself, you can use a pre-made one though like rprxy

Although, if you’re feeling like not hosting your own proxy, use “https://roproxy.com” in your requests to replace “https://roblox.com”. Note that a proxy that isn’t being hosted by you can be unreliable

Roblox does not allow developers to send web requests directly to Roblox’s own APIs, for obvious reasons (imagine how easy it would be for scammers to steal accounts and assets if they could do it straight through a Roblox game).

To solve this issue you would have to either set up a web server or a proxy server. Luckily for you there already are free proxies available to use for free (for instance RoProxy). Do note that you should not send any sensitive information through other people’s proxies.
For RoProxy, all you have to do is change out ‘roblox’ in the API domain to ‘roproxy’.

Yeah, Roblox doesn’t allow direct HTTP requests to its API from games for security reasons. To work around this, you could set up a proxy server outside of Roblox that fetches the group member count from the Roblox API and then sends it back to your game!

1 Like

You should look if the thing you’re trying to access has a method in any service, because Roblox has almost all the APIs available from the services

This should help you

EDIT: I was attempting to take a look to verify if the domain was still accurate, however I was unable to reach the swagger Roblox API documentations. Although it should still work, you might want to go with a newer API, as they recently moved.

can you show me how to make a group counter with this ro proxy??

true but you cant make a group counter with services

If you’re trying to count the amount of groups a player is in, check out this GroupService | Documentation - Roblox Creator Hub

Sorry for that answer, I read that you were trying to count members in a group LIVE, so you have to use the https://groups.roblox.com/v1/groups/XXXXXXXX endpoint, this’ll return a small JSON dictionary, and it has a field called memberCount

I recommend updating the memberCount with just a small (that looks random) animation every minute though to both simulate being live and to not spam the API

since when was there a group service

i know that put can someone teach me how to use it on a proxy like roproxy because i dont like hosting proxys myself you cant access roblox APIS on Roblox

HttpService works serverside only so no auth tokens would be leaked anyway unless you voluntarily set them up to.

To @OP: You’d be best self-hosting a proxy, RoProxy (and other similar services) shouldn’t be used for the reasonings given here:

If you are refering to:

“Do note that you should not send any sensitive information through other people’s proxies.”

While the clients in the game won’t have access to it, the proxy owner will.

I’m just gonna host my own proxy!!

1 Like

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