How to make Live Group Member Count

How to make Live Group Member Count?

1 Like

You would need to request the group page and parse the HTML to get it.

There isn’t an API function to get the number sadly.

Edit: You also can’t get it from in game Roblox because it’s a roblox.com url so it’s protected, so you would need to have a proxy web server to request it.

I dont know if that is possible but another thing that seems interesting id a total place visits count for in game.

Edit: Because If this is possible I means that you can add limited amount of items in your game… Ex. For every player that joins you can add a certain amt of objects

It’s possible, I just said above how to do it. I’m just trying to find the right code for it now. I have the code somewhere on my website… Just gotta find it…

A good read.

2 Likes

It is a good read, but again, this is also 5 years old and the website has changed.
Some of the divs are labeled differently now.

Edit: roproxy.tk also fails DNS Revolving now, indicating the site is gone.

Okay Thx…
It can change the way some games are made. Cause I didnt see anygame use limited items for every player that joins…

The article @sjr04 links to works if you use https://rprxy.xyz/My/Groups.aspx?gid=ID instead of the one provided on the page (as that one appears to be long gone, whereas rprxy.xyz is actively maintained).

2 Likes

Please search first before posting. There are already many threads on this. For example, this thread asks the exact same question and has a way of doing so by querying from the Groups API. Just note that potential solutions require a proxy rather than querying directly to Roblox.

API: https://groups.roblox.com/docs#!/Groups/get_v1_groups_groupId
Query URL: https://groups.roblox.com/v1/groups/{id}

Pass through GetAsync, pass the result through JSONDecode, access the memberCount key.

Example:

local HttpService = game:GetService("HttpService")
local groupData = HttpService:JSONDecode(HttpService:GetAsync("https://groups.rprxy.xyz/v1/groups/1"))

print(groupData.memberCount)
2 Likes

rprxy has shut down and is no longer in use.

The content of the post does not change with rprxy’s closure. This post was made in 2020 when rprxy was still active. Naturally, overtime, resources may go out of service or be superseded by better resources and it’s up to you to find appropriate alternatives.

Nothing changes here:

  • You still require a proxy server to make requests from an experience server to a web endpoint.

  • The API that you need to use is in /v1/groups.

  • The response returned is in JSON format.

Not really worth the bump there. Finding an alternative if current methods go out of date is an implied responsibility you need to uphold.

1 Like

Yeah. I don’t think there is any way to do this currently right now as GroupService doesn’t include the group’s member count for some weird reason. I think the only way would be to set up a proxy server.