Social Media
Reddit User Profile
Get a redditor's public profile — id, username, employee and verified flags, account type, PM acceptance, NSFW flag, avatar, total/post/comment karma, description, and creation date — as JSON. Costs 1 credit per request.
POST/api/v1/reddit/user
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonusernamestringrequiredReddit username, without the u/ prefix (1-100 characters).
Example: spez
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.user(username="spez")
print(results)Response
"id": "t2_1w72",
"name": "spez",
"is_employee": true,
"is_verified": true,
"account_type": "employee",
"is_accepting_pms": true,
"is_nsfw": false,
"avatar": "https://styles.redditmedia.com/t5_snoo/avatars/spez.png",
"karma": 894213,
"post_karma": 152430,
"comment_karma": 741783,
"description": "Reddit CEO",
"created_at": "2005-06-06T00:00:00.000Z"
},
"response_time": 688,
"credits_used": 1,
"credits_remaining": 4746
}