Public access returns basic profile data. Privileged viewers (moderators and above) who can act on the target user see an enriched response with punishments, guilds, bots, login history, and subscription history.
Public API key (required for unauthenticated access).
Response
Public (unauthenticated or insufficient permissions)
Current subscription level. 0 = Basic, 1 = Trial, 2 = Premium, 3 = Lifetime.
When the user was created (UTC).
When the user was last updated (UTC).
Elevated (moderator+ with hierarchy access)
All public fields plus:
User state. 0 = Active, 1 = Timeout, 2 = Banned.
Permission level. 0 = User, 1 = Moderator, 2 = Admin, 3 = Owner.
Login history grouped by IP address.
Guilds owned by this user.
Subscription tier change history (admin+ only).
cURL (public)
cURL (authenticated)
curl https://hapi.7331.org/v1/users/123456789012345678 \
-H "X-API-Key: $API_KEY "
200 (public)
200 (elevated)
{
"discord_id" : "123456789012345678" ,
"username" : "exampleuser" ,
"avatar_url" : "https://cdn.discordapp.com/avatars/123456789012345678/abc.png" ,
"subscription_tier" : 0 ,
"source" : "database" ,
"created_at" : "2025-01-01T00:00:00Z" ,
"updated_at" : "2025-01-15T12:00:00Z"
}