DevBuzz Developer API

Use this endpoint to push your Discord bot server count to the bot list.

Server Count Push Endpoint

POST https://dbl.devbuzz.online/api/v1/bots/BOT_ID/stats

Send your bot API token in the Authorization header.

Node.js (Discord.js) - Auto Server Count

const axios=require("axios") client.on("ready",()=>{ axios.post( "https://dbl.soyal.tech/api/v1/bots/YOUR_BOT_ID/stats", {server_count:client.guilds.cache.size}, {headers:{Authorization:"YOUR_API_TOKEN"}} ) .then(r=>console.log("Stats updated")) .catch(e=>console.log(e.response.data)) })

Node.js - Manual Server Count

const axios=require("axios") axios.post( "https://dbl.soyal.tech/api/v1/bots/YOUR_BOT_ID/stats", {server_count:120}, {headers:{Authorization:"YOUR_API_TOKEN"}} )

Python Example

import requests url="https://dbl.soyal.tech/api/v1/bots/YOUR_BOT_ID/stats" payload={ "server_count":120 } headers={ "Authorization":"YOUR_API_TOKEN" } requests.post(url,json=payload,headers=headers)

cURL Example

curl -X POST https://dbl.soyal.tech/api/v1/bots/YOUR_BOT_ID/stats \ -H "Authorization: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"server_count":120}'

Success Response

{ "success": true, "server_count": 120 }