Skip to main content
GET
/
v1
/
users
/
profile
/
{username}
curl https://hapi.7331.org/v1/users/profile/exampleuser \
  -b cookies.txt
{
  "discord_id": "123456789012345678",
  "username": "exampleuser",
  "avatar_url": "https://cdn.discordapp.com/avatars/123456789012345678/abc.png",
  "subscription_tier": 0,
  "state": 0,
  "permission_level": 0,
  "prefix": "!",
  "subscription_expires_at": null,
  "last_activity_at": "2026-03-10T12:00:00Z",
  "source": "database",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2026-03-10T12:00:00Z"
}
Requires an active session cookie. Returns a public profile for regular users. If the viewer has sufficient permissions (can act on the target), returns an extended detail response including punishments, guilds, bots, subscription history, and permission history.
username
string
required
Discord username of the target user.

Response

Returns UserPublicResponse for regular viewers or UserDetailResponse for privileged viewers.
discord_id
string
required
Discord user ID.
username
string
Discord username.
avatar_url
string
Discord CDN avatar URL.
subscription_tier
integer
Current subscription level. 0 = Basic, 1 = Trial, 2 = Premium, 3 = Lifetime.
state
integer
required
User state. 0 = Active, 1 = Timeout, 2 = Banned.
permission_level
integer
Permission level. 0 = User, 1 = Moderator, 2 = Admin, 3 = Owner.
punishments
object[]
Punishment history (privileged viewers only).
guilds
object[]
Guilds owned by the user (privileged viewers only).
bots
object[]
Bots owned by the user (privileged viewers only).
subscription_history
object[]
Subscription change history (privileged viewers only).
permission_history
object[]
Permission change history (privileged viewers only).
curl https://hapi.7331.org/v1/users/profile/exampleuser \
  -b cookies.txt
{
  "discord_id": "123456789012345678",
  "username": "exampleuser",
  "avatar_url": "https://cdn.discordapp.com/avatars/123456789012345678/abc.png",
  "subscription_tier": 0,
  "state": 0,
  "permission_level": 0,
  "prefix": "!",
  "subscription_expires_at": null,
  "last_activity_at": "2026-03-10T12:00:00Z",
  "source": "database",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2026-03-10T12:00:00Z"
}