N8N Tools Reddit
Actions2
- Posts Actions
Overview
This node enables interaction with Reddit's API specifically for managing posts within subreddits. The "Create Post" operation allows users to create a new text post in a specified subreddit. This is useful for automating content publishing on Reddit, such as posting announcements, updates, or engaging with communities programmatically.
Practical examples include:
- Automatically posting daily discussion threads to a community.
- Publishing alerts or notifications from other systems directly into relevant subreddits.
- Scheduling and managing multiple posts across different subreddits without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Subreddit | The name of the subreddit where the post will be created (e.g., AskReddit or r/AskReddit) |
| Title | The title of the post |
| Text | The text content/body of the post |
Output
The output is a JSON object representing the newly created Reddit post. It contains all the data returned by the Reddit API about the post, such as its ID, URL, creation time, author, and other metadata.
If multiple posts were created (in batch scenarios), the output would be an array of such JSON objects, each corresponding to one post.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for a third-party service ("N8N Tools API") that validates subscription and API key before proceeding.
- Requires OAuth2 credentials for Reddit API access, including an access token and optionally a user agent string.
- The node uses an internal Reddit API wrapper class to interact with Reddit endpoints.
Troubleshooting
- Invalid subscription or API key error: If the validation request to the external API fails with 401 or 403 status codes, it indicates invalid or expired API keys. Verify and update your API credentials.
- Reddit API errors: Errors from Reddit (e.g., insufficient permissions, rate limits, invalid subreddit names) will be thrown during execution. Ensure the OAuth2 token has appropriate scopes and the subreddit exists.
- Input validation: Make sure required fields like "Subreddit" and "Title" are provided and correctly formatted.
- Rate limiting: Reddit enforces rate limits; excessive requests may cause failures. Implement retries or delays if needed.
- Continue on Fail: If enabled, errors for individual items will be captured in the output JSON under an
errorfield instead of stopping the workflow.