Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is a web API that return the user membership type?

This isn't really a scripting question, but still.

I need a web API that return a user membership type, without having the user to be logged in.

The only one I found is

http://www.roblox.com/mobileapi/userinfo

But it require a user to be logged in. I need one that work like this

http://www.roblox.com/Users/get-membership-type?username=Kurieita

And it return either NBC, BC, TBC, OBC or something similar that distinct a NBC from someone with a membership type.

5 comments

0

:/ It sorta of not off topic. I mean in a way it is but still Roblox related.

0

I'd consider this on topic, you're good

0

Nvm my previous comment.

0

Not a web API. ^

2 answers

✓ Accepted answer

What you could do is get the user's BCOverlay image. It will return one of four images:

http://static.rbxcdn.com/images/empty.png
http://static.rbxcdn.com/images/icons/overlay_bcOnly.png
http://static.rbxcdn.com/images/icons/overlay_tbcOnly.png
http://static.rbxcdn.com/images/icons/overlay_obcOnly.png

You can do this using this url:

http://www.roblox.com/Thumbs/BCOverlay.ashx?username=ROBLOX

1 comment

0

Lol that is close enough. Thanks alot. +1 for you

You could use the built in property, MembershipType.

Taken from the wiki

game.Players.PlayerAdded:connect(function(p)
	if p.MembershipType == Enum.MembershipType.BuildersClub then
		print("User has regular Builder's Club!")
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.