Reddit API guide

reddit.com

Search Reddit posts by subreddit, read discussion threads and their replies, and save posts to revisit later.

Actions and inputs

reddit search

Find posts by keyword and narrow the results by subreddit.

Inputs query, optional subreddit, sort, time range, limit

reddit subreddit

Browse posts in a specific subreddit.

Inputs subreddit, optional sort, time range, limit

reddit read

Read a post and its comment thread.

Inputs post ID, optional comment depth

reddit save

Save or unsave a post or comment in your account.

Inputs post or comment ID

Reddit posts

Create

Publish a post from your account in a subreddit that allows it.

Inputs Subreddit, title, text, and required flair if applicable

Read

Open the post and read its comments.

Inputs Post link or ID

Update

Edit the body of your own text post; Reddit does not let you change its title.

Inputs Post link and revised body

Delete

Delete your own post; this does not delete other users' comments.

Inputs Post link and confirmation