Reddit
User
getUser(name): User
GET
https://api.threadapi.dev/v1/reddit/user
1 Credit
Returns a user's account age, karma and badges. For what they've written, use User posts and User comments. 1 credit per call; profiles are cached for 10 minutes.
Security
API Key
All requests require a valid API key from the developer dashboard.
Headers: Authorization: Bearer YOUR_API_KEYorX-API-Key: YOUR_API_KEY
See Authentication for headers and rate limits.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
namequery | string | Yes | Reddit username, 3 to 20 letters, numbers, underscores or dashes, with or without |
Response
{
"name": "spez",
"created_at": "2005-06-06T04:00:00Z",
"link_karma": 184547,
"comment_karma": 756501,
"total_karma": 941048,
"is_employee": true,
"is_mod": true,
"has_verified_email": true,
"icon": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png"
}total_karma is Reddit's own total; where Reddit leaves it out, as in user search results, it is link_karma plus comment_karma. A suspended account comes back with its name and "suspended": true, and every other field empty or zero. A user who doesn't exist returns 404 not_found.