Get Group from Group Name

So I just learned that you can get somebody’s profile by using:
https://www.roblox.com/users/profile?username=builderman
(Replace builderman with the desired username.)

Does anyone know if there is something similar for groups?

To clarify, I’m not talking about a search query. I’m talking about directly referencing a group by its exact name.

1 Like

Have you tried using GetGroupInfoAsync

Hope I understood you correctly.

Unfortunately, GetGroupInfoAsync requires a GroupId. I’m trying to get a group by its exact name and nothing else.

Thanks anyway

1 Like

Maybe this thread would help.
You could get group info from its name using that method.

1 Like

There is the group API, /v1/groups/search/lookup

local HTTP = game:GetService("HttpService")
local groupName = "" -- group name

local data = HTTP:GetAsync("https://groups.roproxy.com/v1/groups/search/lookup?groupName="..groupName)

data = HTTP:JSONDecode(data)
if #data.data > 0  then
	local group = data.data[1]
	print(group.id)
end

This isn’t tested, but it should work.

3 Likes

It says it’s Error 403 (Forbidden) for me. The proxy used is probably the issue, but the functionality is what I was looking for anyway. Thanks you for the reference.

I’m not sure, but this request might require you to provide your ROBLOSECURITY. I have used this proxy for every other thing like inventory API, marketplace API, etc. so I can assure you that it works.

I’ll have to look into that later. For the time being, I only needed this to find an unlisted group. Thanks again

1 Like

For sake of if anyone ever comes across this post looking for such a thing in the same way.

Step 1: Go to the V1 Group API Page.
Step 2: Scroll Down to Search Lookup


Step 3: “Try it Out”

2 Likes