ETReddit

Consume the Reddit API

Actions13

Overview

This node allows you to create a new post in a specified subreddit on Reddit. It supports different types of posts, including text, link, image, and video uploads. This is useful for automating content publishing workflows, cross-posting from other platforms, or scheduling regular posts to Reddit communities.

Practical examples:

  • Automatically share blog articles as link posts to a subreddit.
  • Post daily discussion threads as text posts.
  • Upload images or videos from another workflow step directly to Reddit.

Properties

Name Type Meaning
Subreddit String The subreddit where the post will be created (e.g., "n8n").
Kind Options The type of post: Text Post, Link Post, Image Post, or Upload Image/Video Post.
Title String The title of the post (up to 300 characters).
URL String The URL to share (required for Link and Image posts).
Text String The body text of the post (required for Text posts; Markdown supported).
Resubmit Boolean If true, allows reposting a URL even if it was already posted before.
Video Binary Data String The name of the input binary property containing the video file (for Upload posts).
Thumbnail Binary Data String The name of the input binary property containing the thumbnail image (for Upload posts).

Output

The output will contain the result of the Reddit API call for creating a post. The structure typically includes:

{
  "json": {
    "id": "post_id",
    "name": "t3_postid",
    "url": "https://reddit.com/r/subreddit/comments/postid/title/",
    "title": "Post Title",
    "subreddit": "subreddit",
    "author": "username",
    ...
  }
}
  • For video/image uploads, binary data may be included in the output if relevant, representing the uploaded media.

Dependencies

  • Reddit API: Requires access to Reddit's API.
  • Credentials: May require a configured redditOAuth2Api credential in n8n for authentication.

Troubleshooting

  • Authentication errors: Ensure that Reddit OAuth credentials are correctly set up in n8n.
  • Missing required fields: Depending on the post kind, certain fields (like URL, Text, Video, or Thumbnail) are mandatory. Make sure all required properties are provided.
  • Resubmission error: If "Resubmit" is false and the same URL has been posted before, Reddit may reject the post with an error.
  • API rate limits: Reddit enforces rate limits; excessive posting may result in temporary blocks.

Links and References

Discussion