Search Reddit
get_reddit_searchSearches every public subreddit for posts matching a query and returns posts plus an after token to page. Each post carries title, author, selftext, selftext_html, subreddit, score, ups, downs, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink, subreddit_subscribers, is_video, over_18 and spoiler. sort accepts relevance, new, top and comment_count, and timeframe narrows the window. Measured at 8 to 16 seconds and 8 to 26 KB, the slowest endpoint here. To stay inside one community use get_reddit_subreddit_search, which is faster and pages with cursor rather than after; to read one post's discussion use get_reddit_post_comments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort by | |
| trim | No | Set to true for a trimmed down version of the response | |
| after | No | Used to paginate to next page | |
| query | Yes | Search query | |
| timeframe | No | Timeframe |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||