This n8n community node simplifies access to public Reddit data. Instead of relying on redirect URLs like the built-in Reddit OAuth2 node, this node uses a streamlined, application-only OAuth2 authentication flow (see application-only OAuth). This "userless" approach is ideal for retrieving public information and avoids the complexity of OAuth callbacks. Use this credential with an HTTP Request node to interact with the Reddit API.
The package also provides a Reddit Posts Trigger node which triggers a workflow when new posts have been published in a subreddit. Compared to a normal RSS trigger, Reddit Posts Trigger retrieves data from API which has more information and is easier to process.
n8n is a fair-code licensed workflow automation platform.
Follow the installation guide in the n8n community nodes documentation. In the GUI, install with the package name n8n-nodes-userless-reddit
.
You can also install manually. Check docker-compose.yaml for details
Go to https://www.reddit.com/prefs/apps and create an application. Choose type web app and fill redirect uri with a random URL. Then in the app page you will see the client id(blue) and client secret(red).
In the node "Reddit Application Only OAuth2 API". Fill in the Client ID and Client Secret from Reddit App and save the credentials.
TODO
You can make authenticated HTTP request to Reddit using HTTP request node and Reddit Application Only OAuth2 API. Simply add the credential to "authentication" section of HTTP request node.
You should have a configured Reddit Application Only OAuth2 API to use the trigger. You can enter the subreddit, max number of posts to fetch each time and polling interval.