Blocks
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.
Block Preview
Access Reddit data and content
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the reddit block with monitoring enabled in production.
Inputs (UI)
Action
dropdownLayout: full
Options: Get Posts, Get Comments
Subreddit
short-inputPlaceholder: Enter subreddit name (without r/)
Layout: full
Condition: action = ["get_posts","get_comments"]
Sort By
dropdownLayout: full
Condition: action = "get_posts"
Options: Hot, New, Top, Rising
Time Filter (for Top sort)
dropdownLayout: full
Condition: action = "get_posts" AND sort = "top"
Options: Day, Week, Month, Year
Number of Posts
short-inputPlaceholder: 10
Layout: full
Condition: action = "get_posts"
Post ID
short-inputPlaceholder: Enter post ID
Layout: full
Condition: action = "get_comments"
Sort Comments By
dropdownLayout: full
Condition: action = "get_comments"
Options: Confidence, Top, New, Controversial
Number of Comments
short-inputPlaceholder: 50
Layout: full
Condition: action = "get_comments"
Inputs (API)
action
stringRequired
The action to perform: get_posts or get_comments
subreddit
stringRequired
The name of the subreddit to fetch data from (without the r/ prefix)
sort
stringRequired
Sort method for posts: "hot", "new", "top", or "rising" (default: "hot")
time
stringOptional
Time filter for "top" sorted posts: "hour", "day", "week", "month", "year", or "all" (default: "day")
limit
numberOptional
Maximum number of posts to return (default: 10, max: 100)
postId
stringRequired
The ID of the Reddit post to fetch comments from
commentSort
stringOptional
Sort method for comments: "confidence", "top", "new", "controversial", "old", "random", "qa" (default: "confidence")
commentLimit
numberOptional
Maximum number of comments to return (default: 50, max: 100)
Outputs
Primary response type:
{
"subreddit": "string",
"posts": "json",
"post": "json",
"comments": "json"
}