This API route allows you to fetch detailed information about a Discord user or bot based on their ID.
GET /v1/fetch/:id
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | The ID of the user or bot to fetch information for. |
| type | Query | Yes | Specifies whether to fetch information for a user or a bot. |
{
"v": 1,
"data": {
"basicInfo": {
"id": "651322441989226499",
"bot": false,
"username": "flarelost",
"globalName": "ZorX",
"tag": "flarelost#0",
"discriminator": null,
"createdTimestamp": 1575357771156
},
"nitroData": null,
"decoration": {
"avatarFrame": "https://cdn.discordapp.com/avatar-decoration-presets/a_8ffa2ba9bff18e96b76c2e66fd0d7fa3.png",
"skuId": "1144307957425778779",
"exipres_at": null,
"profileColors": "#000000"
},
"assets": {
"badges": [
{
"name": "HypeSquadOnlineHouse1",
"icon": "No cdn found :)..."
},
{
"name": "ActiveDeveloper",
"icon": "No cdn found :)..."
}
],
"defaultAvatarURL": "https://cdn.discordapp.com/embed/avatars/0.png",
"avatarURL": "https://cdn.discordapp.com/avatars/651322441989226499/392fe6548dc98fd3a5acac9798bc1a72.webp?size=1024",
"bannerURL": null
},
"clan": {
"identity_guild_id": "1141482735052001320",
"identity_enabled": true,
"tag": "META",
"badge": "https://cdn.discordapp.com/clan-badges/1141482735052001320/4bd121681a9f38fff8aea622d74534e4"
}
},
"ms": 103
}
| Status Code | Description |
|---|---|
| 404 Not Found | User or bot not found. |
| 400 Bad Request | Invalid type parameter. The type must be either user or bot. |
| 500 Internal Server Error | An error occurred while fetching the data. |
GET /v1/fetch/651322441989226499?type=user
GET /v1/fetch/781294735167193099?type=bot