One account’s profile: id, username, display name, avatar, bio, karma with the post / comment split, cake day, NSFW flag, chat and follower settings and Reddit Premium. Give username or user_id. Billed 1 request per call.
HTTP Request
GET /user/details
Cost (in requests): 1. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
username | string | No | - | Reddit username, with or without u/ (case-insensitive). Give this or user_id. |
user_id | string | No | - | Reddit account id (t2_…). Alternative to username. |
with_extras | boolean | No | false | Adds banner_url (the profile banner; left out without it). |
with_posts | boolean | No | false | Adds posts: the newest posts (up to 100, one page only). |
include_html | boolean | No | false | Adds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text. |
Response
Real response to GET /user/details?username=spez (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | The account; null with error.code not_found / suspended / deleted. |
data.username | string | Username. |
data.user_id | string | Account id (t2_…). |
data.display_name | string | Display name (nameplate). |
data.avatar_url | string | Avatar URL. |
data.snoovatar_url | string / null | Full-body avatar image the user built (Reddit’s avatar builder); null when the user has none. |
data.bio | string | Profile description. |
data.total_karma | integer | Total karma. |
data.post_karma | integer | Post karma. |
data.comment_karma | integer | Comment karma. |
data.created_at | string | ISO-8601 UTC account creation (cake day; Reddit exposes the date only, reported as midnight UTC). |
data.is_nsfw | boolean | Profile marked 18+. |
data.accepts_chats | boolean | Accepts chat requests. |
data.accepts_followers | boolean | Can be followed (follow button present). |
data.is_premium | boolean | Reddit Premium member; null when unknown. |
data.account_type | string | user, or app for an app account (games, bots); another type Reddit adds later comes in lower snake case. |
data.posts_count | integer | Posts the account has made, as Reddit counts them; null when it could not be read. |
data.comments_count | integer | Comments the account has made, as Reddit counts them; null when it could not be read. |
data.contributions_count | integer | Posts plus comments (posts_count + comments_count); null when it could not be read. |
data.verification_status | string | verified when Reddit shows a verified profile, none otherwise (another status Reddit adds later comes in lower snake case); null when it could not be read. |
data.social_links | array | Profile social links. |
data.verifications | array of objects | What Reddit verified, e.g. identity; empty when nothing, null when it could not be read. |
data.verifications[].type | string | identity (Reddit checked a human identity document); other kinds in lower snake case. |
data.verifications[].title | string | Label Reddit shows, e.g. Identity. |
data.verifications[].verified_at | string | ISO-8601 UTC date of the verification. |
data.active_subreddits | array | Names of the communities the user is active in, as Reddit shows them on the profile. Empty when the user hides them (a profile setting) or has none; null when the profile could not be read. For members, descriptions and icons use /user/subreddits. |
data.moderated_subreddits | array of string | Names of the communities the account moderates, as Reddit’s profile card lists them (the first ones only for a moderator of many; the full list with descriptions: /user/moderated-subreddits); empty when none. |
data.state | string | active, suspended, deleted, not_found. |
data.posts | array | Newest posts (with with_posts, up to 100). The profile feed carries no author avatar, type or flair, community type, domain, vote ratio, share or crosspost count, poll, lock / sticky / spoiler / archive / distinguished state, brand flag, AMA or highlight data: those keys are left out (read them on /post/details). |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, suspended, deleted. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- User Search : Search Reddit accounts by name or keyword
- User Activity : Posts and comments of a Reddit account (one timeline or each list)
- User Subreddits : Communities a Reddit account is active in