Radar Bot Directory Documentation
This API is accessible from https://radarbotdirectory.xyz/api
get
https://radarbotdirectory.xyz/api
/bot/:id/
Get Bot Info
get
https://radarbotdirectory.xyz/api
/bot/:id/widget
Get Bot Widget
post
https://radarbotdirectory.xyz/api/
bot/:id/stats
Update Bot Statistics
get
https://radarbotdirectory.xyz/lastvoted
/:userid/:botid/
Last Voted

Discord.JS Template

1
const axios = require('axios')
2
axios({
3
method: 'post',
4
url: 'https://radarbotdirectory.xyz/api/bot/<clientid>/stats',
5
headers: {
6
'Content-Type': 'application/json',
7
Accept: 'application/json',
8
'Authorization': "<yourapikey>",
9
},
10
data: {
11
guilds: client.guilds.cache.size,
12
},
13
}).then(function(res) {
14
console.log(res)
15
}).catch(function(err) {
16
console.log(err)
17
});
Copied!

Discord.py Template

1
import requests
2
3
data= {'guilds': len(bot.guilds), "shards": bot.shards}
4
5
headers = {'Content-Type': "Application/JSON", "Authorization": "<api_key", Accept: 'application/json'}
6
7
resp = requests.post("https://radarbotdirectory.xyz/api/bot/<client_id>/stats", data=data, headers=headers)
8
9
print(x.text)
Copied!
Your API Key can be found at https://radarbotdirectory.xyz/user/<youruserid>
Last modified 19d ago