> 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/users/get-avatar.md).

# Get User Avatar

## Get User Object

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

This endpoint gives the public info of a user from Discord.\
\
A user 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                                |
| -------- | ------- | ------------------------------------------ |
| animated | boolean | Sets the animated status of the avatarurl. |
| size     | integer | Sets the avatarurl size.                   |

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

```
{
  "id": "181482416748232705",
  "avatar": "a_1fe4a3209e9bdd3e2c452a2d79200999",
  "username": "Zapto",
  "discriminator": "0001",
  "avatarurl": "https://cdn.discordapp.com/attachments/749754059782750289/773313352629223444/a_1fe4a3209e9bdd3e2c452a2d79200999.png"
}
```

{% endtab %}

{% tab title="404 " %}

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

{% endtab %}
{% endtabs %}
