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.
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