praw
Python Reddit API Wrapper.
Decision gist · record as of 2026-08-14
Yes. PRAW is a mature, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. It is the standard choice for Reddit API access in Python. Install it if you need to interact with Reddit programmatically; use Async PRAW instead only if you're working in an asynchronous environment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and valid Reddit OAuth credentials (client_id, client_secret, username, password for script-type applications).
- Installation is straightforward with low friction—a pure-Python wheel with five runtime dependencies.
- The project is actively maintained with a recent release (2 days old) and 4226 repository stars, indicating stable, well-supported code.
License · maintenance · safety
permissive license (permissive) — PRAW is released under the Simplified BSD License (v4.0.0+), a permissive license that allows commercial and private use with minimal restrictions—only requiring retention of copyright and license notices.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 4,226 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,804,965 downloads/mo, #3,539 on PyPI
Alternatives
Verify before relying
pip install praw
import praw
reddit = praw.Reddit(
client_id="CLIENT_ID",
client_secret="CLIENT_SECRET",
user_agent="USERAGENT",
username="USERNAME",
password="PASSWORD"
)
submission = reddit.submission(url="https://www.reddit.com/comments/5e1az9")
submission.reply("Comment text")- Whether rate limiting is fully automatic or requires configuration for different use cases.
- Performance characteristics when handling large-scale data retrieval or high-frequency posting.
- Specific Reddit API endpoint coverage and any known gaps relative to the full Reddit API.
What it is and what it does
PRAW is a Python library that wraps Reddit's API, eliminating the need to write raw HTTP requests or manage rate-limiting logic yourself. It handles OAuth authentication, request formatting, and Reddit's rate limits transparently, so you can focus on the Reddit operations themselves—fetching submissions, comments, user data, or posting content. The library is built on top of prawcore and includes defusedxml for safe XML parsing, typing-extensions for type hints, and websocket-client for real-time features.
The package is designed for developers building Reddit bots, data analysis tools, or automation scripts. It supports Python 3.10 through 3.14 and is actively maintained. For asynchronous use cases (e.g., Discord bots or asyncio-based applications), the documentation recommends using Async PRAW instead, which mirrors PRAW's API but works in async contexts.
Use it for
- Build Reddit bots that monitor subreddits, reply to posts, or perform moderation tasks automatically.
- Scrape Reddit data for research, sentiment analysis, or content aggregation without managing HTTP requests.
- Post submissions or comments programmatically to manage communities or distribute content.
- Retrieve user profiles, comment history, or subreddit metadata for analytics or reporting.
- Automate moderation workflows such as filtering, archiving, or responding to reports.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PRAW is a mature, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. It is the standard choice for Reddit API access in Python. Install it if you need to interact with Reddit programmatically; use Async PRAW instead only if you're working in an asynchronous environment.
Install
praw on PyPI
Before you install
Installation is straightforward with low friction—a pure-Python wheel with five runtime dependencies. The project is actively maintained with a recent release (2 days old) and 4226 repository stars, indicating stable, well-supported code.
Requires Python 3.10 or later and valid Reddit OAuth credentials (client_id, client_secret, username, password for script-type applications).
License in practice
PRAW is released under the Simplified BSD License (v4.0.0+), a permissive license that allows commercial and private use with minimal restrictions—only requiring retention of copyright and license notices.
Quickstart
pip install praw
import praw
reddit = praw.Reddit(
client_id="CLIENT_ID",
client_secret="CLIENT_SECRET",
user_agent="USERAGENT",
username="USERNAME",
password="PASSWORD"
)
submission = reddit.submission(url="https://www.reddit.com/comments/5e1az9")
submission.reply("Comment text")
Verify before relying
- Whether rate limiting is fully automatic or requires configuration for different use cases.
- Performance characteristics when handling large-scale data retrieval or high-frequency posting.
- Specific Reddit API endpoint coverage and any known gaps relative to the full Reddit API.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesdefusedxmlprawcoretyping-extensionsupdate-checkerwebsocket-client |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,804,965 / month, #3,539 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: UtilitiesTyping :: Typed |
Evidence: praw-8.0.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “access reddit data programmatically”
- prawPRAW provides a Python interface to Reddit's API, handling…
- redditwarpRedditWarp is a Python wrapper for the Reddit API that provides…
- prawcoreprawcore provides low-level HTTP communication and authentication…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also asyncpraw · prawcore · redditwarp · asyncprawcore · discord · discord.py · django-ratelimit · pyrofork · pipedream · pr-commenter