How do I get a groups amount of members?

Im making a sign with the amount of members I have here in my group: Meta Shades - Roblox, but I cant seem to get the amount of members. I know it has to do with HTTPS but im new to this so anything helps. Ive also looked everywhere and nothing is working.

Code for now:

local groupID = "8564775"

local HttpService = game:GetService("HttpService")

print(game.HttpService:JSONEncode(HttpService:GetAsync("https://groups.roblox.com/v1/groups/" .. tostring(groupID))).memberCount)
1 Like

HttpService can’t send any requests to *.roblox.com or roblox.com itself.

You’ll need to use a proxy, for example https://rprxy.xyz

2 Likes

Thats another thing, I dont understand how to do that lol.

Then I recommend watching a video about httpservice, or reading the article on the devhub

3 Likes

Ive already tried this it doesent work.

What @sjr04 meant was that you can use rprxy.xyz to get the group
info. Instead of sending the request to https://groups.roblox.com/groups/v1/${groupId} send it to https://groups.rprxy.xyz/v1/groups/${groupId}

It says that it doesent exist as a HTTP

Did you enable http service?
If you did, it should work properly
This is what it should look like

local groupID = "8564775"
local HttpService = game:GetService("HttpService")

print(game.HttpService:JSONEncode(HttpService:GetAsync("https://groups.rprxy.xyz/v1/groups/" .. tostring(groupID))).memberCount)

Turns out I wrote it wrong, but now its erroring with “Too Many Requests” even though its just one print not looped.

Do you have other HTTP dependant scripts in your game?

Yes, getting place visits as well as getting players in game. Ill try optimizing.

I fixed that issue now theres another one. Its printing nil then an actual number.

Try changing this to the HTTP service defined value instead of game.HTTPService.

Now its not printing anything lol.