with Reddit and Ideal Postcodes?
Emit new event each time a new comment is added to a subreddit.
Emit new event each time a new hot post is added to the top 10 items in a subreddit.
Emit new event each time a new link is added to a subreddit
Validate email addresses using Ideal Postcodes. See the documentation
List subreddits based on a search criteria. See the docs here
Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name, and id. See the documentation
Validates a phone number and returns information about it. See the documentation
The Reddit API unlocks the potential to automate interactions with one of the largest online communities. With Pipedream, you can tap into the Reddit ecosystem to monitor trends, engage with audiences, or curate content. Whether it's tracking mentions of your brand, auto-posting to subreddits, or gathering data for analysis, the API offers a breadth of functionalities — from getting posts and comments to creating new threads and managing account settings.
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ideal_postcodes: {
type: "app",
app: "ideal_postcodes",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses`,
params: {
"q": `parkside`,
api_key: `${this.ideal_postcodes.$auth.api_key}`,
},
})
},
})