Skip to main content
GET
/
user-profile
/
username
/
{username}
User Profile by Username
curl --request GET \
  --url https://api.dontdie.com/user-profile/username/{username} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
{
  "id": "1234-5678-9012-3456",
  "name": "Bryan Johnson",
  "username": "bryanjohnson",
  "profilePicUrl": "https://example.com/profile.jpg",
  "bio": "I'm a software engineer and I love to code",
  "isVerified": true,
  "xp": 1000,
  "timezone": "America/New_York",
  "country": "United States",
  "gender": "Male",
  "website": "https://example.com",
  "isEmployee": true
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format: Bearer

x-dd-client-id
string
header
required

Your API client ID for the request

Path Parameters

username
string
required

The username of the user to get the profile for

Response

200 - application/json

OK

id
string<uuid>

The ID of the user

Example:

"1234-5678-9012-3456"

name
string

The name of the user

Example:

"Bryan Johnson"

username
string

The username of the user

Example:

"bryanjohnson"

profilePicUrl
string

The profile picture URL of the user

Example:

"https://example.com/profile.jpg"

bio
string

The bio of the user

Example:

"I'm a software engineer and I love to code"

isVerified
boolean

Whether the user is verified

Example:

true

xp
number

The experience points of the user

Example:

1000

timezone
string

The timezone of the user

Example:

"America/New_York"

country
string

The country of the user

Example:

"United States"

gender
string

The gender of the user

Example:

"Male"

website
string

The website of the user

Example:

"https://example.com"

isEmployee
boolean

Whether the user is an employee

Example:

true