User Badges

Discord Badges Endpoint

The Discord User Badges endpoint is an easy way to get all of the discord badges a user has. This request will return an array of the badges in text formats and bitfield numbers.

Endpoint

  • URL: https://api.erensko.xyz/v1/user-badges

  • Method: GET

  • Description: Returns all the badges of a discord user in text and bitfield arrays.

URL Parameters

Key
Value

user-id

The discord user ID to get all the badges of.

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here.

bot-token

The plain token of your own Discord bot.

We require your Discord bot token to authenticate and send requests to Discord on your behalf, and your token is never shared, ensuring your privacy and safety.

Request Example

GET https://api.erensko.xyz/v1/user-badges?user-id=THE-USER-ID
bot-token=YOUR BOT TOKEN

Response Example:

{
    "discordBadges": [
        "HypeSquad Bravery",
        "Active Developer"
    ],
    "discordBadgeBitfields": [
        64,
        4194304
    ]
}

Usage Notes

  • This endpoint does not return Nitro Subscriber, Server Booster, or Completed a Quest badges as Discord does not allow discord bots to get these badges.

Last updated