ETReddit

Consume the Reddit API

Actions13

Overview

The ETReddit node allows you to interact with the Reddit API from within n8n workflows. Specifically, when using the Post resource and the Delete operation, this node enables you to delete a Reddit post by specifying its unique Post ID. This is useful for automating moderation tasks, managing your own posts, or integrating Reddit content management into larger automation pipelines.

Example scenarios:

  • Automatically removing posts that meet certain criteria (e.g., flagged by another system).
  • Bulk-deleting old or unwanted posts from a subreddit or user account.
  • Integrating Reddit post deletion into a broader content moderation workflow.

Properties

Name Type Meaning
Post ID String ID of the post to delete. Found in the post URL: /r/[subreddit_name]/comments/[post_id]/[post_title]

Output

The output will be a JSON object reflecting the result of the delete operation. Typically, for a successful deletion, Reddit's API may return an empty object or a status confirmation. The exact structure depends on Reddit's API response, but you can expect:

{}

or

{"status": "success"}

If there is an error (e.g., invalid Post ID, insufficient permissions), the output will contain error details.

Dependencies

  • Reddit Account: You must have a Reddit account with permission to delete the specified post.
  • Credentials: The node optionally uses redditOAuth2Api credentials for authentication. Ensure these are configured in n8n if required for your use case.
  • Reddit API Access: The node interacts with Reddit's official API endpoints.

Troubleshooting

Common Issues:

  • Invalid Post ID: If the provided Post ID does not exist or is mistyped, the node will fail to delete the post.
  • Insufficient Permissions: Attempting to delete a post you do not own or moderate will result in an authorization error.
  • Missing Credentials: If OAuth2 credentials are not set up or are expired, the node may fail to authenticate.

Common Error Messages:

  • "Not Found": The Post ID does not correspond to any existing post.
  • "Forbidden" or "Unauthorized": Your credentials do not allow you to delete this post. Check that you are logged in as the correct user and have the necessary permissions.
  • "Invalid Credentials": The Reddit OAuth2 credentials are missing or incorrect. Reconfigure your credentials in n8n.

How to resolve:

  • Double-check the Post ID format and value.
  • Ensure you have the correct Reddit account connected in n8n.
  • Refresh or reauthorize your Reddit OAuth2 credentials if needed.

Links and References

Discussion