Search code examples
apisteam

Steam Web API: Where I can find the profile status public/private?


Where can I find steam profile status? I mean public profile or private?


Solution

  • According to the official docs, you can check the communityvisibilitystate property:

    This represents whether the profile is visible or not, and if it is visible, why you are allowed to see it. Note that because this WebAPI does not use authentication, there are only two possible values returned: 1 - the profile is not visible to you (Private, Friends Only, etc), 3 - the profile is "Public", and the data is visible. Mike Blaszczak's post on Steam forums says, "The community visibility state this API returns is different than the privacy state. It's the effective visibility state from the account making the request to the account being viewed given the requesting account's relationship to the viewed account."