How to find a users gender using httpservice?

I am new to httpservice and a link in an article directed me to this site https://api.roblox.com/docs?useConsolidatedPage=true to find apis.

When I look around the site I see things like that. If I wanted to find a users gender, how would I do that using /v1/gender.

1 Like

You should not be doing this in the first place. Not only is this inappropriate to a player’s privacy, but also they may identify differently than the API suggests.

You are not allowed to make web calls from the client, so you can’t use this API in the first place.

Prompt the user in game with a question on their gender, but also leave the freedom to not answer in the first place.

4 Likes

Furthermore, I believe a request like this would require authentication (e.g. access to the user’s account, whether it be in the form of a cookie or otherwise), thus rendering it impossible to use in your game.

Thats why its required to be called “from the client”, but since you cant, you cant use it.

image

If I wanted to find out the ids for what someone is currently wearing, is that possible without authentication?

Yes, but again, you are still violating a player’s privacy, and they may identify differently than their avatar or their settings may suggest.

What information am I allowed to find of a player that will not violate a players privacy?

Any information that might be sensitive or identifiable to a given person. This requires you to consider that can be sensitive though.

Things like age and location are very obvious ones that you should not ask the player, but subtle ones like gender can be asked, but its best if you either don’t in the first place or give the player ways to customize their settings differently, or to give them the option to not respond at all.

Well any API call that does not require verification cookie that is their ROBLO security.

If it does not require verification then its public anyway.

I don’t think you should try to do this since it would be described as personal information. You can do what @DrKittyWaffles said and put in an option to select.

Thank you for replying everyone. I will do that instead.

How? You can literally go on their profile and look at their avatar. It’s public information…

It’s not really wise to rely on avatar information to determine gender. For example I have a dragon avatar on – but how will that tell you I identify as male? What about users with no gender data (you can opt out of the male and female genders in your settings and upon signup now)?

4 Likes