# Bot Statistics

If you are a bot owner, you might want to POST bot statistics to our API.

* You can post `guilds`, `users`, and `voice_connections`
* The guild count is displayed on your widget and on the site.
* User count and voice connections are exposed in the API for those who want to make cool graphs.

## Post Stats

<mark style="color:green;">`POST`</mark> `https://discordbotlist.com/api/v1/bots/:id/stats`

This method is used to send bot statistics to Discord Bots.

#### Path Parameters

| Name | Type   | Description                 |
| ---- | ------ | --------------------------- |
| id   | string | The ID of your Discord bot. |

#### Headers

| Name          | Type   | Description          |
| ------------- | ------ | -------------------- |
| Authorization | string | Authentication token |

#### Request Body

| Name               | Type    | Description                                                                                                                  |
| ------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------- |
| voice\_connections | integer | The amount of voice connections.                                                                                             |
| users              | integer | The amount of users.                                                                                                         |
| guilds             | integer | The amount of guilds.                                                                                                        |
| shard\_id          | integer | The shard ID if you wish to send per-shard statistics. The statistics will be grouped together and displayed on the website. |

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

```
{ "success": true }
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.discordbotlist.com/bot-statistics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
