search
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.
Usage-based billing; Default request estimate: $0.00188 USD (not a fixed price). Account-specific pricing and final settlement may differ.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort by Provider reference (supplier schema): `{"enum":["relevance","new","top","comment_count"],"type":"string"}`. | |
| time | No | ||
| trim | No | Set to true for a trimmed down version of the response | |
| after | No | Used to paginate to next page | |
| count | No | ||
| limit | No | ||
| query | No | Search query | |
| filter | No | Search posts or comments | |
| trimmed | No | ||
| timeframe | No | Timeframe Provider reference (supplier schema): `{"enum":["all","day","week","month","year"],"type":"string"}`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||