reddit-api

Fetch, search, and submit Reddit content via Python PRAW, Snoowrap, or OAuth2 APIs.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/aberrantCode/llm_skills --skill reddit-api-aberrantcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reddit-api
Source: https://github.com/aberrantCode/llm_skills/tree/main/claude/skills/reddit-api
Command: npx skills add https://github.com/aberrantCode/llm_skills --skill reddit-api-aberrantcode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many applications need reliable access to Reddit content but building integrations requires handling authentication, rate limits, streaming, pagination, and multiple client libraries. This Skill consolidates best practices, authentication flows, and example patterns so developers can fetch posts, comments, and user data without reinventing the integration layer.

Core Features & Use Cases

  • Library guidance: Clear examples for Python using PRAW and TypeScript/Node using Snoowrap to cover common read and write workflows.
  • Direct API and OAuth2: Patterns for application-only tokens, script app credentials, and the authorization code web flow for user authentication and refresh tokens.
  • Operations & real-time: Instructions for fetching hot/new posts, searching, handling comments and MoreComments, streaming submissions and comments, submitting posts, voting, and reading user profiles.
  • Stability considerations: Rate limit guidance, User-Agent requirements, pagination and error handling notes, and typed models for parsing responses.

Quick Start

Use the reddit-api skill to fetch the latest 10 hot posts from r/python and return each post's title, author, score, and url.

Frequently Asked Questions about reddit-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate with the Reddit API using OAuth2?

To authenticate with the Reddit API, you can use application-only tokens, script app credentials, or the authorization code web flow for user authentication and refresh tokens. This Skill provides patterns for setting up OAuth2 workflows across Python and Node.js environments.

What's the best way to fetch Reddit posts and comments in Python?

The best way to fetch Reddit posts and comments in Python is using the PRAW library. This Skill provides clear examples for common read workflows, including fetching hot/new posts, searching, and handling comments or MoreComments objects effectively.

Can I use Snoowrap to stream Reddit submissions in Node.js?

Yes, you can use Snoowrap in TypeScript or Node.js to stream Reddit submissions and comments. This Skill offers library guidance for both reading and writing workflows, enabling real-time operations like streaming content directly through Snoowrap.

How do I handle rate limits and User-Agent requirements when accessing the Reddit API?

Handling Reddit API rate limits requires respecting response headers and setting a valid User-Agent string. This Skill includes stability considerations like rate limit guidance, User-Agent requirements, pagination handling, and error management to ensure reliable API access.

Does the Reddit API support submitting posts and voting programmatically?

Yes, the Reddit API supports submitting posts and voting programmatically. This Skill covers write operations such as submitting content and voting, alongside reading user profiles, utilizing either direct OAuth2 API workflows or client libraries like PRAW.

How do I parse and type model responses from direct Reddit API calls?

To parse responses from direct Reddit API calls, you can implement typed models for structured data extraction. This Skill supplies patterns for handling raw API responses, managing pagination, and processing fetched posts, comments, and user data reliably.