Actions23
Reddit Subreddit
AI-generatedSummary
Fetches up to 20 non-NSFW posts from a specified subreddit using Reddit’s JSON listing endpoint. Choose a sort order and time filter, then use the returned post details as individual n8n items or collect them in one item.
Inputs
- Subreddit Name (required) — Subreddit name without the r/ prefix.
- Sort By — Listing order: Hot (default), New, Top, Rising, or Controversial.
- Time Filter — Time range for the listing: All Time (default), Past Day, Past Week, Past Month, or Past Year.
- Return as Single Item — When enabled, returns one item containing a results array and totalResults count; otherwise each post is a separate item.
Output shape
A list of post items, or one item containing a results array when Return as Single Item is enabled.
Each post includes title, Reddit URL, snippet (up to 500 characters of self-text), source, score, author, subreddit, and comment count. Posts marked over_18 are skipped. The operation requests at most 20 posts; the time filter is sent with the listing request.