The achievements an account has unlocked (the newer profile badges): id, name, description, unlock time, image and flags, plus the total Reddit reports. Give username or user_id. For the trophy case use /user/trophies. Billed 1 request per call.
HTTP Request
GET /user/achievements
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. |
Response
Real response to GET /user/achievements?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 | Achievements; null with error.code = not_found. |
data.total_unlocked | integer | Achievements unlocked. |
data.items | array of objects | Unlocked achievements. |
data.items[].achievement_id | string | Achievement id. For reference; not an input of this API. |
data.items[].name | string | Achievement name, e.g. Conversation Starter. |
data.items[].unlocked_at | string | ISO-8601 UTC unlock time. |
data.items[].image_url | string | Achievement image URL. |
data.items[].is_repeatable | boolean | Can be unlocked more than once. |
data.items[].unlocked_count | integer / null | Times a repeatable achievement was earned; null for a one-time achievement. |
data.items[].is_new | boolean | Flagged as new on the profile. |
data.computed_at | string | When this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache. |
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 Subreddits : Communities a Reddit account is active in
- User Moderated Subreddits : Communities a Reddit account moderates
- User Trophies : Trophy case of a Reddit account