Skip to content
OSINTtools.io

Reddit Data API API

Reddit's official API: read posts, comment trees, subreddits and user histories as JSON, with an approved OAuth app.

Base URL
https://oauth.reddit.com
Sign-in
Bearer token
Format
REST
Endpoints
6

Compiled by OSINTtools.io editors from reddit.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Reddit's Data API returns public profile, subreddit, post and comment data as JSON listings. An investigator can use it to read an account's karma and verification flags, page through its posts and comments, look at a subreddit's subscriber count and description, and search posts or subreddits.

Requests with an OAuth2 bearer token go to https://oauth.reddit.com, not www.reddit.com. Listing endpoints share the paging parameters after, before, limit (default 25, maximum 100) and count. Reddit's API rules ask for a unique, descriptive User-Agent in the form <platform>:<app ID>:<version string> (by /u/<reddit username>).

The endpoint list comes from Reddit's API reference at https://www.reddit.com/dev/api/, the OAuth base URL from Reddit's archived OAuth2 wiki on GitHub, and the field names from its archived JSON structures page. The archived API rules give 60 requests per minute for OAuth2 clients; Reddit's current Data API wiki could not be read, so check it for the present limit. Write, moderation and messaging endpoints are not covered.

Quick start

  1. Get a key

    Create an account with Reddit Data API and copy your bearer token. Where to get it

  2. Make your first request

    Information about a user, including karma and gold status.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://oauth.reddit.com/user/example_user/about' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "kind": "t2",
      "data": {
        "name": "example_user",
        "id": "abc123",
        "created_utc": 1500000000,
        "link_karma": 120,
        "comment_karma": 3400,
        "is_gold": false,
        "is_mod": false,
        "has_verified_email": true,
        "over_18": false
      }
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

An OAuth2 access token; the reference lists a scope per endpoint (here read).

Get a key from Reddit Data API

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

The archived API rules say OAuth2 clients may make up to 60 requests per minute; the X-Ratelimit-Used, X-Ratelimit-Remaining and X-Ratelimit-Reset headers show the budget. The current Data API wiki was not readable.

Users

Needs the read scope. Returns an account (t2) object.

Path parameters

usernamestringrequiredtakes your username

The name of an existing user

Example: example_user
Response fields · 10Show

kindstring

t2 for an account

namestring

The username

idstring

Account ID; prepend t2_ for the fullname

created_utcnumber

Creation time, UTC epoch seconds

link_karmainteger

Link karma

comment_karmainteger

Comment karma

is_goldboolean

Reddit gold status

is_modboolean

Whether the account moderates any subreddit

has_verified_emailboolean

Whether the email is verified

over_18boolean

Whether the account is marked over 18

curl 'https://oauth.reddit.com/user/example_user/about' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "kind": "t2",
  "data": {
    "name": "example_user",
    "id": "abc123",
    "created_utc": 1500000000,
    "link_karma": 120,
    "comment_karma": 3400,
    "is_gold": false,
    "is_mod": false,
    "has_verified_email": true,
    "over_18": false
  }
}

where is one of overview, submitted, comments, upvoted, downvoted, hidden, saved or gilded. Upvoted, downvoted, hidden and saved are only for the signed-in account.

Path parameters

usernamestringrequiredtakes your username

The name of an existing user

Example: example_user
wherestringrequired

Which history to list

Example: submittedOne of: overview, submitted, comments, upvoted, downvoted, hidden, saved, gilded

Query parameters

sortstring

Sort order

Example: newOne of: hot, new, top, controversial
tstring

Time window for top and controversial

Example: allOne of: hour, day, week, month, year, all
limitinteger

Maximum items (default 25, maximum 100)

Example: 25Default: 25
afterstring

Fullname of a thing to use as the anchor point of the slice

Example: t3_abc123
Response fields · 11Show

kindstring

Listing

afterstring

Fullname of the next page, or null

beforestring

Fullname of the previous page, or null

kindstring

t3 for a link, t1 for a comment

authorstring

Poster's username

subredditstring

Subreddit name without /r/

titlestring

Post title (links)

bodystring

Comment text (comments)

scoreinteger

Net score

created_utcnumber

Creation time, UTC epoch seconds

permalinkstring

Relative permanent link

curl 'https://oauth.reddit.com/user/example_user/submitted' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "kind": "Listing",
  "data": {
    "after": "t3_abc123",
    "before": null,
    "children": [
      {
        "kind": "t3",
        "data": {
          "author": "example_user",
          "subreddit": "example",
          "title": "An example post",
          "score": 12,
          "created_utc": 1700000000,
          "permalink": "/r/example/comments/abc123/an_example_post/"
        }
      }
    ]
  }
}

Subreddits

  • Passive: the target is not contacted

Needs the read scope. Returns a subreddit (t5) object.

Path parameters

subredditstringrequired

Subreddit name without /r/

Example: example
Response fields · 9Show

kindstring

t5 for a subreddit

display_namestring

Human-readable subreddit name

titlestring

Title of the main page

public_descriptionstring

Description shown in search results

descriptionstring

Sidebar text

subscribersinteger

Number of subscribers

over18boolean

Whether the subreddit is marked NSFW

subreddit_typestring

public, private, restricted or a special type

urlstring

Relative URL, for example /r/pics/

curl 'https://oauth.reddit.com/r/example/about' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "kind": "t5",
  "data": {
    "display_name": "example",
    "title": "Example community",
    "public_description": "A made-up community.",
    "subscribers": 1500,
    "over18": false,
    "subreddit_type": "public",
    "url": "/r/example/"
  }
}

Lookups

Needs the read scope. Only links, comments and subreddits are allowed. Returns a listing.

Query parameters

idstring

Comma-separated list of thing fullnames

Example: t3_abc123
urlstringtakes your url

A valid URL; returns links that submitted it

Example: https://example.org/page
sr_namestring

Comma-delimited list of subreddit names

Example: example
Response fields · 6Show

kindstring

Listing

kindstring

t3 link, t1 comment or t5 subreddit

titlestring

Post title (links)

authorstring

Poster's username

subredditstring

Subreddit name without /r/

permalinkstring

Relative permanent link

curl 'https://oauth.reddit.com/api/info' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "kind": "Listing",
  "data": {
    "children": [
      {
        "kind": "t3",
        "data": {
          "title": "An example post",
          "author": "example_user",
          "subreddit": "example",
          "permalink": "/r/example/comments/abc123/an_example_post/"
        }
      }
    ]
  }
}