search_posts
Find Reddit posts by subreddit, author, keyword, or date range. Read-only access uses Arctic Shift archive, no Reddit account needed.
Instructions
Find posts by subreddit, author, keyword or date range.
Keyword parameters (query, title, selftext) are only accepted together
with subreddit or author, and can still time out on very busy ones - a
date range makes them reliable.
Caveat: Arctic Shift archives posts the moment they appear and backfills vote data after ~36h, so score and num_comments on anything newer than that are placeholders (usually 1 and 0) - never report them as real counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the raw Arctic Shift JSON instead of markdown. | |
| url | No | Prefix match on the post's outbound URL. | |
| sort | No | `asc` or `desc` by creation time. | |
| after | No | Earliest creation date: epoch, ISO date, or relative like `3d` / `1year`. | |
| limit | No | Number of posts to return, 1-100. | |
| query | No | Keyword search over title and selftext. Needs `subreddit` or `author`. | |
| title | No | Keyword search over the title only. Needs `subreddit` or `author`. | |
| author | No | Restrict to one author. | |
| before | No | Latest creation date, same formats as `after`. | |
| fields | No | Comma separated field allowlist to shrink the response. | |
| selftext | No | Keyword search over the body only. Needs `subreddit` or `author`. | |
| max_chars | No | Character budget for the rendered output. | |
| subreddit | No | Restrict to one subreddit. |