REDDIT reads public Reddit. It has four modes, chosen by the payload: search (query), one post with its comments (url), a subreddit feed (action: "feed") and a user’s posts (action: "user_posts").
Search posts
Search returns up to 25 posts. For example:
preview is the start of the post’s text, up to 2,000 characters, when the post has text. An empty results in a completed task means Reddit found nothing.
Read a post and its comments
Send a posturl instead of query:
The task reads the post with its first page of comments, about 20-25 of them. For example:
Only the first page of comments is available.
commentLimit, which expands further comments, returns 422 VALIDATION_ERROR on self-serve plans.List newest posts
Both return
results in the search shape, up to limit posts (default 25).
Limits and errors
REDDITignoresmarkdown,rawResponseandsearchQueries. It rejectshtmlandanalysiswith422andcitationAnalysiswith400; see unsupported flags.- An invalid
subreddit,username,urlorcommentSortreturns422 VALIDATION_ERROR. - Other request errors are listed in Errors.
Related
- Web scrape for pages outside Reddit
- Async tasks