ETReddit

Consume the Reddit API

Actions13

Overview

The ETReddit node for n8n allows you to interact with the Reddit API. Specifically, when using the Resource: Post and Operation: Get, this node retrieves detailed information about a specific Reddit post from a given subreddit. This is useful for workflows that need to fetch Reddit content for analysis, archiving, monitoring, or triggering further automation based on post data.

Practical examples:

  • Automatically collect posts from a subreddit for sentiment analysis.
  • Archive specific Reddit posts in a database or spreadsheet.
  • Trigger notifications or actions when a particular post is updated or matches certain criteria.

Properties

Name Type Meaning
Subreddit String The name of the subreddit from which to retrieve the post (e.g., "n8n").
Post ID String The unique identifier of the post to retrieve. Found in the post URL: /r/[subreddit_name]/comments/[post_id]/[post_title]. Example: l0me7x

Output

The node outputs a JSON object containing the details of the requested Reddit post. The exact structure depends on the Reddit API response, but typically includes fields such as:

{
  "id": "l0me7x",
  "title": "Example Post Title",
  "author": "username",
  "subreddit": "n8n",
  "selftext": "Post content...",
  "url": "https://www.reddit.com/r/n8n/comments/l0me7x/example_post_title/",
  "created_utc": 1610000000,
  // ...other Reddit post fields
}
  • If the node supports binary output (e.g., for media), it will provide the relevant file or attachment in the binary property, but for this operation, the output is primarily JSON.

Dependencies

  • Reddit API: Requires access to Reddit's public API.
  • Credentials: Optionally uses redditOAuth2Api credentials if authentication is needed for private or rate-limited endpoints.
  • n8n Configuration: No special environment variables are required unless using authenticated endpoints.

Troubleshooting

Common issues:

  • Invalid Subreddit or Post ID: If the subreddit or post ID is incorrect, the node may return an error or empty result. Double-check the values.
  • Rate Limiting: Reddit enforces rate limits. Too many requests in a short period may result in errors; try again later.
  • Authentication Errors: If accessing private subreddits or posts, ensure valid OAuth2 credentials are configured.
  • API Changes: If Reddit changes its API, some fields may be missing or renamed.

Error messages:

  • "Not Found": The specified post or subreddit does not exist. Verify your input.
  • "Unauthorized": Authentication is required or failed. Check your credentials.
  • "Too Many Requests": You have hit Reddit's rate limit. Wait before retrying.

Links and References

Discussion