You will need to get an API key from your bot page by logging in and clicking "Get API Key"
All API requests should be sent to https://api.discordbots.co
This allows you to post to our API to update the Server Count and Shard Count on your bot page.
Endpoint: /v1/public/bot/:id/stats
Method: POST
Rate Limit: 1 Request / 5 minutes
:id
| Your Bot ID
Authorization: Your API Key
Content-Type: application/json
serverCount | number
shardCount | number
Status Code: 200
Return: { error: false, response: 'Posted your stats successfully.' }
Status Code: 400 | 404 | 429
Return: { error: true, response: 'You are being rate limited.' }
This allows you to get most of the information about your bot.
Endpoint: /v1/public/bot/:id
Method: GET
Authorization: Your API Key
Status Code: 200
Return: { error: false, response: {Response} }
id | string
owners | string[]
votes | number
prefix | string
library | string
tags | string[]
description | string
overview | string
discordInvite | string | null
website | string | null
certified | boolean
promoted | boolean
vanity | string | null
github | string | null
donateUrl | string | null
serverCount | number | null
shardCount | number | null
Status Code: 404
Return: { error: true, response: 'API key does not match a bot.' }
This allows you to get the reviews submitted about your bot.
Endpoint: /v1/public/bot/:id/reviews
Method: GET
Authorization: Your API Key
Status Code: 200
Return: { error: false, response: {Response[]} }
id | string
botId | string
reviewerId | string
positive | boolean
review | string
reply | string
Status Code: 404
Return: { error: true, response: 'API key does not match a bot.' }
You will need to get a webhook token from your bot page by logging in and clicking "Get Webhook Token" - this is not required but will be useful for validating incoming requests to your webhook URL.
You will also need to edit your bot and provide an already set up webhook URL.
You will receive a POST request when a user votes for your bot.
Authorization: Your Webhook Token
Content-Type: application/json
userId | string
test | boolean
type | "vote"
You will receive a POST request when a user submits a review on your bot.
Authorization: Your Webhook Token
Content-Type: application/json
userId | string
content | string
positive | boolean
test | boolean
type | "review"