Skip to content

Get public User data

GET

http
https://api.atomic.radio/users/:userId/public
https://api.atomic.radio/users/:userId/public

Returns a public user object for a given user ID.

Public User Structure

FieldTypeDescription
idStringThe id of the user
usernameStringThe username of the user
avatar_hashStringThe hash of the avatar of the user. See here for more information.
avatarStringThe url of the avatar of the user. See here for more information.
display_roleRoleThe display role of the user
created_atDateWhen the user registered

Example Public User Structure

json
{
    "id": "6863157683894095872",
    "username": "VocalZero 一真",
    "avatar_hash": "g_213e9aeb5302537dcb14e6b24a140843",
    "avatar": "https://assets.atomic.radio/avatars/6863157683894095872/g_213e9aeb5302537dcb14e6b24a140843.gif",
    "display_role": {
        "id": "6945705399425175553",
        "name": "Staff",
        "priority": 50,
        "updated_at": "2022-07-04T18:49:10.768Z",
        "created_at": "2022-07-04T18:49:10.768Z"
    },
    "created_at": "2022-07-04T18:49:10.768Z"
}
{
    "id": "6863157683894095872",
    "username": "VocalZero 一真",
    "avatar_hash": "g_213e9aeb5302537dcb14e6b24a140843",
    "avatar": "https://assets.atomic.radio/avatars/6863157683894095872/g_213e9aeb5302537dcb14e6b24a140843.gif",
    "display_role": {
        "id": "6945705399425175553",
        "name": "Staff",
        "priority": 50,
        "updated_at": "2022-07-04T18:49:10.768Z",
        "created_at": "2022-07-04T18:49:10.768Z"
    },
    "created_at": "2022-07-04T18:49:10.768Z"
}