The Reddit Data API: What It Is, What It Allows, and What It Costs You in Time
oauth.reddit.com that Reddit expects every app, script and bot to use. The free tier allows 100 requests per minute per OAuth client id, is limited to non-commercial use, and requires a registered app with a descriptive User-Agent. Commercial access and model training need a paid agreement. If you only need the comments from a thread or two, you can skip the API and export them from your browser with the free Comment Exporter extension.
The Reddit Data API is the name Reddit uses for its official developer interface since the 2023 changes. This article covers what it is, which access tier you fall into, how the rate limit is counted, what you must do before you get a token, and what the terms let you do with the data. At the end there is a section on when you do not need any of this.
What the Reddit Data API Is
Every request an app makes to Reddit goes through one of two doors. The first is the website itself: www.reddit.com, which serves HTML to browsers. The second is the Data API: oauth.reddit.com, which serves JSON to programs that identify themselves with an OAuth token.
The endpoints map closely to what you see on the site. /r/{subreddit}/hot returns a listing of posts. /comments/{article} returns a post with its comment tree. /user/{username}/about returns a profile. The full list lives at reddit.com/dev/api.
Three things set the Data API apart from reading the site:
- Identity. Every request carries an OAuth bearer token tied to a registered app. Reddit knows which app is calling and, for user-authorised apps, which user.
- Accounting. Requests are counted per OAuth client id, and the count decides whether you stay in the free tier or need a commercial agreement.
- Terms. Use of the API is governed by the Reddit Data API Terms, which sit on top of the general Developer Terms and User Agreement.
Before 2023 the API was, in practice, open. In April 2023 Reddit announced paid access for high-volume and commercial users, put a formal cap on the free tier, and published the Data API Terms. That is the version this article describes.
The Old Public API and the .json Suffix
You will still find guides that tell you to add .json to any Reddit URL. https://www.reddit.com/r/python/comments/abc123/some_thread.json returns the same listing structure the API returns, and it works without a token in many cases.
This is the leftover of the old public API. Reddit has not removed it, but it treats these requests as unauthenticated, which puts them under the 10 requests per minute limit rather than the 100 the OAuth tier gets. Requests without a proper User-Agent are throttled harder and sometimes blocked. Reddit's developer documentation does not list the .json suffix as a supported access path, so anything built on it can stop working without notice. It is fine for a quick look at a thread's structure, not for a script that runs every day.
Reddit API Access Tiers: Free, Commercial, Research
Reddit describes access in terms of what you do with the data, not a plan you pick from a dropdown. There is no self-serve upgrade button. In practice there are three situations.
Free tier
The free tier covers personal projects, moderation tools, hobby bots and non-commercial research. To use it you register an app, authenticate with OAuth, and stay under 100 queries per minute per client id. There is no charge and no application beyond the app registration itself.
The word that matters is non-commercial. A script that pulls comments for a university paper qualifies. The same script feeding a paid dashboard does not, even at identical volume.
Commercial access
Commercial use requires a separate agreement with Reddit. This is the tier third-party Reddit clients were pushed into in 2023, and it is why most of them shut down. Access is negotiated, priced per volume, and contracted. Reddit does not publish a rate card. Numbers circulate from developers who received quotes, and we cover those in the Reddit API pricing article. Treat them as reports, not a price list. If you are building a product that reads Reddit data for customers, assume you are in this tier and contact Reddit before you build.
Research access
Reddit has run a programme for academic researchers under the name Reddit for Researchers, giving approved researchers access to Reddit data for non-commercial studies outside the standard developer flow. Eligibility, scope and whether it is taking applications change over time, so check Reddit's developer documentation for the current state before planning a study around it.
Reddit API Rate Limits and How They Are Counted
The free tier limit is 100 queries per minute per OAuth client id. Without OAuth, the limit is 10 queries per minute. Reddit averages the count over a 10 minute window, so a burst of 300 requests in one minute followed by nine quiet minutes stays inside the limit. A steady 120 per minute does not.
Three details trip people up:
- The limit is per client id, not per user or per IP. One app on five machines shares one 100 per minute budget. Registering a second app to double your limit violates the terms.
- One page view can cost more than one request. A thread with a large comment tree returns a partial tree plus
moreobjects. Expanding each of those is a separate call to/api/morechildren. A single big thread can cost dozens of requests to read in full. - Client libraries manage the limit, but do not raise it. PRAW reads the rate limit headers and sleeps when it needs to. Two PRAW instances with the same client id compete for the same 100 per minute.
Every API response includes three headers you should log:
X-Ratelimit-Used: requests used in the current windowX-Ratelimit-Remaining: requests left in the windowX-Ratelimit-Reset: seconds until the window resets
When you exceed the limit, Reddit returns HTTP 429. It does not queue the request. Repeatedly ignoring 429s is the fastest way to get a client id disabled, so read X-Ratelimit-Reset, sleep that long, and retry once.
The 100 per minute figure has been stable since 2023, but Reddit can change it. If your script sees 429s well under 100, check Reddit's developer documentation for the current figure before assuming a bug on your side.
Registering an App and Getting a Token
You cannot call the Data API without a registered app. Registration is free and takes a few minutes at reddit.com/prefs/apps. You pick a name, a type, and a redirect URI, and Reddit gives you a client id and a client secret.
App types
- Script. For code that runs as you, on your own machine or server, and only touches your own account. It uses the OAuth password grant: you send your Reddit username and password along with the client id and secret, and get a token back. This is the type most data pulls use. Note that the password grant does not work on accounts with two-factor authentication enabled unless you append the current code to the password.
- Web app. For a service that other Reddit users log in to. It uses the authorization code flow: you send the user to Reddit, they approve your app and its scopes, Reddit redirects back with a code, and you exchange the code for a token. The client secret stays on your server.
- Installed app. For mobile and desktop apps that cannot keep a secret. Same code flow, with an empty secret.
The User-Agent rule
Reddit requires a descriptive, unique User-Agent header on every request. The documented format is:
<platform>:<app ID>:<version string> (by /u/<reddit username>)
For example: macos:com.example.threadexport:v1.2 (by /u/yourname). Generic agents such as the default Python requests string or a browser string are throttled or rejected. Reddit's stated reason is that it needs to reach the owner of a misbehaving client. Do not spoof a browser.
The OAuth flow in outline
- POST your client id and secret (as HTTP basic auth) plus the grant parameters to
https://www.reddit.com/api/v1/access_token. - Reddit returns a JSON body with
access_token,token_type,expires_in(3600 seconds) andscope. - Send every API request to
https://oauth.reddit.comwith the headerAuthorization: bearer <token>and your User-Agent. - After an hour, request a new token (script apps) or use the refresh token (web apps that asked for
duration=permanent).
Here is the whole flow for a script app, using only the requests library:
import requests
CLIENT_ID = "your_client_id"
CLIENT_SECRET = "your_client_secret"
USER_AGENT = "macos:com.example.threadexport:v1.0 (by /u/your_username)"
auth = requests.auth.HTTPBasicAuth(CLIENT_ID, CLIENT_SECRET)
data = {"grant_type": "password", "username": "your_username", "password": "your_password"}
headers = {"User-Agent": USER_AGENT}
token = requests.post("https://www.reddit.com/api/v1/access_token",
auth=auth, data=data, headers=headers).json()["access_token"]
headers["Authorization"] = f"bearer {token}"
r = requests.get("https://oauth.reddit.com/r/python/hot", headers=headers, params={"limit": 5})
print(r.status_code, "remaining:", r.headers.get("X-Ratelimit-Remaining"))
for post in r.json()["data"]["children"]:
print(post["data"]["title"])
That confirms your credentials work and shows the rate limit headers. Reading a full comment tree is more work because of the more objects, which is where PRAW earns its keep. We compare that route with the browser extension in Reddit Comment Scraper vs PRAW.
What the Reddit Data API Terms Allow and Forbid
The Reddit Data API Terms are what you agree to when you register an app. This is a plain-language summary of the parts that matter to someone pulling data. It is not legal advice, and the terms change, so read the current text before you rely on it.
Allowed on the free tier
- Personal, non-commercial projects: bots for your own subreddit, tools for moderators, scripts for your own analysis.
- Non-commercial research, including academic work, as long as it stays within the rate limit and the other rules.
- Displaying Reddit content with attribution to Reddit and the author.
- Storing data you fetched, with the obligation described below.
Forbidden without a separate agreement
- Commercial use. Selling access to Reddit data, building a paid product on it, or using it in a way that generates revenue all need a commercial agreement.
- Training models. The terms prohibit using Reddit data to train, fine-tune or improve machine learning or AI models without Reddit's written permission. This was the main motivation for the 2023 change.
- Redistribution. Publishing bulk datasets of Reddit content, or handing your API access to a third party, is not allowed.
- Circumventing limits. Registering multiple apps to multiply your rate limit, rotating client ids, or scraping around the API to avoid its accounting.
Obligations that apply to everyone
- Deletions. If a user deletes a post or comment, or Reddit removes it, you are expected to delete your stored copy. This rule makes long-term archiving difficult.
- Identification. A real User-Agent, a real registered app, and a contact Reddit can reach.
- Privacy. Reddit's privacy policy applies to data you fetch. Building profiles of individual users from their history sits in a grey area.
The practical reading: if you are one person doing one-off analysis and not selling anything, the free tier and its terms are workable. The moment money or a model enters the picture, you need to talk to Reddit.
When You Do Not Need the Reddit Data API
The API exists for programs that run on their own: bots, monitoring services, pipelines that ingest thousands of threads. If your task is smaller than that, there is a simpler route. Situations where the API is more work than the job:
- Reading public threads for research. You want the comments from twenty threads to see how people describe a problem. That is a per-thread job, not a pipeline.
- Exporting a thread's comments to CSV. You want text, author, score, timestamp and depth in a spreadsheet. The API returns nested JSON that you have to flatten yourself.
- Occasional pulls. Once a week you check a few threads about your product. A script you run rarely will break between runs and cost more time than clicking a button.
For these, the Comment Exporter Chrome extension on this site (listed in the Chrome Web Store as Reddit Comment Scraper) reads the comments from the thread you already have open in your browser and downloads them as CSV or JSON. There is no app registration, no client id, no token to refresh and no 429 to handle, because it does not call the Data API at all. It reads the page as Reddit rendered it for you. Reddit export in the extension is free; the paid plan adds other platforms such as YouTube and Amazon. For the full set of no-key options, including ones that do not need an extension, see How to Scrape Reddit Without API.
Two limits. The extension works one thread at a time, so it is not the tool for collecting a whole subreddit. And it captures what the page loads, so on very long threads you may need to expand deeper replies before exporting.
See also on Adlicio: Adlicio's Reddit comment scraper (no API key needed).
Frequently Asked Questions
Is the Reddit Data API free?
There is a free tier. It is meant for personal and non-commercial use, it requires a registered app with OAuth, and it is capped at 100 requests per minute per OAuth client id. Commercial use above that level needs a paid agreement with Reddit. Reddit does not publish a self-serve price list, so treat any number you see outside Reddit's own documentation as a report, not a quote.
What is the Reddit API rate limit?
100 queries per minute per OAuth client id for authenticated requests, and 10 queries per minute for requests without OAuth. Reddit averages the count over a 10 minute window, so short bursts are tolerated as long as the average stays under the cap. Each response carries X-Ratelimit-Used, X-Ratelimit-Remaining and X-Ratelimit-Reset headers. When you go over, Reddit returns HTTP 429 until the window resets.
Do I need to register an app to read public Reddit data?
For the Data API, yes. You create an app at reddit.com/prefs/apps, get a client id and secret, exchange them for an OAuth token, and send every request to oauth.reddit.com with that token and a descriptive User-Agent. Unauthenticated requests to the old .json endpoints still return data in many cases, but they sit under the 10 per minute limit and are not a supported access path.
Can I use Reddit API data commercially or to train a model?
Not under the free tier. The Data API Terms limit free access to non-commercial use, and they forbid using Reddit data to train or fine-tune machine learning or AI models without Reddit's written permission. Commercial use, resale, and model training each need a separate agreement with Reddit. This is a summary of the terms, not legal advice.
How do I export a Reddit thread's comments without the API?
Open the thread in Chrome, run the Comment Exporter extension (also listed as Reddit Comment Scraper), and download the comments as CSV or JSON. It reads the page you already have open, so there is no app registration, no OAuth token, and no API rate limit to manage. Reddit export in the extension is free.
Summary
The free tier gives you 100 requests per minute per client id for non-commercial work, provided you register an app, use OAuth, and send a real User-Agent. Commercial products and model training need a contract with Reddit. Use the API when you are building something that runs on its own. When you just need a thread's comments in a spreadsheet, export them from your browser instead.