GnistAI GnistAI
Log in

Reddit

Search Reddit posts, browse subreddits, and read comments. Find discussions, opinions, and community insights on any topic.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Media

Data source: Reddit (reddit.com)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/reddit/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-reddit": {
      "url": "https://context.gnist.ai/mcp/reddit/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/reddit/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_reddit", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/reddit/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/reddit/search_reddit?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/reddit/search_reddit",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc reddit

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

search_reddit
Search Reddit posts by keyword, optionally within a specific subreddit.
ParameterTypeRequiredDescription
querystringrequiredSearch terms (e.g. "machine learning", "Python async"). Searches across post titles and body text.
subredditanyoptionalRestrict search to a specific subreddit (e.g. "python", "MachineLearning"). Optional.
sortstringoptionalSort order: relevance, hot, top, new, comments. Default: relevance. (default: "relevance")
time_filterstringoptionalTime filter: hour, day, week, month, year, all. Default: all. (default: "all")
limitintegeroptionalNumber of results (1-25, default 10). (default: 10)
get_subreddit_posts
Get posts from a specific subreddit sorted by hot, new, top, or rising.
ParameterTypeRequiredDescription
subredditstringrequiredSubreddit name without r/ prefix (e.g. "python", "worldnews", "AskReddit").
sortstringoptionalSort: hot, new, top, rising, controversial. Default: hot. (default: "hot")
time_filterstringoptionalTime filter for top/controversial: hour, day, week, month, year, all. (default: "day")
limitintegeroptionalNumber of posts (1-25, default 10). (default: 10)
get_subreddit_info
Get metadata about a subreddit — name, description, subscribers, active users, etc.
ParameterTypeRequiredDescription
subredditstringrequiredSubreddit name without r/ prefix (e.g. "python", "worldnews").
get_reddit_post_comments
Get a Reddit post and its top-level comments by post ID.
ParameterTypeRequiredDescription
post_idstringrequiredReddit post ID (the short alphanumeric ID, e.g. "1abc2d").
sortstringoptionalSort: top, best, new, controversial, old, qa. Default: top. (default: "top")
limitintegeroptionalNumber of comments (1-50, default 10). (default: 10)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related