---
title: "Get User Profile"
description: "Retrieves a Reddit user's public profile, karma breakdown, creation timestamp, and account flags.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://threadapi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: ThreadAPI API › Reddit

`GET /v1/reddit/user`

Retrieves a Reddit user's public profile, karma breakdown, creation timestamp, and account flags.

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`
- `apiKeyAuth`, apiKey, in header, header `x-api-key`

## Query parameters

- `name` (`getUser.query.name`; string, required) — Reddit username (e.g. `spez`, with or without `u/`).

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.threadapi.dev/v1/reddit/user?name=spez' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.threadapi.dev/v1/reddit/user?name=spez';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.threadapi.dev/v1/reddit/user?name=spez"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

User profile.

#### Example

```json
{
  "name": "string",
  "post_karma": 0,
  "comment_karma": 0,
  "karma": 0,
  "is_employee": true,
  "icon": "string",
  "suspended": true
}
```

- `name` (`getUser.response.200.name`; string, optional)
- `post_karma` (`getUser.response.200.post_karma`; integer, optional)
- `comment_karma` (`getUser.response.200.comment_karma`; integer, optional)
- `karma` (`getUser.response.200.karma`; integer, optional)
- `is_employee` (`getUser.response.200.is_employee`; boolean, optional)
- `icon` (`getUser.response.200.icon`; string, optional)
- `suspended` (`getUser.response.200.suspended`; boolean, optional)

### 400

Bad request (invalid parameter or unknown action)

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.400.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.400.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.400.error.message`; string, required)
  - `retryable` (`getUser.response.400.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.400.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.400.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 401

Missing or invalid API key or OAuth access token

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.401.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.401.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.401.error.message`; string, required)
  - `retryable` (`getUser.response.401.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.401.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.401.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 402

The account has no credits left (`insufficient_credits`).

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.402.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.402.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.402.error.message`; string, required)
  - `retryable` (`getUser.response.402.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.402.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.402.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 404

Requested user or resource not found

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.404.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.404.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.404.error.message`; string, required)
  - `retryable` (`getUser.response.404.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.404.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.404.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 429

Rate limit or daily request quota exceeded

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.429.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.429.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.429.error.message`; string, required)
  - `retryable` (`getUser.response.429.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.429.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.429.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 503

A temporary problem reaching Reddit (`upstream_busy`, `upstream_timeout`, `upstream_blocked`, `upstream_error`). Nothing was billed. If `upstream_blocked`, wait for `Retry-After`.

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`getUser.response.503.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`getUser.response.503.error.code`; string, required)
    - example `"not_found"`
  - `message` (`getUser.response.503.error.message`; string, required)
  - `retryable` (`getUser.response.503.error.retryable`; boolean, required)
  - `retry_after` (`getUser.response.503.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`getUser.response.503.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.


Source: https://threadapi.dev/api/Reddit/getUser/index.md
