Post Stats (Direct)

In most cases you can use a package for your language to post stats. Only post manually when you have to.

post
Post Stats

https://discordsbestbots.xyz/api/bots/:id/stats
POST your bot stats.
Request
Response
Path Parameters
:id
required
string
The id to use. If trusted, use the vanity url, else use the id.
Headers
Authorization
required
string
Your bot's API key, You can find this on the edit page.
Body Parameters
guilds
required
string
The amount of servers your bot is in.
shards
optional
string
An array, or a number of guilds on that shard. Example: [150,250,310,241], or in number form 951.
200: OK
Your bots stats were updated.
{
"guilds": number, // The guilds you provided in the request
"shards": number, // The shards you provided (undefined if no shards where found.)
}
400: Bad Request
You did not provide any guilds or shards in the request.
{
"message": "guilds, and or shards missing."
}
401: Unauthorized
You did not provide an Authorization header with your request.
{
"message": "No Authorization header found."
}
403: Forbidden
The Authorization header was invalid.
{
"message": "Invalid Authorization header."
}
404: Not Found
The bot was not found.
{
"message": "Bot not found."
}

‚Äč