Back to blog
reddit api keyreddit apireddit oauthreddit data apirate limits

How to get a Reddit API key

CaptapiDecember 1, 20268 min read
TL;DR
Reddit API keys now need approval first: request access, register an app, then exchange the credentials for an OAuth token. Steps, limits and gotchas.
How to get a Reddit API key

Last verified: 1 December 2026, against Reddit's own help pages. Each step links to the Reddit page it comes from.

To get a Reddit API key, you first ask Reddit for access through its Data Access Request form and wait for explicit approval. After that you register an app, which gives you a client ID and a client secret, and you exchange those for an OAuth token on every session.

Many tutorials start at "create an app". Reddit's Responsible Builder Policy (updated 5 October 2026) puts a step before that: you must request access and get explicit approval before you access any Reddit data through its API.

Step 1: Pick the route that fits your use case

The Responsible Builder Policy sends different builders to different places:

You are buildingWhere Reddit sends you
A non-commercial app or a moderator toolReddit's Developer Platform (Devvit). If Devvit does not support your use case, the policy says to file a ticket.
Something commercialExplicit written approval from Reddit, requested through its contact form.
Academic researchThe Reddit for Researchers program, applied for through a ticket.
Ads managementThe Reddit Ads API. The request form says it does not need allowlisting or approval.

Step 2: Submit the Data Access Request

Reddit's Data API Wiki (updated 11 May 2026) points to one form for access requests: Submit a request → Data Access Request. On 1 December 2026 the form asked for:

  • your email address,
  • the role that best describes why you want API access,
  • optional attachments.

The form asks you to read the Responsible Builder Policy first, because the policy and your answers decide eligibility. Describe one use case per request: the policy forbids registering multiple accounts or submitting multiple requests for the same use case. None of the pages we read gives a response time.

Step 3: Register the app and copy the client ID and secret

For the technical steps, the Data API Wiki links to Reddit's OAuth2 guide. That guide is an archived wiki (last edited in 2016), and the Data API Wiki itself warns that some legacy documentation may be out of date, so treat it as the technical reference and the policy as the rules.

The OAuth2 guide registers apps at reddit.com/prefs/apps with a name, a description and a redirect URI, and describes three app types:

  • script: for use only by you, the developer; it can keep a secret.
  • web app: runs on a server only you control; it can keep a secret.
  • installed app: runs on devices you don't control; it gets no secret.

Registration gives you the client ID, and for script and web apps a client secret. Together they are what people call the Reddit API key.

Step 4: Exchange them for an OAuth token

The Data API Wiki says clients must authenticate with a registered OAuth token, and that traffic without OAuth or login credentials is blocked. Per Reddit's documentation (OAuth2 guide, read 1 December 2026), a script or web app that calls the API as itself, not on behalf of a Reddit user, gets its token with the client_credentials grant: a POST to /api/v1/access_token on www.reddit.com with the client ID and secret as HTTP Basic auth and the body grant_type=client_credentials. The response carries access_token, token_type, expires_in and scope.

import os
import requests

# User-Agent format from Reddit's Data API Wiki: <platform>:<app ID>:<version> (by /u/<username>)
UA = "python:com.example.subreddit-digest:v0.1.0 (by /u/your_username)"

resp = requests.post(
    "https://www.reddit.com/api/v1/access_token",
    auth=(os.environ["REDDIT_CLIENT_ID"], os.environ["REDDIT_CLIENT_SECRET"]),
    data={"grant_type": "client_credentials"},
    headers={"User-Agent": UA},
    timeout=30,
)
resp.raise_for_status()
token = resp.json()  # access_token, token_type, expires_in, scope
const UA = "node:com.example.subreddit-digest:v0.1.0 (by /u/your_username)";
const basic = Buffer.from(
  `${process.env.REDDIT_CLIENT_ID}:${process.env.REDDIT_CLIENT_SECRET}`,
).toString("base64");

const res = await fetch("https://www.reddit.com/api/v1/access_token", {
  method: "POST",
  headers: {
    Authorization: `Basic ${basic}`,
    "Content-Type": "application/x-www-form-urlencoded",
    "User-Agent": UA,
  },
  body: new URLSearchParams({ grant_type: "client_credentials" }),
});
if (!res.ok) throw new Error(`token request failed: ${res.status}`);
const token = await res.json(); // access_token, token_type, expires_in, scope

Per the same documentation, API requests then go to https://oauth.reddit.com, not www.reddit.com, with the header Authorization: bearer TOKEN. Bearer tokens expire after one hour, and app-only token requests never receive a refresh token: request a new token when the old one expires.

The gotchas

A generic User-Agent gets throttled

The Data API Wiki asks for a unique, descriptive User-Agent in the form <platform>:<app ID>:<version string> (by /u/<reddit username>). It says default User-Agents like "Python/urllib" or "Java" are drastically limited, that unidentified clients can be throttled or blocked, and that you must never lie about your User-Agent. Bump the version string when you ship a new build.

The rate limit is an average, so bursts look fine until they don't

For free access the Wiki lists 100 queries per minute per OAuth client ID, averaged over a window that is currently 10 minutes. Read X-Ratelimit-Used, X-Ratelimit-Remaining and X-Ratelimit-Reset on every response and slow down before Remaining reaches zero, instead of waiting for errors.

Storing data comes with obligations

The Wiki has rules about content that is later deleted from Reddit. Read its "Rules" section before you store posts or comments, and design your storage for it from the start.

What the official API costs above the free limit is a separate question; we cover Reddit's published numbers in Reddit API pricing: costs, limits, access.

If you only need public posts and comments

If your project reads public subreddits, posts and comments and you can't wait for approval, a public-data API is the other route. The Captapi Reddit API returns public Reddit data as JSON with one Captapi key: no Reddit app, no OAuth token and no User-Agent rules on your side.

Here are the newest posts in r/redditdev. The response is a real one, captured from the live API on 14 October 2026 and trimmed to the fields below.

curl "https://api.captapi.com/v1/reddit/subreddit-posts?url=r%2Fredditdev&sort=new&limit=2" \
  -H "Authorization: Bearer $CAPTAPI_KEY"
{
  "success": true,
  "data": {
    "subreddit": "redditdev",
    "sort": "new",
    "totalReturned": 2,
    "nextCursor": "t3_1x3qtsl",
    "hasMore": true,
    "posts": [
      {
        "platform": "reddit",
        "id": "1x49x1a",
        "url": "https://www.reddit.com/r/redditdev/comments/1x49x1a/having_trouble_getting_my_taskposting_feature_to/",
        "title": "Having trouble getting my task-posting feature to work",
        "subreddit": "redditdev",
        "score": 0,
        "upvoteRatio": 0.5,
        "comments": 1,
        "flair": "redditdev meta",
        "nsfw": false,
        "publishedAt": "2026-10-12T18:33:57.000Z"
      },
      {
        "platform": "reddit",
        "id": "1x3qtsl",
        "url": "https://www.reddit.com/r/redditdev/comments/1x3qtsl/api_key/",
        "title": "API key ?",
        "subreddit": "redditdev",
        "score": 0,
        "upvoteRatio": 0.2727272727272727,
        "comments": 3,
        "flair": "Reddit API",
        "nsfw": false,
        "publishedAt": "2026-10-12T02:59:10.000Z"
      }
    ]
  }
}

The same call in Python, paging with the cursor:

import os
import requests

params = {"url": "r/redditdev", "sort": "new", "limit": 25}
resp = requests.get(
    "https://api.captapi.com/v1/reddit/subreddit-posts",
    params=params,
    headers={"Authorization": f"Bearer {os.environ['CAPTAPI_KEY']}"},
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]
for post in data["posts"]:
    print(post["publishedAt"], post["score"], post["title"])
# Next page: params["cursor"] = data["nextCursor"] while data["hasMore"] is true

To search all of Reddit instead of one subreddit, call /v1/reddit/search with q (for example q=api key). Subreddit Posts and Search cost 2 credits per call; a failed call or an empty result costs 0. What it can't do: write anything (no posting, voting or messages), read private, quarantined or banned subreddits, or return every comment on a large thread.

Captapi returns publicly available data only. You are responsible for how you use it and for complying with applicable laws and each platform's terms. See the Captapi terms.

FAQ

Can I still create a Reddit API key without approval?

Reddit's Responsible Builder Policy (updated 5 October 2026) says you must request access and get explicit approval before you access any Reddit data through its API. Request access through the Data Access Request form first.

Where do I find my Reddit client ID and secret?

They are created when you register an app. Reddit's OAuth2 guide (archived, linked from the Data API Wiki) does this at reddit.com/prefs/apps; installed apps get a client ID but no secret.

What are the Reddit API rate limits?

For free access, 100 queries per minute per OAuth client ID, averaged over a 10-minute window, according to Reddit's Data API Wiki. Watch the X-Ratelimit-Used, X-Ratelimit-Remaining and X-Ratelimit-Reset response headers.

Can I read public Reddit posts without a Reddit API key?

Not through Reddit's own API: the Data API Wiki says traffic without OAuth or login credentials is blocked. A public-data API such as the Captapi Reddit API needs only its own key.

Try it on your own data: get a free API key. You get 100 credits after you verify your email.