> For the complete documentation index, see [llms.txt](https://docs.memerator.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.memerator.me/resources/user.md).

# User/Profile

The User object is returned when requesting 1 or multiple users. An example object is as follows

| Field     | Type      | Description                                             |
| --------- | --------- | ------------------------------------------------------- |
| username  | string    | The username of this profile                            |
| bio       | string    | This user's bio                                         |
| id        | int       | The ID of this user.                                    |
| stats     | hash      | A hash of a user's meme, followers, and following count |
| perks     | hash      | A hash of a user's perks.                               |
| permalink | string    | The URL to this user's profile                          |
| joined    | timestamp | The exact date this user registered                     |

## Get User

<mark style="color:blue;">`GET`</mark> `https://api.memerator.me/v1/profile/:user`

This endpoint allows you to get a user's profile by ID or username.

#### Path Parameters

| Name  | Type   | Description                                 |
| ----- | ------ | ------------------------------------------- |
| :user | object | The user you want. Can be by ID or username |

{% tabs %}
{% tab title="200 User successfully retrieved." %}

```javascript
{
    "username": "Chew",
    "bio": "<script>alert('hi');</script>",
    "id": 476488167042580481,
    "stats": {
        "memes": 67,
        "followers": 2,
        "following": 3
    },
    "perks": {
        "verified": true,
        "staff": true,
        "translator": false,
        "pro": true
    },
    "permalink": "https://memerator.me/profile/476488167042580481",
    "joined": "2018-10-11T15:37:03.000Z"
}
```

{% endtab %}

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

```javascript
{
    "error": "this user does not exist!"
}
```

{% endtab %}
{% endtabs %}

## Get Integrations

<mark style="color:blue;">`GET`</mark> `https://api.memerator.me/v1/integrations`

Gets your integrations. Requires "View Integrations" key permission.

{% tabs %}
{% tab title="200 A JSONObject consisting of a mapping of service name to an array of integrations for said service name." %}

```javascript
{
    "google": [
        "my google email",
        "my second google email",
        "mcdonalds@gov.gov"
    ],
    "apple": [
        "send me @bitcoin"
    ],
    "minecraft": [
        "sdlhfw87e4rt43h7tu34tfelsiofyest8ye4t"
    ],
    "discord": [
        "4756754676574567567"
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.memerator.me/resources/user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
