Reddit user trophies API
The public trophy case on a profile, with each trophy’s name, description, icon and the date where Reddit shows one.
GET /v1/reddit/users/{name}/trophies1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/reddit/users/spez/trophies",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "TrophyList", "data": { "trophies": [ { "kind": "t6", "data": { "name": "20-Year Club", "description": null, "icon_70": "https://i.redd.it/cms/871b9df322b7cddd_trophy_image_for_20_year_club.png", "icon_40": "https://i.redd.it/cms/871b9df322b7cddd_trophy_image_for_20_year_club.png", "award_id": null, "id": null, "url": null, "granted_at": null } }, { "kind": "t6", "data": { "name": "Ternion Club", "description": "Unlocked by receiving a Ternion award on a post or comment.", "icon_70": "https://i.redd.it/cms/78b18da56e445587_trophy_image_for_ternion_club.png", "icon_40": "https://i.redd.it/cms/78b18da56e445587_trophy_image_for_ternion_club.png", "award_id": null, "id": null, "url": null, "granted_at": null } }, "… 41 more" ] }}Parameters
| Name | Type | Description |
|---|---|---|
namepath · required | string | Username, with or without "u/". Example: spez. |
Response fields
200 with a TrophyList, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
kind | "TrophyList" | |
data | object |
Status codes
| Status | Meaning |
|---|---|
200 | The trophies. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The subreddit, post or user does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.