resciencelab/opc-skills
Search and retrieve Reddit posts, comments, subreddit info, and user profiles via the public JSON API.
What is reddit?
Access Reddit content without authentication using the public JSON API. Retrieve posts by subreddit or search, fetch comments, get subreddit metadata, and look up user profiles. Use this when the user mentions Reddit, a specific subreddit, or r/ links.
- Fetch hot, new, top, rising, or controversial posts from any subreddit with customizable sorting and time filters
- Search across Reddit for posts matching keywords, optionally scoped to specific subreddits
- Retrieve subreddit information including description, subscriber count, and metadata
- Get individual posts with associated comments (configurable comment count)
- Look up user profiles and optionally include their recent posts
How to install reddit
npx skills add https://github.com/resciencelab/opc-skills --skill redditHow to use reddit
- 1.Run the quick check to verify the skill works: `python3 scripts/get_posts.py python --limit 3`
- 2.Use `get_posts.py` to fetch posts from a subreddit, specifying sort order (hot, new, top, rising, controversial) and optional time filter
- 3.Use `search_posts.py` to search across Reddit or within a specific subreddit by keyword
- 4.Use `get_subreddit.py` to retrieve metadata about a subreddit
- 5.Use `get_post.py` with a post ID to fetch a specific post and its comments
- 6.Use `get_user.py` to look up a user profile and optionally their recent posts
Use cases
- Find trending discussions or recent posts in a specific subreddit like r/python or r/ClaudeAI
- Search for posts about a topic across all of Reddit (e.g., 'AI agent', 'MCP server')
- Get subreddit rules, description, and community stats before posting or recommending
- Retrieve a specific post and its top comments for analysis or citation
- Research a Reddit user's posting history and profile information
- Researchers gathering Reddit data or community insights
- Developers looking for discussions about specific tools or technologies
- Content creators researching trending topics or community sentiment
- Anyone needing to fetch public Reddit content programmatically
reddit FAQ
No. Reddit's public JSON API requires no authentication or API key. The skill uses the public endpoints directly.
The public API allows 100 requests per minute. Respect this limit to avoid temporary blocks.
Post IDs are returned by get_posts.py and search_posts.py. You can also extract them from Reddit URLs (e.g., reddit.com/r/python/comments/abc123/..., where 'abc123' is the ID).
Yes. Use `search_posts.py` with the `--subreddit` flag to limit results to a single subreddit (e.g., `--subreddit ClaudeAI`).
Sort options are: hot (default), new, top, rising, and controversial. Time filters (hour, day, week, month, year, all) apply only to top and controversial sorts.
Full instructions (SKILL.md)
Source of truth, from resciencelab/opc-skills.
name: reddit description: Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API. Use when user mentions Reddit, a subreddit, or r/ links.
Reddit Skill
Get posts, comments, subreddit info, and user profiles from Reddit via the public JSON API.
Prerequisites
No API key required! Reddit's public JSON API works without authentication.
Quick Check:
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
Commands
All commands run from the skill directory.
Subreddit Posts
python3 scripts/get_posts.py python --limit 20 # Hot posts (default)
python3 scripts/get_posts.py python --sort new --limit 20
python3 scripts/get_posts.py python --sort top --time week
python3 scripts/get_posts.py python --sort top --time all --limit 10
Search Posts
python3 scripts/search_posts.py "AI agent" --limit 20
python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10
python3 scripts/search_posts.py "async python" --sort top --time year
Subreddit Info
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
Post & Comments
python3 scripts/get_post.py abc123 # Get post by ID
python3 scripts/get_post.py abc123 --comments 50 # With more comments
User Profile
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # Include recent posts
Sort Options
| Sort | Description | Time Options |
|---|---|---|
hot | Trending posts (default) | - |
new | Latest posts | - |
top | Highest voted | hour, day, week, month, year, all |
rising | Gaining traction | - |
controversial | Mixed votes | hour, day, week, month, year, all |
API Info
- Method: Public JSON API (no auth needed)
- Trick: Append
.jsonto any Reddit URL - Rate Limit: 100 requests/minute
- Docs: https://www.reddit.com/dev/api
Related skills
More from resciencelab/opc-skills and the wider catalog.

requesthunt
Generate user demand research reports by analyzing real feedback from Reddit, X, GitHub, YouTube, LinkedIn, and Amazon.

seo-geo
Optimize websites for AI search engines (ChatGPT, Perplexity, Gemini) and traditional search (Google, Bing).

skill-name
Placeholder skill template for agent automation workflows.

Search and retrieve Twitter/X content including users, tweets, followers, communities, spaces, and trends.

resend-design-skills
Route to Resend's brand guidelines, design system, marketing page patterns, and design audit tools.

agent-email-inbox
Secure email inbox for AI agents with sender validation and sandboxed processing.