# Get User Object

## Get User Object

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

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                                                                              |
| ------------------------- | ------- | ---------------------------------------------------------------------------------------- |
| 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": "181482416748232705",
    "username": "Zapto",
    "avatar": "a_1fe4a3209e9bdd3e2c452a2d79200999",
    "discriminator": "0001",
    "public_flags": 131712
  },
  "presence": {
    "status": "dnd",
    "activities": []
  },
  "avatarurl": "https://cdn.discordapp.com/attachments/749754059782750289/801696891061665822/a_1fe4a3209e9bdd3e2c452a2d79200999.gif"
}
```

{% endtab %}

{% tab title="404 " %}

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

{% endtab %}
{% endtabs %}
