N8N Tools Reddit icon

N8N Tools Reddit

Interact with Reddit API - Posts, Comments, Subreddits, Users, Moderation, and Search

Actions2

Overview

This node interacts with Reddit to retrieve posts from a specified subreddit. It allows users to fetch posts sorted by different criteria such as "Hot", "New", "Rising", "Top", or "Best". This is useful for scenarios where you want to monitor trending content, gather data for analysis, or automate workflows based on Reddit activity.

For example, you could use this node to:

  • Automatically pull the top 25 hot posts from r/AskReddit every hour.
  • Collect new posts from a niche subreddit to feed into a content curation system.
  • Monitor rising posts in a community to detect emerging trends.

Properties

Name Meaning
Subreddit The name of the subreddit to fetch posts from (e.g., AskReddit or r/AskReddit).
Sort How to sort the posts. Options: Hot, New, Rising, Top, Best.
Limit Maximum number of posts to return (up to 100). Defaults to 25.

Output

The output is an array of JSON objects representing Reddit posts. Each object corresponds to one post and contains all standard Reddit post fields such as title, author, score, comments count, URL, etc.

Example structure of one item in the output array:

{
  "json": {
    "id": "post_id",
    "title": "Post title",
    "author": "username",
    "score": 123,
    "num_comments": 45,
    "url": "https://reddit.com/...",
    ...
  }
}

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for a third-party service ("N8N Tools API") that validates usage.
  • Requires OAuth2 credentials for Reddit API access.
  • The node uses a helper library internally to interact with Reddit's API.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid subscription or API key error: If you see an error about invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
  • Authentication errors: Ensure your Reddit OAuth2 credentials are valid and have the required scopes.
  • Limit exceeded: The maximum allowed limit is 100 posts; setting a higher number will be capped automatically.
  • Subreddit not found or private: If the subreddit does not exist or is private, the node may return an error or empty results.
  • Network issues: Connectivity problems can cause HTTP request failures; check your network and proxy settings if applicable.

Links and References

Discussion