Write

Vote

Cast or clear an up/down vote on a post or comment. Session cookies are optional when a Reddit session is connected through POST /api/reddit/session: a call that sends none acts as the stored session, and cookies you do send always win. Cost: $0.005 per call.

post/api/reddit/vote

Request

  • Base URL: https://api.redditapis.com
  • URL: https://api.redditapis.com/api/reddit/vote
  • Auth: HTTP bearer

Request body

thing_idstring required

t3_xxx for a post, t1_xxx for a comment

directionstring required

up | down | none (clear existing vote)

reddit_sessionstring

Account session cookie (from /api/reddit/login)

loidstring

Account loid cookie (from /api/reddit/login)

token_v2string

Reddit token_v2 cookie

csrf_tokenstring

Reddit CSRF token cookie

edgebucketstring

edgebucket cookie

csvstring

csv cookie

session_trackerstring

session_tracker cookie

pcstring

pc cookie

Response

Successful response.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.