How to get full members of a group?

So i’m making a game where you can put your group on parts and get the info like description, but my link to get members is limited to get only 100 members

local function getMembers(GroupId : number)
	
	local URL = "https://groups.roblox.com/v1/groups/"..GroupId.."/users?sortOrder=Asc&limit=100"
	local response = HttpService:GetAsync(URL)
	local data = HttpService:JSONDecode(response)
	
	for i,v in pairs(data) do
		return #v
	end
end

so i was wondering how to increase the members fetched in the link.

btw i removed my proxy link for security reasons

1 Like

Seems that I never tried to use a group check… but, you mean that if you change limit=100 to 200 makes no difference at all?

no if you put the link in values other than 10,25,50,100 it will say

error allowed values are 10,25,50,100

and also my friend has 48K members and when he tried it didn’t work

Interesting! Sorry cause I never tried to get the whole group, so Im kinda walking on blind.
Do you have the documentation? is there a &cursor so we can get all pages on a loop?

I don’t recommend doing this, it’s best to use this endpoint: https://groups.roblox.com/v1/groups/GROUP_ID
Docs: Swagger UI
Example:

local URL = "https://groups.roproxy.com/v1/groups/3642592"
local response = game:GetService("HttpService"):GetAsync(URL)
local data = game:GetService("HttpService"):JSONDecode(response)
if data then
	print(data.memberCount) --prints 1178634
end
2 Likes

But data, only contains basic info about the group, theres no way to get the members from that

thanks, i never knew that even the devforum didn’t mention it

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