Blocks

Reddit

Access Reddit data and content

Access Reddit data to retrieve posts and comments from any subreddit. Get post titles, content, authors, scores, comments and more.

Back to Catalog
Toolsreddit

Block Preview

Reddit

Reddit

Access Reddit data and content

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the reddit block with monitoring enabled in production.

Inputs (UI)

Action

dropdown

Layout: full

Options: Get Posts, Get Comments

Subreddit

short-input

Placeholder: Enter subreddit name (without r/)

Layout: full

Condition: action = ["get_posts","get_comments"]

Sort By

dropdown

Layout: full

Condition: action = "get_posts"

Options: Hot, New, Top, Rising

Time Filter (for Top sort)

dropdown

Layout: full

Condition: action = "get_posts" AND sort = "top"

Options: Day, Week, Month, Year

Number of Posts

short-input

Placeholder: 10

Layout: full

Condition: action = "get_posts"

Post ID

short-input

Placeholder: Enter post ID

Layout: full

Condition: action = "get_comments"

Sort Comments By

dropdown

Layout: full

Condition: action = "get_comments"

Options: Confidence, Top, New, Controversial

Number of Comments

short-input

Placeholder: 50

Layout: full

Condition: action = "get_comments"

Inputs (API)

action

string

Required

The action to perform: get_posts or get_comments

subreddit

string

Required

The name of the subreddit to fetch data from (without the r/ prefix)

sort

string

Required

Sort method for posts: "hot", "new", "top", or "rising" (default: "hot")

time

string

Optional

Time filter for "top" sorted posts: "hour", "day", "week", "month", "year", or "all" (default: "day")

limit

number

Optional

Maximum number of posts to return (default: 10, max: 100)

postId

string

Required

The ID of the Reddit post to fetch comments from

commentSort

string

Optional

Sort method for comments: "confidence", "top", "new", "controversial", "old", "random", "qa" (default: "confidence")

commentLimit

number

Optional

Maximum number of comments to return (default: 50, max: 100)

Outputs

Primary response type:

{
  "subreddit": "string",
  "posts": "json",
  "post": "json",
  "comments": "json"
}

Tool Access

reddit_hot_postsreddit_get_postsreddit_get_comments
Reddit | NowFlow Blocks