Skip to content
Revadike edited this page Nov 5, 2026 · 1 revision

POST /questions/:vanity_url/ajaxvoteforquestion/:gidsession

Casts or removes the authenticated user's upvote on a question in a Q&A (question and answer) session of a group.

Rate limits

No known rate limit

Request

Authenticated: Yes

Method: POST

Host: steamcommunity.com

Path: /questions/:vanity_url/ajaxvoteforquestion/:gidsession

Variables:

Name Type Description
:vanity_url string The vanity URL of the group
:gidsession string The 64-bit ID of the Q&A session

Form Data:

Name Type Required Description
sessionid string Yes The value of the sessionid cookie
gidquestion string Yes The 64-bit ID of the question
up number Yes Whether to upvote or remove the upvote:
  • 1 = upvote
  • 0 = remove the upvote

Response

200 OK

Name Type Description
success number Whether the request was successful

401 Unauthorized

Name Type Description
success number Whether the request was successful

Example

POST https://steamcommunity.com/questions/valve/ajaxvoteforquestion/1234567890 { sessionid: "a0b1c2d3e4f5g6h7i8j9klmn", gidquestion: "1234567890123456789", up: 1 }
{
    "success": 15
}

Clone this wiki locally