Write

Post Comment

Post a comment on any Reddit post. Plain text is rich-text encoded automatically. 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.012 per call.

post/api/reddit/comment

Request

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

Request body

post_urlstring required

Any reddit.com post URL (new or old UI)

textstring required

Comment text — plain text is rich-text encoded automatically

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

localestring

BCP-47 tag for the browser context, e.g. de-DE. Match it to the proxy's country. Default en-US.

timezonestring

IANA zone for the browser context, e.g. Europe/Berlin. Match it to the proxy's country, or the account acts from your proxy's IP while reporting a New York clock. Casing and aliases are normalised (utc to UTC, europe/berlin to Europe/Berlin, GMT to UTC, Japan to Asia/Tokyo). A numeric offset such as +05:30 is not a timezone and is rejected. Default America/New_York.

Response

Successful response.

object required

Changes

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