# Reddit Data API API reference

> 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.…

Source: https://osinttools.io/apis/reddit-data-api/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/reddit-data-api/

- Base URL: https://oauth.reddit.com
- Authentication: Bearer token in the `Authorization` header. Get a key: https://www.reddit.com/prefs/apps An OAuth2 access token; the reference lists a scope per endpoint (here read).
- Rate limits: 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.
- Vendor docs: https://www.reddit.com/dev/api/

## Overview

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.

## Users

### Information about a user, including karma and gold status.

`GET /user/{username}/about`

- Takes: Username
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `username` | path | string | yes | The name of an existing user Example: example_user |

Response fields:

- `kind` (string): t2 for an account
- `data.name` (string): The username
- `data.id` (string): Account ID; prepend t2_ for the fullname
- `data.created_utc` (number): Creation time, UTC epoch seconds
- `data.link_karma` (integer): Link karma
- `data.comment_karma` (integer): Comment karma
- `data.is_gold` (boolean): Reddit gold status
- `data.is_mod` (boolean): Whether the account moderates any subreddit
- `data.has_verified_email` (boolean): Whether the email is verified
- `data.over_18` (boolean): Whether the account is marked over 18

```bash
curl 'https://oauth.reddit.com/user/example_user/about' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
  }
}
```

### A user's overview, submitted posts, comments or other history, as a listing.

`GET /user/{username}/{where}`

- Takes: Username
- Footprint: passive (the target is not contacted)

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `username` | path | string | yes | The name of an existing user Example: example_user |
| `where` | path | string | yes | Which history to list Example: submitted One of: overview, submitted, comments, upvoted, downvoted, hidden, saved, gilded |
| `sort` | query | string | no | Sort order Example: new One of: hot, new, top, controversial |
| `t` | query | string | no | Time window for top and controversial Example: all One of: hour, day, week, month, year, all |
| `limit` | query | integer | no | Maximum items (default 25, maximum 100) Example: 25 |
| `after` | query | string | no | Fullname of a thing to use as the anchor point of the slice Example: t3_abc123 |

Response fields:

- `kind` (string): Listing
- `data.after` (string): Fullname of the next page, or null
- `data.before` (string): Fullname of the previous page, or null
- `data.children[].kind` (string): t3 for a link, t1 for a comment
- `data.children[].data.author` (string): Poster's username
- `data.children[].data.subreddit` (string): Subreddit name without /r/
- `data.children[].data.title` (string): Post title (links)
- `data.children[].data.body` (string): Comment text (comments)
- `data.children[].data.score` (integer): Net score
- `data.children[].data.created_utc` (number): Creation time, UTC epoch seconds
- `data.children[].data.permalink` (string): Relative permanent link

```bash
curl 'https://oauth.reddit.com/user/example_user/submitted' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### Information about a subreddit: subscriber count, description and header image.

`GET /r/{subreddit}/about`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `subreddit` | path | string | yes | Subreddit name without /r/ Example: example |

Response fields:

- `kind` (string): t5 for a subreddit
- `data.display_name` (string): Human-readable subreddit name
- `data.title` (string): Title of the main page
- `data.public_description` (string): Description shown in search results
- `data.description` (string): Sidebar text
- `data.subscribers` (integer): Number of subscribers
- `data.over18` (boolean): Whether the subreddit is marked NSFW
- `data.subreddit_type` (string): public, private, restricted or a special type
- `data.url` (string): Relative URL, for example /r/pics/

```bash
curl 'https://oauth.reddit.com/r/example/about' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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/"
  }
}
```

## Search

### Search posts across Reddit, or within one subreddit with /r/{subreddit}/search.

`GET /search`

- Takes: Username, Name, URL
- Footprint: passive (the target is not contacted)

Needs the read scope. This is a listing. The docs give the optional [/r/subreddit] prefix for searching inside one subreddit; use restrict_sr to limit to it.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search query, at most 512 characters Example: example.org |
| `sort` | query | string | no | Sort order Example: new One of: relevance, hot, top, new, comments |
| `t` | query | string | no | Time window Example: year One of: hour, day, week, month, year, all |
| `type` | query | string | no | Comma-delimited result types Example: link One of: sr, link, user |
| `restrict_sr` | query | boolean | no | Limit the search to one subreddit (with the /r/{subreddit} form) Example: false |
| `limit` | query | integer | no | Maximum items (default 25, maximum 100) Example: 25 |
| `after` | query | string | no | Fullname of a thing to use as the anchor point of the slice Example: t3_abc123 |

Response fields:

- `kind` (string): Listing
- `data.after` (string): Fullname of the next page, or null
- `data.children[].kind` (string): t3 for a link
- `data.children[].data.title` (string): Post title
- `data.children[].data.author` (string): Poster's username
- `data.children[].data.subreddit` (string): Subreddit name without /r/
- `data.children[].data.url` (string): Target URL
- `data.children[].data.score` (integer): Net score
- `data.children[].data.num_comments` (integer): Comment count

```bash
curl 'https://oauth.reddit.com/search?q=example.org' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "kind": "Listing",
  "data": {
    "after": "t3_abc123",
    "children": [
      {
        "kind": "t3",
        "data": {
          "title": "An example post",
          "author": "example_user",
          "subreddit": "example",
          "url": "https://example.org/page",
          "score": 12,
          "num_comments": 3
        }
      }
    ]
  }
}
```

### Search subreddits by title and description.

`GET /subreddits/search`

- Footprint: passive (the target is not contacted)

Needs the read scope. This is a listing of subreddits.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | A search query Example: example |
| `sort` | query | string | no | Sort order Example: relevance One of: relevance, activity |
| `limit` | query | integer | no | Maximum items (default 25, maximum 100) Example: 25 |
| `after` | query | string | no | Fullname of a thing to use as the anchor point of the slice Example: t5_abc123 |

Response fields:

- `kind` (string): Listing
- `data.after` (string): Fullname of the next page, or null
- `data.children[].data.display_name` (string): Subreddit name
- `data.children[].data.subscribers` (integer): Number of subscribers
- `data.children[].data.public_description` (string): Description shown in search results

```bash
curl 'https://oauth.reddit.com/subreddits/search?q=example' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "kind": "Listing",
  "data": {
    "after": null,
    "children": [
      {
        "kind": "t5",
        "data": {
          "display_name": "example",
          "subscribers": 1500,
          "public_description": "A made-up community."
        }
      }
    ]
  }
}
```

## Lookups

### Look up links, comments or subreddits by fullname, or links by URL.

`GET /api/info`

- Takes: URL
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | query | string | no | Comma-separated list of thing fullnames Example: t3_abc123 |
| `url` | query | string | no | A valid URL; returns links that submitted it Example: https://example.org/page |
| `sr_name` | query | string | no | Comma-delimited list of subreddit names Example: example |

Response fields:

- `kind` (string): Listing
- `data.children[].kind` (string): t3 link, t1 comment or t5 subreddit
- `data.children[].data.title` (string): Post title (links)
- `data.children[].data.author` (string): Poster's username
- `data.children[].data.subreddit` (string): Subreddit name without /r/
- `data.children[].data.permalink` (string): Relative permanent link

```bash
curl 'https://oauth.reddit.com/api/info' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "kind": "Listing",
  "data": {
    "children": [
      {
        "kind": "t3",
        "data": {
          "title": "An example post",
          "author": "example_user",
          "subreddit": "example",
          "permalink": "/r/example/comments/abc123/an_example_post/"
        }
      }
    ]
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
