reddit-api

Featured

Reddit API with PRAW (Python) and Snoowrap (Node.js)

API & Backend 694 stars 57 forks Updated today MIT

Install

View on GitHub

Quality Score: 98/100

Stars 20%
95
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Reddit API Skill For integrating Reddit data into applications - fetching posts, comments, subreddits, and user data. **Sources:** [Reddit API Docs](https://www.reddit.com/dev/api/) | [OAuth2 Wiki](https://github.com/reddit-archive/reddit/wiki/oauth2) | [PRAW Docs](https://praw.readthedocs.io/) --- ## Setup ### 1. Create Reddit App 1. Go to https://www.reddit.com/prefs/apps 2. Click "Create App" or "Create Another App" 3. Fill in: - **Name**: Your app name - **App type**: - `script` - For personal use / bots you control - `web app` - For server-side apps with user auth - `installed app` - For mobile/desktop apps - **Redirect URI**: `http://localhost:8000/callback` (for dev) 4. Note your `client_id` (under app name) and `client_secret` ### 2. Environment Variables ```bash # .env REDDIT_CLIENT_ID=your_client_id REDDIT_CLIENT_SECRET=your_client_secret REDDIT_USER_AGENT=YourApp/1.0 by YourUsername REDDIT_USERNAME=your_username # For script apps only REDDIT_PASSWORD=your_password # For script apps only ``` **User-Agent Format**: `<platform>:<app_id>:<version> (by /u/<username>)` --- ## Rate Limits | Tier | Limit | Notes | |------|-------|-------| | OAuth authenticated | 100 QPM | Per OAuth client ID | | Non-authenticated | Blocked | Must use OAuth | - Limits averaged over 10-minute window - Include `User-Agent` header to avoid blocks - Respect `X-Ratelimit-*` response headers --- ## Python: PRAW (Recommended) ### Installatio...

Details

Author
alinaqi
Repository
alinaqi/maggy
Created
5 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category