Get Group Announcement Vote - Revadike/InternalSteamWebAPI GitHub Wiki

GET /gid/:groupid/announcements/ajaxgetmyvote/:gid

Returns the authenticated user's vote on a group announcement.

Rate limits

No known rate limit

Request

Authenticated: Yes

Method: GET

Host: steamcommunity.com

Path: /gid/:groupid/announcements/ajaxgetmyvote/:gid

Variables:

Name Type Description
:groupid number The 64-bit SteamID of the group
:gid string The 64-bit ID of the announcement

Headers:

Name Required Description
X-Requested-With Yes Use XMLHttpRequest as value (mandatory)

Response

200 OK

Name Type Description
success number Whether the request was successful
voted_down number 1 if the user voted the announcement down, otherwise 0
voted_up number 1 if the user voted the announcement up, otherwise 0

401 Unauthorized

Name Type Description
success number Whether the request was successful
err_msg string The error message

Example

GET https://steamcommunity.com/gid/103582791474397691/announcements/ajaxgetmyvote/1
{
    "success": 1,
    "voted_down": 0,
    "voted_up": 0
}