ETReddit

Consume the Reddit API

Actions13

Overview

The ETReddit node, when configured with the "Post Comment" resource and the "Delete" operation, allows users to delete a specific comment from Reddit. This is useful for automating moderation tasks, cleaning up unwanted or inappropriate comments, or managing your own Reddit content programmatically.

Practical examples:

  • Automatically remove spam comments detected by another workflow.
  • Enable moderators to bulk-delete comments matching certain criteria.
  • Allow users to retract their own comments via an automated process.

Properties

Name Type Meaning
Comment ID String ID of the comment to remove. Found in the comment URL: /r/[subreddit_name]/comments/[post_id]/[post_title]/[comment_id] (e.g., gla7fmt).

Output

The output will be a JSON object reflecting the result of the delete operation. Typically, this may include:

  • A status indicator (success/failure).
  • Any error messages if the deletion failed.
  • The ID of the deleted comment.

Note: The exact structure depends on the Reddit API's response to a delete request.

Dependencies

  • Reddit OAuth2 API credentials are required for authentication. You must configure the redditOAuth2Api credential in n8n.
  • Access permissions: The authenticated user must have permission to delete the specified comment (i.e., must be the author or a moderator).

Troubleshooting

Common issues:

  • Invalid Comment ID: If the provided Comment ID does not exist or is malformed, the node will fail. Double-check the ID format.
  • Insufficient Permissions: If the authenticated user is not allowed to delete the comment, an error will occur. Ensure you are logged in as the correct user or moderator.
  • Authentication Errors: Missing or expired Reddit OAuth2 credentials will prevent the node from working.

Common error messages:

  • "Comment not found": The Comment ID does not exist.
  • "Permission denied": The user does not have rights to delete the comment.
  • "Authentication required": No valid Reddit OAuth2 credentials provided.

Links and References

Discussion