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

# 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
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.discordbotlist.com/bot-statistics.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.
