search_reddit
Search Reddit posts by keyword, or subreddits/users via type. Limit results to a subreddit and apply sort and time filters.
Instructions
Search Reddit for posts — or subreddits/users via type — optionally scoped to one subreddit, with sort and time filters. Read-only; works anonymously. Returns a page of results (title, subreddit, author, score, comments, link) plus an after cursor for paging. Use this to find content by keyword; use browse_subreddit / get_top_posts to list a known subreddit's feed instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order. Prefer 'relevance' (default) for finding posts about a topic. Use 'top'/'hot' only for what's currently popular and 'new' for the latest — these rank by karma/recency and, especially combined with a narrow time_filter, can surface loosely-matching posts over the best topical results. | relevance |
| type | No | What to search for: 'link' = posts (default), 'sr' = subreddits, 'user' = users. | link |
| after | No | Forward pagination cursor: the `after` value from a previous call. Omit for the first page. | |
| limit | No | How many results to return, 1–100 (default 10). | |
| query | Yes | Search terms; supports Reddit operators (quotes for exact phrases, author:name, self:yes). Must be non-empty. | |
| subreddit | No | Restrict results to this subreddit, without the r/ prefix (e.g. 'python'). Omit to search all of Reddit. | |
| time_filter | No | Restrict to results from this recent window (e.g. 'week'). Default 'all' (no time limit). | all |