Skip to content

Set Profile Privacy

Revadike edited this page Nov 5, 2026 · 1 revision

POST /profiles/:steamid/ajaxsetprivacy/

Updates the profile's privacy settings.

Rate limits

No known rate limit

Request

Authenticated: Yes

Method: POST

Host: steamcommunity.com

Path: /profiles/:steamid/ajaxsetprivacy/

Variables:

Name Type Description
:steamid number The 64-bit SteamID of the logged-in user

Form Data:

Name Type Required Description
sessionid string Yes The value of the sessionid cookie
Privacy string Yes The privacy settings as a serialized JSON object holding PrivacyProfile, PrivacyInventory, PrivacyInventoryGifts, PrivacyOwnedGames, PrivacyPlaytime and PrivacyFriendsList, each 1 private, 2 friends only or 3 public
eCommentPermission number Yes The comment permission: 0 friends only, 1 anyone or 2 private

Response

200 OK

Name Type Description
success number Whether the request was successful
Privacy object The stored privacy settings
Privacy.PrivacySettings object The stored privacy levels
Privacy.PrivacySettings.PrivacyProfile number The privacy level of the profile
Privacy.PrivacySettings.PrivacyInventory number The privacy level of the inventory
Privacy.PrivacySettings.PrivacyInventoryGifts number The privacy level of the gifts in the inventory
Privacy.PrivacySettings.PrivacyOwnedGames number The privacy level of the owned games
Privacy.PrivacySettings.PrivacyPlaytime number The privacy level of the played time
Privacy.PrivacySettings.PrivacyFriendsList number The privacy level of the friends list
Privacy.eCommentPermission number The comment permission

400 Bad Request

The response body is null.

401 Unauthorized

The response body is null.

Example

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
    }
}

Clone this wiki locally