> For the complete documentation index, see [llms.txt](https://zaptoinc.gitbook.io/discord-archive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zaptoinc.gitbook.io/discord-archive/api-v2/bots/get-bot-object.md).

# Get Bot Object

## Get User Object

<mark style="color:blue;">`GET`</mark> `https://api.discord.wf/v2/bots/:id`

This endpoint gives the public info of a bot from Discord.\
\
A bot get cached for 12 hours, and get refreshed for the next request.

#### Path Parameters

| Name | Type   | Description               |
| ---- | ------ | ------------------------- |
| id   | string | ID of the requested user. |

#### Query Parameters

| Name                      | Type    | Description                                                                              |
| ------------------------- | ------- | ---------------------------------------------------------------------------------------- |
| with\_avatarurl           | boolean | Adds 'avatarurl' in the result with direct url to the avatar.                            |
| with\_avatarurl\_animated | boolean | Sets the animated status of the avatarurl. (Ignored if 'with\_avatarurl' is not present) |
| with\_avatarurl\_size     | integer | <p>Sets the avatarurl size.<br>(Ignored if 'with\_avatarurl' is not present)</p>         |

{% tabs %}
{% tab title="200 " %}

```
{
  "discord": {
    "id": "159985870458322944",
    "username": "MEE6",
    "avatar": "b50adff099924dd5e6b72d13f77eb9d7",
    "discriminator": "4876",
    "public_flags": 65536,
    "bot": true
  },
  "censored": false,
  "presence": {
    "status": "online",
    "activities": []
  },
  "guilds": 27,
  "common_guilds": 27,
  "users": 0,
  "avatarurl": "https://cdn.discordapp.com/attachments/749754059782750289/820977251327672320/b50adff099924dd5e6b72d13f77eb9d7.png"
}
```

{% endtab %}

{% tab title="401 " %}

```
{
  "message": "401: This account is not a bot",
  "code": 20002
}
```

{% endtab %}

{% tab title="404 " %}

```
{
  "message": "Failed.",
  "error": true
}
```

{% endtab %}
{% endtabs %}
