Reddit Posts Trigger
AI-generatedOverview
This node is a trigger that starts an n8n workflow whenever new posts are published in a specified subreddit on Reddit. It periodically polls the Reddit API to check for the latest posts and triggers the workflow with the new data. This is useful for automating tasks based on fresh content from Reddit communities, such as monitoring discussions, aggregating posts, or triggering alerts when specific topics appear.
Practical examples:
- Automatically collect new posts from a programming subreddit like "Python" to analyze trends.
- Trigger notifications or messages in other apps when new posts appear in a niche community.
- Aggregate recent posts for reporting or content curation workflows.
Properties
| Name | Meaning |
|---|---|
| Subreddit | Name of the subreddit to monitor (e.g., "Python"). This is required. |
| Limit | Maximum number of posts to fetch per poll. Must be at least 1. Defaults to 10. |
Output
The node outputs an array of JSON objects representing Reddit posts. Each object corresponds to a post and contains detailed information as returned by the Reddit API, including but not limited to:
- Post ID
- Title
- Author
- Creation timestamp
- Content or text
- URL
- Other metadata related to the post
If no new posts are found since the last poll, the node does not output any data (returns null).
No binary data is output by this node.
Dependencies
- Requires an API authentication token configured via an OAuth2 application-only credential for Reddit.
- The node uses Reddit's OAuth2 API endpoint
https://oauth.reddit.comto fetch new posts. - The user must configure the Reddit API credentials in n8n before using this node.
Troubleshooting
Common issues:
- Invalid or missing Reddit API credentials will cause authentication errors.
- Specifying a non-existent or private subreddit may result in empty results or errors.
- Rate limiting by Reddit API if polling too frequently.
Error messages:
- Errors thrown during HTTP requests to Reddit API will be surfaced as node operation errors.
- If the node fails to authenticate, ensure the OAuth2 credentials are correctly set up and have proper permissions.
- If no posts are returned, verify the subreddit name and that it has recent posts.