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.namedata.selftext_htmldata.titledata.authordata.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.namedata.body_htmldata.linkiddata.permalinkdata.link_permalinklink_idparent_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.