# 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 %}
