# Bots

## Fetch Bot Vote Info

<mark style="color:blue;">`GET`</mark> `https://www.diffcord.com/api/v1/votes`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | string | API Key     |

{% tabs %}
{% tab title="200: OK Successfully fetched bot vote information" %}

```json
{
    "data": {
        "month_votes": 4162
    },
    "error": null
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized request" %}

```json
{
  "message": ...,
  "code": ...
}
```

{% endtab %}
{% endtabs %}

## Update Bot Stats

<mark style="color:green;">`POST`</mark> `https://www.diffcord.com/api/v1/stats`

#### Query Parameters

| Name                                     | Type    | Description                |
| ---------------------------------------- | ------- | -------------------------- |
| guilds<mark style="color:red;">\*</mark> | integer | Number of guilds (servers) |
| shards                                   | integer | Shards                     |

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | string | API Key     |

{% tabs %}
{% tab title="204: No Content Successfully updated stats" %}

```
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized request" %}

```json
{
  "message": ...,
  "code": ...
}
```

{% endtab %}
{% endtabs %}
