Repository navigation
Set Profile Privacy
Revadike edited this page Nov 5, 2026
·
1 revision
Updates the profile's privacy settings.
No known rate limit
Authenticated: Yes
Method:
POSTHost:
steamcommunity.comPath:
/profiles/:steamid/ajaxsetprivacy/Variables:
Name Type Description :steamidnumber The 64-bit SteamID of the logged-in user Form Data:
Name Type Required Description sessionidstring Yes The value of the sessionidcookiePrivacystring Yes The privacy settings as a serialized JSON object holding PrivacyProfile,PrivacyInventory,PrivacyInventoryGifts,PrivacyOwnedGames,PrivacyPlaytimeandPrivacyFriendsList, each1private,2friends only or3publiceCommentPermissionnumber Yes The comment permission: 0friends only,1anyone or2private
Name Type Description successnumber Whether the request was successful Privacyobject The stored privacy settings Privacy.PrivacySettingsobject The stored privacy levels Privacy.PrivacySettings.PrivacyProfilenumber The privacy level of the profile Privacy.PrivacySettings.PrivacyInventorynumber The privacy level of the inventory Privacy.PrivacySettings.PrivacyInventoryGiftsnumber The privacy level of the gifts in the inventory Privacy.PrivacySettings.PrivacyOwnedGamesnumber The privacy level of the owned games Privacy.PrivacySettings.PrivacyPlaytimenumber The privacy level of the played time Privacy.PrivacySettings.PrivacyFriendsListnumber The privacy level of the friends list Privacy.eCommentPermissionnumber The comment permission The response body is
null.The response body is
null.
POST https://steamcommunity.com/profiles/76561198786103331/ajaxsetprivacy/ { sessionid: "a0b1c2d3e4f5g6h7i8j9klmn", Privacy: "{\"PrivacyProfile\":3,\"PrivacyInventory\":2,\"PrivacyInventoryGifts\":1,\"PrivacyOwnedGames\":2,\"PrivacyPlaytime\":3,\"PrivacyFriendsList\":3}", eCommentPermission: 0 }
{
"success": 1,
"Privacy": {
"PrivacySettings": {
"PrivacyProfile": 3,
"PrivacyInventory": 2,
"PrivacyInventoryGifts": 1,
"PrivacyOwnedGames": 2,
"PrivacyPlaytime": 3,
"PrivacyFriendsList": 3
},
"eCommentPermission": 0
}
}