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

# Get User Object

## Get user Object

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

This endpoint gives the public info of a user from Discord.\
A token is not required but it's recommended (not providing a token will uses the "public" tokens, so it can be ratelimited.)\
\
A user get cached for 12 hours, and get refreshed for the next request.

#### Path Parameters

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

#### Query Parameters

| Name  | Type   | Description                                                |
| ----- | ------ | ---------------------------------------------------------- |
| token | string | Uses your own Discord bot token if the user is not cached. |

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

```
{
    "id":"181482416748232705",
    "username":"Zapto",
    "avatar":"a_1fe4a3209e9bdd3e2c452a2d79200999",
    "discriminator":"0001",
    "public_flags":131712
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
Failed.
```

{% endtab %}
{% endtabs %}
