Skip to content
Back to skills

Reddit

ASecurity

Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API.

  • 1,953 stars
  • 0 votes
  • 1 copy
  • 26 views
  • Added February 7, 2026
ai-agentspythonbashapi

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned February 10, 2026

npx -y skills add ReScienceLab/opc-skills --skill reddit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reddit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reddit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/resciencelab-reddit/badge)](https://www.skillsdirectory.com/skills/resciencelab-reddit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reddit
description: Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API.
triggers:
  - "reddit"
  - "subreddit"
  - "r/"
---

# 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**:
```bash
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
```

## Commands

All commands run from the skill directory.

### Subreddit Posts
```bash
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
```bash
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
```bash
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
```

### Post & Comments
```bash
python3 scripts/get_post.py abc123                       # Get post by ID
python3 scripts/get_post.py abc123 --comments 50         # With more comments
```

### User Profile
```bash
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 `.json` to any Reddit URL
- **Rate Limit**: 100 requests/minute
- **Docs**: https://www.reddit.com/dev/api

Files in this skill

  • .claude-plugin/plugin.json532 B
  • SKILL.md2 KB
  • scripts/credential.py303 B
  • scripts/get_post.py1.3 KB
  • scripts/get_posts.py1.4 KB
  • scripts/get_subreddit.py694 B
  • scripts/get_user.py1 KB
  • scripts/reddit_api.py5.8 KB
  • scripts/search_posts.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.