Reddit

Reddit is a network of communities based on people's interests. Find communities you're interested in, and become part of an online community!

Go to site
Explore
/
Apps
/
Reddit

Reddit API Integrations

Build and run workflows using the Reddit API. Use 1000s of source-available triggers and actions across 2,000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

  1. You could build a tool that monitors specific subreddits and notifies you when new posts match certain criteria.
  2. You could build a tool that analyzes the posts and comments in a given subreddit to generate statistics or visualizations about the topic.
  3. You could build a bot that automatically posts or comments in response to certain keywords or phrases.
  4. You could build a tool that helps manage your Reddit account by automating tasks like posting, messaging, or voting.
  5. You could build a tool that extracts data from Reddit posts and comments for use in other applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    reddit: {
      type: "app",
      app: "reddit",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://oauth.reddit.com/api/v1/me`,
      headers: {
        Authorization: `Bearer ${this.reddit.$auth.oauth_access_token}`,
      },
    })
  },
})

Choose an API to Connect with Reddit API

1
-
24
of
2,000+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Filter
Filter
Specify a condition that your workflow must meet and whether you'd like to proceed or end workflow execution.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Airtable (OAuth)
Airtable (OAuth)
Airtable is a low-code platform to build next-gen apps. Move beyond rigid tools, operationalize your critical data, and reimagine workflows with AI.
Zoom
Zoom
Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars.
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Gmail
Gmail
Gmail offers private and secure email by Google at no cost, for business and consumer accounts.
Gmail (Developer App)
Gmail (Developer App)
Private and secure email by Google at no cost, for business and consumer accounts. Use this app to connect your own developer account credentials.
Email
Email
Trigger workflows on new emails, and send emails to yourself as part of a Pipedream workflow.
Delay
Delay
Delay, pause, suspend, or have the execution of your workflow wait for as little as one millisecond, or as long as one year.
Go
Go
Anything you can do in Go, you can do in a Pipedream Workflow. You can use any of Go packages available with a simple import.
Premium
Zoom Admin
Zoom Admin
Video conferencing (includes account-level scopes) for Zoom Admins.
Twilio
Twilio
Twilio is a cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale.
Bash
Bash
Run any Bash in a Pipedream step within your workflow, including making curl requests.

Getting Started

To get started, you will need to create an app within Reddit. The steps are outlined below:

Create a Reddit app

  1. Sign in to your Reddit account, and navigate to the applications page.
  2. Name the app "Pipedream", or another name of your choosing.
  3. Select web app.
  4. Add a description, e.g "This app will be used to connect Pipedream to Reddit."
  5. Add an "about url".
  6. Under "redirect uri", enter https://api.pipedream.com/connect/oauth/oa_G7AioA/callback
  7. Click create app.

Create App

Register your new app on Reddit

In order to maintain access to the Reddit APIs, you will need to register your app.

  1. Navigate to the Submit a request form.
  2. Fill out the form under API Support, and select I want to register to use the free tier of the Reddit API.
drawing

Connect your Reddit app with Pipedream using your client id and client secret

  1. In the new app you have created, your client id is located underneath the app name.
  2. The client secret is located next to secret.

client id

  1. When connecting the Reddit app in Pipedream, copy and paste your client id along with your client secret.
  2. Click Connect and your custom Reddit app should be integrated into Pipedream!
Search Post with Reddit API on New Requests from HTTP / Webhook API
HTTP / Webhook + Reddit
 
Try it
Add Single Row with Google Sheets API on New hot posts on a subreddit from Reddit API
Reddit + Google Sheets
 
Try it
Search Post with Reddit API on New Item in Feed from RSS API
RSS + Reddit
 
Try it
Search Post with Reddit API on New Message from Discord API
Discord + Reddit
 
Try it
Search Post with Reddit API on New Message In Channels from Slack API
Slack + Reddit
 
Try it
New Comments by User from the Reddit API

Emit new event each time a user posts a new comment.

 
Try it
New comments on a post from the Reddit API

Emit new event each time a new comment is added to a subreddit.

 
Try it
New hot posts on a subreddit from the Reddit API

Emit new event each time a new hot post is added to the top 10 items in a subreddit.

 
Try it
New Links by User from the Reddit API

Emit new event each time a user posts a new link.

 
Try it
New Links on a Subreddit from the Reddit API

Emit new event each time a new link is added to a subreddit

 
Try it
List Comments in a Post with the Reddit API

List comments for a specific post. See the docs here

 
Try it
List Subreddits by Query with the Reddit API

List subreddits based on a search criteria. See the docs here

 
Try it
Search Post with the Reddit API

Search posts by title. See the docs here

 
Try it
Submit a Comment with the Reddit API

Submit a new comment or reply to a message. See the docs here

 
Try it
Submit a Post with the Reddit API

Create a post to a subreddit. See the docs here

 
Try it

Authentication

Reddit uses OAuth authentication. When you connect your Reddit account, Pipedream will open a popup window where you can sign into Reddit and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Reddit API.

Pipedream requests the following authorization scopes when you connect your account:

accountidentityedithistoryreadsubmitmysubredditssubscribe
OAuth Request Configurations:
  1. authorization
    GEThttps://www.reddit.com/api/v1/authorize?client_id={{custom_fields.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}&duration=permanent
  2. accessToken
    POSThttps://www.reddit.com/api/v1/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://www.reddit.com/api/v1/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    grant_type=refresh_token&refresh_token={{oauth.refresh_token}}

Community Posts

Building a Reddit Workflow with Pipedream
Building a Reddit Workflow with Pipedream
Almost four years ago I blogged about a demo I built using Reddit's API. The demo was a multi-user application that made use of Mongo for persistence and Passport.js for user authentication. You would login, select subreddit's to subscribe to, and then once a day it would email you the new posts from that subreddit. This was built in a "traditional" Node.js style with a server running full time to process requests. I thought it would be fun to build this again (although slightly different) using Pipedream's support for working with the Reddit API. I built two different versions of a simple workflow I'd like to share below.
Updating my Reddit Workflow with Pipedream
Updating my Reddit Workflow with Pipedream
Back almost exactly a month ago, I blogged about using Pipedream to build a Reddit email report. The idea was that I wanted a daily email of posts from my subscribed subreddits for the past 24 hours of content. The implementation was a bit complex. I used one workflow to handle "get a days worth of content from subreddit" as a general "API" and another workflow connected to my authentication. It handles getting my subscriptions, hitting the API, and then generating the email. This worked well, but after a while of actually getting the email, I noticed some problems. So I decided to fix that.