Search Reddit Posts
search_redditSearch Reddit posts by keyword. Returns title, URL, subreddit, author, text, score, comment count, flair and video/gallery links. Sort by newest, relevance, hot, top or most commented, limit to a time window or one subreddit, and optionally include NSFW posts. 20 posts per page. Use search_reddit_comments to search comment text and reddit_subreddit_posts to browse a subreddit. Billed $0.003 per request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_reddit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, 1-12 (default: 1). 20 posts per page | |
| query | Yes | Search keyword (max 500 characters) | |
| sort_by | No | Sort order: "most_recent", "relevance", "hot", "top", or "most_commented" | most_recent |
| subreddit | No | Only posts from this subreddit, with or without r/ (e.g. Python) | |
| posted_ago | No | Only posts from this period: "1h", "24h", "7d", "30d", "12m", or "all" (default: all). Works with every sort_by | |
| include_nsfw | No | Include posts marked NSFW (left out by default) | |
| get_sentiment | No | Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints. |