---
id: ssh2-reddit
name: "reddit"
url: https://skills.yangsir.net/skill/ssh2-reddit
author: resciencelab
domain: data-ai
tags: ["reddit-marketing", "community-management", "social-media-strategy", "content-promotion", "analytics"]
install_count: 2400
rating: 4.30 (48 reviews)
github: https://github.com/resciencelab/opc-skills
---

# reddit

> 通过公共JSON API搜索并检索Reddit内容，包括帖子、评论、社区信息和用户资料。

**Stats**: 2,400 installs · 4.3/5 (48 reviews)

## Before / After 对比

### 深度挖掘Reddit内容与用户洞察

## Readme

# 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


---
*Source: https://skills.yangsir.net/skill/ssh2-reddit*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-reddit/markdown*