reddit_subreddit_search
Search posts inside one subreddit — not subreddit discovery. Same sort/timeframe as site-wide Search. Flat 2 credits. Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Keywords or search query (min 2 characters). | |
| url | Yes | Subreddit URL, r/name, or bare name, e.g. r/technology. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble. | |
| sort | No | relevance (default) | new | top | hot | comments (alias: comment_count). | |
| cache | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. | |
| limit | No | Max items to return (default 25, max 200). Flat 2 credits per call. | |
| cursor | No | Pagination cursor. Leave empty for the first page; then pass the nextCursor value returned in the previous response. | |
| timeframe | No | For sort=top or comments: hour | day | week | month | year | all (default all). |