ETReddit

Consume the Reddit API

Actions13

Overview

The ETReddit node for n8n allows you to interact with the Reddit API. Specifically, when using the Subreddit resource and the Get operation, this node retrieves information about a specified subreddit. You can choose to fetch either general information ("About") or the rules of the subreddit.

Common scenarios:

  • Automating the retrieval of subreddit details for reporting or monitoring.
  • Fetching subreddit rules to display or process them in other workflows.
  • Integrating subreddit metadata into dashboards or notification systems.

Practical examples:

  • Get the description and statistics of r/n8n to display on an internal tool.
  • Retrieve the posting rules of r/learnprogramming before submitting content automatically.

Properties

Name Type Meaning
Content options The type of subreddit content to retrieve. Options: "About" (general info), "Rules" (subreddit rules).
Subreddit string The name of the subreddit from which to retrieve the selected content.

Output

The output is a JSON object containing the requested subreddit data:

  • If Content is set to "About":
    The output will include general information about the subreddit, such as its title, description, subscriber count, creation date, etc.

  • If Content is set to "Rules":
    The output will contain the list of rules defined for the subreddit, typically including rule names, descriptions, and enforcement details.

Note: The exact structure of the output fields depends on the Reddit API's response for the chosen content type.

Dependencies

  • External Service: Reddit API
  • Credentials: Optionally uses redditOAuth2Api credentials if authentication is required for the endpoint.
  • n8n Configuration: No special environment variables are required unless accessing private subreddits or endpoints that require authentication.

Troubleshooting

Common issues:

  • Invalid subreddit name: If the provided subreddit does not exist, the node may return an error or empty result.
  • Missing credentials: Some subreddit information may require authentication; ensure credentials are configured if needed.
  • API rate limits: Excessive requests may be throttled by Reddit.

Error messages and resolutions:

  • "Subreddit not found": Check the spelling of the subreddit name.
  • "Unauthorized" or "Authentication required": Add and configure Reddit OAuth2 credentials in n8n.
  • "Rate limit exceeded": Reduce request frequency or wait before retrying.

Links and References

Discussion