Actions13
Overview
The ETReddit node enables n8n workflows to interact with the Reddit API, specifically to retrieve multiple posts from a specified subreddit. The "Post" resource with the "Get Many" operation allows users to fetch lists of posts based on various filters such as category (top, hot, new, rising), and control the number of results returned. This is useful for automating content curation, monitoring subreddit activity, or integrating Reddit data into other systems.
Example scenarios:
- Automatically collect top posts from a subreddit for daily reporting.
- Monitor new posts in a community for moderation or sentiment analysis.
- Aggregate trending topics across multiple subreddits.
Properties
| Name | Type | Meaning |
|---|---|---|
| Subreddit | String | The name of the subreddit to retrieve posts from. |
| Return All | Boolean | Whether to return all available results or limit the number of results. |
| Limit | Number | Maximum number of results to return (only shown if "Return All" is false). |
| Filters | Collection | Additional options to filter the posts. |
| └─ Category | Options | Category of posts to retrieve: Top Posts, Hot Posts, New Posts, or Rising Posts. |
Output
The output consists of an array of JSON objects, each representing a Reddit post retrieved from the specified subreddit. Each object typically contains fields such as:
{
"id": "string",
"title": "string",
"author": "string",
"created_utc": "number",
"url": "string",
"score": "number",
"num_comments": "number",
// ...other Reddit post fields
}
Note: The exact structure may vary depending on the Reddit API response.
Dependencies
- Reddit API: Requires access to Reddit's public API endpoints.
- Credentials: May require Reddit OAuth2 credentials (
redditOAuth2Api) for certain operations or higher rate limits. - n8n Configuration: No special environment variables are required unless using authenticated endpoints.
Troubleshooting
- Invalid Subreddit Name: If the provided subreddit does not exist or is misspelled, the node may return an error or empty result set. Double-check the subreddit name.
- API Rate Limits: Reddit enforces rate limits. Excessive requests may result in temporary bans or errors. Consider limiting frequency or using authentication.
- Missing Credentials: Some subreddits or actions may require authentication. Ensure that Reddit OAuth2 credentials are configured if needed.
- Empty Results: If filters are too restrictive or the subreddit is inactive, you may receive no posts.