Reddit | Yext Hitchhikers Platform
Overview
This source uses the Reddit API for these operations:
- Fetch Posts
- Fetch Comments
Fetch Posts
https://oauth.reddit.com/r/${{subreddit}}.json
Fetch a list of all posts within a subreddit with a request to the subreddit endpoint; this returns data about each post.
Fields
data.name
data.selftext_html
data.title
data.author
data.url
Fetch Comments
https://www.reddit.com/r/${{subreddit}}/comments.json
Fetch comments on posts within a subreddit with a request to the comments endpoint.
Note: The first object returned is the original post itself, denoted by the kind value t3
. In this call, comment fields are stored as objects with the kind value t1
.
Fields
data.name
data.body_html
data.linkid
data.permalink
data.link_permalink
link_id
parent_id
Authentication
Reddit requires OAuth 2.0 for use of their API. Reddit is a built-in OAuth provider in the Yext platform. Each user will need to link their Reddit account for authenticating and authorizing requests.
Scopes
Pagination
Reddit utilizes cursor pagination.
Page Key | after |
Cursor | data.after |
Cursor Type | token |
Detect Cursor In | Response Body |
Limits and Other Info
For GET requests, the rate limit is 60 requests per minute. See Reddit documentation on Github for more documentation on rate limit rules.