#topgg-api
1 messages ยท Page 20 of 1
If you haven't sent an application yet, you can add a bot and send an application on the site
i have to add the bot on top.gg ?
Yes
Np, I'm glad I was able to help
i have sent the approval request.
๐ Hello there!
I would like to know please, how to get access to your api? I would like to track when users vote for my server on the website and give them rewards through my bot. Only my server is listed on top.gg, my bot isn't public
should be fixed in my fork, its styling is a bit wacky atm
i use localhost endpoints and then ngrok to get a public url for em
oh I suppose that would do
I find it easier than messing with my routers port forwarding settings
I hate that router
Worst thing ever.
Ngrok is like stupidly easy to setup
hah
fair
Yo man I got some good plays tonight
So far I have gotten the extension to work and it is able to monitor activity
๐ help please!
Does anyone knows if the API is available for listed servers? I don't find how to get the api token.
I would like to connect the api to my bot, so I can track user activity and reward accordingly
I don't think so
maybe in v1
this genuinely has me so confused reading it
-addbot
damn
tuff
-api
i dont even get that one huh
to get an api token afaik you need to have an approved bot on top.gg and you can find the api token in the edit section of that bot
Before you submit your bot to Top.gg, please make sure that your bot follows all of our guidelines foundย hereย and read over our process for approval foundย here. Make sure that you are logged intoย https://top.gg, then navigate toย https://top...
I cant find it
Guys where can I get my discord bot api?
I want to make rhe server count show in my website
Press "reveal" and the token will appear
Thanks
how to get topgg token
go to your bots settings on top.gg and do the two below:
click reveal next to the 'Your token is hidden...'
click on the now revealed token to copy it
if bot is approved?
if your bot hasnt been approved by top.gg yet you cannot find the token
the token is only available if the bot has been approved
how much time will it get approved?
-howlong
-howlong
1 sec
not worked
Average review time is 1-2 weeks currently but sometimes it could be quicker or longer.
?
Is there a way to use the top.gg api to get webhook notifications when someone gives your bot a review? this would be helpful so I know when to add a new review to my website
Sure
Any progress yet mate? @jovial pilot
Wdym
Have you gotten your Api yet? @jovial pilot
what? I asked if there was a way to do that
yeah
Feel free to Hite me via D M For it @jovial pilot
I know
This is not possible, webhooks only work with votes. From what I remember there used to be an undocumented endpoint that allowed to fetch all reviews
h
can we get rosbot for d3 here?
-howlong
-upto
@cerulean flame
When will my bot be reviewed?
Our current average review time is 1-2 weeks.
Some bots may take longer to review than others depending on their features. Because of this, we can't guarantee your bot will be reviewed as quickly as someone else's, and there's no exact timeframe for approval. There's also no way to check your position in the queue โ but remember, you're not first or last!
You're free to edit your bot's page anytime, both before and after review. This won't affect your place in the queue.
You can read more about our review process here: How the Reviewing Process Works.
In the meantime, please make sure your bot follows all of our Bot Guidelines for a quick and smooth approval!
Hi! I want to make my bot check if there any bots added to Top.gg and block those that are not listed. Is this possible, can I connect the API to my bot? And if so, how?
-upto
-howlong
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-upto
If ros-bot for d3 still exist, how can we get it? TY
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-ping
pong
-userinfo @signal harness
sudo_william#0
โ
884516044151083079
SudoWilliam
โ
Reviewers
โ:tier1: :Bravery:
<t:1666809571:F> <t:1666809571:R>
<t:1630955458:F> <t:1630955458:R>
Mon, Jun 9, 2025 9:17 PM (a month ago)
pong
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-ping
pong
-botinfo
You need to provide a bot to find
-userinfo
n+help
-userinfo
-userinfo
-userinfo
pong
-ping
pong
-userinfo
-userinfo
-userinfo
-userinfo
-userinfo
-userinfo
This channel is dead anyway, might as well use it for commands 
!help
-userinfo

-botinfo
You need to provide a bot to find
i'm not even sure what this channel is for LOL, because I look up and all I see is -userinfo ๐คฃ
#topgg-api what do we do here ?
-userinfo
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-serverinfo
โ
264445053596991498
160,131
โ
Extreme
top.gg_#0
โ
75
500
โ
Tier 3 :level3:
<t:1483119014:F> <t:1483119014:R>
<t:1483206530:F> <t:1483206530:R>
-botinfo
You need to provide a bot to find
-botinfo 1045379177953624104
All-in-One Discord Bot | 220+ Features | Auto Systems, AI, Giveaways, Moderation & More | Sleek UI & 24/7 Support
1045379177953624104
PROTON
?
0 servers
0 monthly votes
0 total votes
ai, chatbot, fun, giveaways, moderation, utility
@long vector
-botinfo 1398132901614194788
-botinfo 1392252316995944479
-botinfo 1370983412197884046
Cute casino bot with blackjack, hilo, three card poker, caribbean stud, jacks or better, war, mines, tower + complete virtual economy!
1370983412197884046
zonki
/
0 servers
0 monthly votes
0 total votes
casino, casual, economy, fun, game
@keen sleet
-botinfo 850836703949750282
Create, manage, and customize Discord giveaways with advanced features, role requirements, and comprehensive moderation tools!
850836703949750282
Winnsy
/
0 servers
0 monthly votes
0 total votes
community-events, customization, events, events-manager, fun, giveaway, hosting, logging, prize, utility
@chrome steeple
-botinfo 1327479686321934458
Um bot de administraรงรฃo feito para aumentar a seguranรงa do seu servidor com muita diversรฃo e praticidade.
1327479686321934458
MightWard
/
0 servers
0 monthly votes
0 total votes
adimistrativo, automoderation, moderation, seguridad, suporte, suportebot
@gritty shale
-botinfo 1344749625034280992

-botinfo 1392252316995944479
how to listen to votes chat? im trying to listen using this system
import Topgg from '@top-gg/sdk';
import Env from 'libs/env';
import express from 'express';
import { Log } from 'utils/log';
const app = express();
const webhook = new Topgg.Webhook(Env.Required('topgg_auth'));
app.post(
'/topgg-webhook',
webhook.listener((vote) => {
Log(`New vote received from user: ${vote.user}`);
}),
);
app.listen(Env.Default('website_port', 3000));```
but it just doesnt work
i click send test and nothing happens :/
fixed it, allg chat
What was the problem
-botinfo 1026133323023654932
Collect your favorite K-pop Demon Hunters moments and share them with everyone on Discord!
1026133323023654932
K-pop demon hunters collection
/
0 servers
0 monthly votes
0 total votes
anime, art, entertainment, fun, images, social
@runic imp
-bi 1322305662973116486
the
-bi 1391116500093374545
this vernice
hi all, usin topggpy w/ autopost but getting the following eror:
Ignoring exception in auto post loop:
Traceback (most recent call last):
File "/path/to/venv/lib/python3.11/site-packages/topgg/client.py", line 151, in _auto_post
await self.post_guild_count(
File "/path/to/venv/lib/python3.11/site-packages/topgg/client.py", line 212, in post_guild_count
await self.http.post_guild_count(guild_count, shard_count, shard_id)
File "/path/to/venv/lib/python3.11/site-packages/topgg/http.py", line 192, in post_guild_count
await self.request("POST", "/bots/stats", json=payload)
File "/path/to/venv/lib/python3.11/site-packages/topgg/http.py", line 171, in request
raise errors.ServerError(resp, data)
topgg.errors.ServerError: Internal Server Error (status code: 500): {"message":"An unknown error occurred, sorry!"}
any idea what this might b caused by? thanks!!
Are you using the official one or a 3rd party rewrite
is there a c# wrapper for the topgg api?
Not officially
the one here: https://github.com/Top-gg-Community/python-sdk
A simple API wrapper for top.gg written in Python. Contribute to Top-gg-Community/python-sdk development by creating an account on GitHub.
(published as topggpy in pypi)
That one is very outdated and rather broken
If you want a link to the rewrite I use feel free but otherwise I can't help you
yeah please ๐
Install as topgg #topgg-api message
GitHub link
https://github.com/null8626/python-sdk/tree/v0-public
A simple API wrapper for top.gg written in Python. Contribute to null8626/python-sdk development by creating an account on GitHub.
is the api any different / are there api docs?
AttributeError: module 'topgg' has no attribute 'DBLClient'. Did you mean: 'Client'?
right the docs directory
didnt see that lol
I patched together the examples in the readme
They're made for this rewrite
oh cool
For example:
Setup:
import topgg
import os
async with topgg.Client(os.getenv('TOPGG_TOKEN')) as client:
# ...
Auto poster:
@client.autopost_retrieval
def get_server_count() -> int:
return bot.server_count
@client.autopost_success
def success(server_count: int) -> None:
print(f'Successfully posted {server_count} servers to the API!')
@client.autopost_error
def error(error: topgg.Error) -> None:
print(f'Error: {error!r}')
client.start_autoposter()
# ...
client.stop_autoposter() # Optional
but no actual docs lmao das fire
ye
is there the equivalent of the post_shard_count option in this version
I only needed it for vote webhook which has a whole premade example at the bottom but should probably start auto posting
Have you tried http://dblpy.rtfd.io/ which I'm 99% sure is different to the topgg python readthedocs
nope its the same...
Else if you need help you can ping the person that actually made it who sent the message link I posted earlier
I need to sleep it's 1am gah dam
Is it just me or is /stats not returning the right shard_count (well, it just returns null) even if i set it via the POST request? 
-botinfo 1388169772298145963
-botinfo 1385912599350087690
Oh I'm sorry
Npnp
-botinfo 1026133323023654932
What can I use the API for?
vote rewards, vote reminders, shard/server count posting to the site, etc
sorry sir
how to get ros-bot foe d3?
so hacks?
question: in the dotnet-sdk in the Objects - IBotStats if you have an IReadonlyList<int> for the shards why do you need the ShardCount couldn't you get that count from the Shards?
Bro, technically yeah you can get the count from Shards.Count, but thatโs just the shards this bot is running. ShardCount is more like the total shards overall, like in the whole system.
For example, this bot might be running shards [0, 2, 4], so Shards.Count is 3, but globally there are 5 shards, so ShardCount is 5.
It's not extra info, it's just telling you how many shards exist overall, not just what this bot is handling. Makes it easier to know the full context. That's why both exist.
where i can find my bot top gg api key?
if your bot is approved:
edit -> webhooks -> reveal and then you can select it and copy
Yea i added vote rewarding but also wanted to add so people can check their status like voted or didnt vote
So i asked chatgpt and he said this token is not right and needed real api key for get request
yeah no chatgpt doesnt know shit
Yea i know but it was worth a try
read
API resource for a bots or apps on a platform like Discord
https://top.gg/api/bots/:bot_id/check
params:
user_id
authorisation:
the api key you used for vote rewarding
Ok thx will try
if you want a simple way to test
assuming youre on windows
open command prompt and run this:
curl -H "Authorization: YOUR_API_KEY" "https://top.gg/api/bots/BOT_ID/check?userId=USER_ID"
where YOUR_API_KEY = your api key, BOT_ID = your bot's ID, USER_ID = the user ID to check
Ok thx will try to add it later
so for example just to show it works
no?
https://builtwith.com as a reference for future
I have a question. Is the api now available for servers? Or still only for bots?
Unless the docs are outdated I don't think so
Ok thank you! I saw many servers with a huge amount of votes and was wondering how they did that... because the isn't an api to track user activity and give incentives in consequence...
You could probably join one of em and see how they are going about it
Other than that idrk
That's true! Thanks for your help~ ๐
what kind of api would you want
Well, it would be nice to have the possibility to track when users vote for the server.
So the api should track the user activity when voting and communicating with my bot, so I can give rewards to users who vote for the server.
makes sense :)
it's worth mentioning, if you're able to run a basic web server
You can use webhooks I believe never mind, I just checked doesnt look like thats available yet
Yeah... without api, there's nothing I can do. At least, that I know! ๐
Why does this return nothing https://top.gg/api/bots/1361826543478767848/votes when I have votes
-botinfo 1361826543478767848
Your new favorite Discord bot with fun games, powerful tools, and smart features to energize your server!
1361826543478767848
Lemonade
/
2 servers
2 monthly votes
2 total votes
embed-creator, engagement, fun, games, wordle
@scenic gazelle
It isn't 2 servers ๐
/votes api route doesn't work properly
As for the number of servers, the website displays what you send it via the API
Which it says 2, until you update it
Is there anything that works the same?
It depends on why you needed the information from this route
You can check if someone voted with /check route
Will the /votes be fixed?
Knowing top.gg, probably not anytime soon, if at all. The first mentions of this endpoint not working properly appeared about 3 months ago
do the votes influence where the bot lands in the list?
Pretty much, yes
fake?
Huh?
?
If you're still using botghost I suggest you start looking to migrate
if bg shutdowns then discord ended to me

I spent too long
I've never used botghost so don't know how it works but can you make it get a webhook URL or can you make it run like fastapi or smth?
Prob
just depends on how you set it up in the API block
Well if you generate a webhook URL or a URL that your bot monitors then you can use webhooks
Is there a timestamp for when person voted?
not by doing a normal request, would be done with the webhook
Ok
Yo
Is there a way to test stuff with like test votes?
test accounts
but don't do much use of it
testing takes multiple runs alts are not enough
There should be a button to send a test vote in the "Webhook" tab (or "webhooks", I can't remember)
hmm
i really need to read everything again
@native umbra
https://top.gg/bot/YOUR_BOT_ID/webhooks
ohh thanks I'll see
-botinfo 1151510752390303785
-botinfo 1327198859788554251
-botinfo 1215747495360069753
-botinfo 1400621459109449810
-botinfo 1389919150981255241
Bruh
People have a hard time reading these days
Very
You need to push server count to the website for it to show on the bot info since it goes off what the website shows for the server count
@boreal flower I agree.
-bi 1340917960621162557
i sent a manual POST request to bots/:bot_id/stats but it seems it doesnt update instantly
any idea whats going on
I wouldnโt know, I have mine as a command using the top gg npm package for it
i guess ill install the library next time
got really lazy
wait i forgot to call my function (works now)
-bi 1385110408054046791
Duuude
I'll just start handing out mutes ^-^
even better
I had the same issue, just switch to topgg autoposter library
mines was a mistake
i just forgot to call the function i wrote my code in
Mine was really a mess to understand, success 200, called every 30minutes yet no stats, switched to top gg auto poster and everything worked instantly
-bi 1364176331176415282
-bi 1275917099654709418
Do you know this still isn't #commands, after like 2-3 times you've used this channel wrongly
Or are you just trying to advertise your bot that is against the Spotify/YouTube ToS hence against Discord's as well? lmao
@jaunty plank please hand out mutes uwu
-m @rain light 1d using the api channel for Luca commands
Fuck is that still broken
๐
XD
At least now we know they are doing it on purpose to advertise their bot
Another reason why commands should only be available on #commands ๐
-botinfo 1146915838721544292
@jaunty plank next candidate
hey from now please use #commands
Thank you!
They left the server, the fact theyโre pushing the blame for their own actions, using channels outside of what theyโre supposed to be used for is silly behaviour ๐ญ
Especially now that their bot is removed because they got banned
Also I wasn't the one asking for a mute 
Just asked if they're doing it on purpose
Sometimes people overreact
ยฏ_(ใ)_/ยฏ
It's unfortunate because I appreciate the work people do with their bots
Even music bots, people may not be aware that they're against Discord's ToS - so instead of overreacting, could've maybe asked why and if it's really against Discord's ToS
Or just live with a 1 day mute, like come on...
If youโre gonna misuse channels then live with the mute itโs really that simple ๐
Hey guys, good morning, can someone help me to add one character to mudae? Is it possible?
^
Oh, sorry
Reveal doesn't work?
I did it doesn't give a new one
did you verify that they are both the same?
Happened to me a few days ago too, it worked after a bit
Just make sure they're both identical
Yeah
Bot token and
how are you making the request?
curl --request POST \
--url https://top.gg/api/bots/916775039263715349/stats \
--header 'Authorization: eyJhbGciOiJIUzI1NiIs~~~~~' \
--header 'Content-Type: application/json' \
--data '{
"server_count": 164444
}'
either the token is wrong, or the token is for a different bot
try the other endpoints, for example GET /bots to test if the token works
you can also try other tools instead of curl, for example https://reqbin.com/
i am 100% everything is correct
is the bot you're trying to post stats for reviewed and approved?
can you test GET /bots/916775039263715349
How to use api for voters means if anyone vote our discord bot in top.gg then bot will send message to discord server that this user has vote bot_name
-help vote
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
-botinfo
You need to provide a bot to find
-botinfo fixton
I couldn't find that bot listed on our site! It may not have been approved yet
Basically, you need to create a webhook (which is nothing more than a webserver for receiving requests from top.gg), insert a link to it in the bot settings on top.gg, and test if it works. You can find the documentation here - https://docs.top.gg/docs/Resources/webhooks
Alternatively, if you only want to receive messages when someone votes for your bot, you can use a page created by one of the moderators, which is https://webhook-topgg.com/
I couldn't find that bot listed on our site! It may not have been approved yet
wha
Bruh
๐ญ
Anyone experienced cases where you'd get a double upvote webhook in a matter on 2 seconds ?
Seems i get these rarely but time to time
nvm happened instantly not 2 seconds
I know if the system think it fails it will send another one, but I can forward this to our team if itโs thinking it failed but it didnโt
I'm confused how I can collect votes for my server. According to this it should be possible https://docs.top.gg/docs/Resources/webhooks/#server-webhooks
Webhook integration for receiving vote data
webhooks are currently not released for servers
Okay, annoying it shows up as if its possible on the documentation then.
ya not sure why that is, can work on getting that removed
haha okay, orrrr get the api to work for servers too? :)
I feel like this should be a basic feature tbh. Some server lists started not so long ago support this.
Btw, I try to post my membercount to top.gg for server. But I don't understand where I can get the token.
you can't unless you have a bot
and im not sure if posting stats is working at the moment
Yes I have a bot made for it.
then its under edit and webhook
this
hm
under the bot edit tab
I do have a bot on the list, so I can just take one of my bot's to post for my server?
It shows 0 members in my server
What I understood is that I need to push this myself?
yes, I don't think you are able to post stats for that at the moment. The top.gg bot you invite is supposed to update it but doesn't that is an issue we are aware of.
aha okay
you do have a bot -> https://top.gg/bot/1020584444995850300
you need to go under edit under this bot and then you can get the auth key
okay and using this token I could post the server user count or only bot server count?
I don't think you can post server count as I don't see any docs supporting it
yes we retry if we dont get a response, could be your server was bottlenecked and we couldnt send our first request
how long does topgg wait?
I think the request timeout could be a little longer as I had issues with duplicates intermediately as well
How's that possible if I get both during the exact same timeframe ?
The timestamp were literally the same second with a few milliseconds off
Looked at my db and seems it happened 3 times in total
But it's all good now, added a deduplication bucket at the db level
I often had that my redis was slower than topgg spamming the webhook
all the same few milliseconds as well
Is there any way for check reviews in the website?
Not really
I canโt see any webhooks related to like comments, is there going to be anything like that in the future?
highly likely not, for the same reasons that the reviews/comments are not exposed to the API
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
Is this a bug? Whenever someone votes for my bot on weekends, it shows as if 2 votes were added instead of just 1. Iโve noticed this only happens on weekends
Thats intended, the weekend counts as two votes
Oh, I didnโt know that. Since when has this been happening?
-serverinfo
โ
264445053596991498
160,525
โ
Extreme
top.gg_#0
โ
81
365
โ
Tier 3 :level3:
<t:1483119014:F> <t:1483119014:R>
<t:1483206530:F> <t:1483206530:R>
-help
Commands for Your Role:
avatar
botinfo
help
ping
roleinfo
serverinfo
userinfo
const signature = req.headers['authorization'];
if (!this.verifySignature(body, signature, process.env.TOPGG_WEBHOOK_TOKEN)) {
return res.writeHead(403).end('Invalid signature');
}
will this work for auth?
eh? Why are you doing a signature check
It's just an == check that you need to do
ow
Yeah its like overcomplicating things xd
it's not even that, it's just not working
Chatgpt ahh code ngl
One message removed from a suspended account.
So... when does weekend start exactly? Yesterday morning at europe was already weekend it seems. So i assume Friday and Saturday? Is Sunday also weekend?
i mean weekend for vote related things
Thanks
how to get api topgg ?
why i get bad request 400 when i use api.getVotes()
A
API having issues currently? Getting 500 responses
What is this API?
-ping
pong
hey
I wanna do some vote rewards for my bot with the webhook this specificly what infomation does it send with its request?
Webhook integration for receiving vote data
cheers
how can i get API token for my bot?
Same question!
Click edit and check out the "webhooks" tab
You can edit the bot from its "main" page or from your profile iirc
Go to webhook section you'll see "token for this bot" and click on reveal and you are good to go
thanks
So I'm currently linking a webbook to my bot as I'm going to host a giveaway. And I wanted to try it by running the send test button in the webbooks but it said this in the picture does that mean it didn't work?
To make it only voters able to enter the giveaway
I alone can't test it as I recently voted
Figured it out
Im trying to setup the togg webserver i sent a test request to see what infomation i got back but only got this
{"user":"530367361224540190","type":"test","query":"","bot":"1409127932600778804"}
i thought isWeekend should also be sent too
It is sent but it doesn't exist in the test vote afaik
Right that would make sense fr should be included in the test
will it also list votes that expired (12 hours after vote) ?
https://top.gg/api/bots/BOTID/votes
hello
my vote didnt show up on https://top.gg/api/bots/BOTID/vote (i did change the id)
This endpoint even work?
doesn't exist
It does
/vote route?
Are you talking to me?
What?
Nevermind, /votes return empty array right?
Not sure never tried it
/votes is not /vote
Oops, I didnโt use this api tho,
Bc it didnโt work ( obviously bc of the typo)
API resource for a bots or apps on a platform like Discord
that will make it pop up on top.gg?
yes
What does 'you cannot use this endpoint' mean ?
Does that mean it is just completly blocked, or does that mean it will work but only return the last 1000 and not more ?
It doesn't work for now anyway afaik
-botinfo 1398955028487864390
can the new feature "command" upload parameter such as optional text input/select menu ?
I am making an api call and even though there is at least one user who had voted for the bot it stills gives me an empty list. Is the api working?
If you mean this endpoint then it looks like it's still broken
A few months at least I would say
oh then I will need to use something else
wait so that means there is no way of seeing all users who have currently voted?
You can use an endpoint responsible for checking a single user (you have to be careful about the ratelimit) or use webhooks to receive requests that someone has voted
yeah so there is no way of seeing a list of all users who have voted alright
Probably, yea
thanks for the help I guess I will switch to webhooks
So... Im using the new endpoint for uploading commands from my bot. However, subcommandgroups and subcommands aren't showing. Is there any way i can simulate this type of commands for topgg?
https://top.gg/api/bots/:bot_id/votes
does this api still work? i heard it didnt somewhere
or what api do i use to give out a role when someone votes for my bot
You have to use the endpoint for checking a single user (https://docs.top.gg/docs/API/v0/bot#individual-user-vote) or use webhooks (https://docs.top.gg/docs/Resources/webhooks)
Webhook integration for receiving vote data
API resource for a bots or apps on a platform like Discord
Webhooks have always been the preferred way to receive this information afaik
i tried using it but i got really confused..
ill look into it again :)
thanks!
are we allowed to use a api once every 10 minutes? or will we be rate limited
You can make 60 requests/minute so you should be fine
https://docs.top.gg/docs/Resources/ratelimits
i now do once in 30 minutes
Can we add different bot descriptions and headlines to our bots for different localizations/languages?
maybe with a lang property on the html elements? I dont know if thats possible
That would be so cool
@neon sky what language is your bot it
node.js
sorry for late reply
this might be of use to you then https://www.youtube.com/watch?v=wqlU2KOxQws
Quick showcase on how the top.gg API can be easily used with the help of the top.gg javascript SDK to give users a reward for voting for your bot as well as how you can easily implement the autoposter library to keep your bot stats up to date on the website.
Credits
Produced...
Oh hey thisโll help me too (not server stats, for vote rewards) ๐
Is there one for discord.py? I canโt find it
glad to hear it! We've a video about webhook vote rewards which is probably better
there is not. Planning to make one some day
Oh๐ญ okay, thanks!
Will definitely take a look when I get around to adding them ๐
@untold sparrow
download npm
so you mean where i have the codes and stuff
how did you install discord.js??
i used a vps to host the bot
@untold sparrow am i cooked because i use a vps
no. I run my bots on a VPS too
I unfortunetly don't have the time availible right now to get into anything nitty gritty. All I can offer is the video I sent. It should have enough information to go from
okay
Is there any webhook for reviews?
Nope afaik
Mmm would be cool if they considered adding
There likely won't be any for the same reason they're not exposed to the REST API
Probably because people would do review automation but I'm moreso looking for a webhook for when a review is made
Yeah, and that likely won't be the case for the reason mentioned above
There's nothing malicious about that and incentivizing reviews wouldn't rly differ from the upvoting flow
Veld thought about it so maybe soonโข (unless I'm misunderstanding this)
<#announcements message>
Cool! Thank you ๐
Is this where we request an API?
You don't request it, you can access it if you have an approved bot on the website
?verify
hey
linux or windows?
-# or did u already done it?
They left the server
^
linux
sudo apt updatesudo apt install -y nodejs npm
windows
winget install OpenJS.NodeJS.LTS
Then use cd <directory> to navigate to ur bot folder.
From there it depends on what code language u used to make your bot.
So for python u do python <main_file_name> (for example bot.py or main.py)
For javascript u would use node index
so this for nothing
dayum what a time i wastedโฆ
-# on mobile๐ญ
Hi everyone!!
I was wondering if anyone could help me with something. I'd like to know if there is a way for me to create/add bots to top.gg via the rest api? I couldn't find anything online to this topic and the nearest thing I could find is the Post Stats but for that I need the topgg-token which only works after the bot is added.
So my question is: is there any api method to add a new bot to top.gg or is it only possible through their website?
Thanks in advance!
Uhh it's done via you logged in on the website, if it was API based that would be abused so much
ah i see so there is no other way? I am sure that there are built some rate limits or not? that would do it till some point
That's the one and only way. You cannot submit bots via an API
Whatโs wrong with waiting for it to be added for posting stats though? If thatโs your overall goal anyway?
Good afternoon, A question for the verification of my bot. I need to register the cmds on the web, since I cannot find the token to register the cmds and I apologize for the inconvenience.
Your bot needs to be approved and on the website to have an API token
The list of commands on your bot's page are not needed to be approved
Perfect, thank you very much for the information update.
Will there ever be a Discord server-specific callback configuration again or do we need to access votes using a different API from here on out
One message removed from a suspended account.
Check the "Webhooks" tab after clicking the button responsible for editing the bot
hi guys . i am using top.gg for /vote . but now each user have to use the command again after the vote to claim the reward. is possible to make it automated? when user vote to instantly auto give him the reward?
I'm guessing you're using discord.py? If so you can use vote webhooks to make it fully automated
#topgg-api message see this and around here for info
yes discord.py
Try this, if you need help ping me
To actually get the webhook link you need to use ngrok, I can send how in a min
ok yes please
So when you know what port the topgg thing is working on, you can install ngrok (see https://ngrok.com/downloads/linux for more info) and then when it's installed make a ngrok account before making a new terminal instance (can be done via tmux, or in vsc the terminal button, or in windows with the plus icon) and type ngrok config add-authtoken <token> which is the token you generated with your ngrok account, then just do ngrok http <port> which is the top.gg port thing, then copy the link shown, paste that into the topgg bot settings thing and hit test webhook to see if it works
Download ngrok
Sorry for the lack of punctuation, hope that makes sense :3
is really that hard do live reward
not just a webhook?
anyone got a bot where if someone votes it gives them a role in discord
Nope but it's relatively easy to do
You need to use vote webhooks and events to trigger the role update
@woven coral you're working on top.gg SDKs right? Do you need any help with anything? I haven't been keeping up with the API updates but I've heard that there's something new either coming or already here?
by the way this part of the API is outdated, the authorization header should be Bearer <token> and just the token. Spent a LOT of time figuring this out unforuntately ๐ญ
(im sure this was reported before, please update it)
The underlined headers everywhere can be fixed at the same time
i am aware of this, it should be updated when my docs pull request is merged
For the API:
Veld has announced two new v1 endpoints: https://github.com/top-gg/docs/pull/99, he has also announced the resurface of the widgets endpoints not too long ago.
To use v1 endpoints, it's required for you to use a newer token. Legacy tokens are not supported. And this time, a Bearer token prefix is required.
For the SDKs:
I'm working on making pull requests for all of the SDKs. Some SDKs have been ported to v1 because they're prioritized (Node.js, Python, C++, Rust) while others are still yet to be ported but have been ported to the latest version of v0 (Lua, Java, Ruby, Go, C#, PHP)
My changes are pretty big so I had to split my pull requests (including the one for the docs endpoint) into several batches. I am currently working on that right now.
So expect them to be a bit delayed. Sorry everyone.
how do i get webhook..
You make it
Webhook is nothing more than a web server to receive requests from top.gg
yes
noted
Alrighty. Idk where to go for this question, but i wanted to know how id do this?
https://docs.top.gg/docs/Resources/webhooks
Ideally use the library for your language
-botinfo 851760449539407882
my bad i was half asleep at that time
I donโt receive webhook-events. Iโm using express, everything is configured correctly, but it isnโt working
How do I fix it?
Everything isnโt configured correctly if itโs not working. Show your code. What do you do? Do you have a domain? Etc etc
One question: Can i receive webhooks on http servers or only https?
@untold sparrow can you check deleted messages? (support scam)
and how do you add the url, do you have a domain, reverse proxy?
iโm using the host domain with the server port
have you tried curl'ing that url yourself to see if the webserver is online and accessible?
uptimerobot can access it
so it is online
that doesnt neccessarily mean it can though
actually check
Add logs into your express server as well
also if you're using replit its a really shit bot host
Fixxed it
are you allowed to just send in 0 servers to the API if you donโt want your bot to show how many servers?
Theoretically yes (I've seen servers with 0 or 1 server count) but it's better not to send anything then at least in the search there won't be this icon responsible for the server count and on the bot's website it will show 0 anyway
But you do you, generally speaking you shouldn't lie about the number of servers but this probably refers to purposely inflating the number of servers
yeah thats why im wondering, because ive already set it to the correct amount so am i allowed to set it back to 0
or would that be considered lying about it
There shouldn't be a problem with that I guess
bro how to use this api its so difficult to understand ...weak documentation
im using py
What you stuck on?
What you wanting to do?
I donโt normally use python so I likely canโt help you much. But the docs and the libs that wrap the api are fairly good
took time but its done
The current python topggpy library sucks, I use a fork of it which is better
what is use of topgg api?
You can submit the number of servers and commands list on your bot's page or fetch information about bots submitted on top.gg
ok give me api
wellcan u tell the use again
All endpoints are explained in the documentation
i went to docs but i cant fidn ouit the api
No need to use webhooks.
You can just use a Token with Read/Write permission.
You won't get the votes "live" when they happen with that
That's the whole point of webhooks
To reward/thank a user right after they vote
Not once they use a command
- not sure why you felt the need to reply to a message that was sent over a week ago...
im getting the error:
AxiosError: Request failed with status code 500
when posting server count to top.gg. this used to work, i haven't changed any code:
const result = await axios.post(
`https://top.gg/api/bots/${clientId}/stats`,
{ server_count: client.guilds.cache.size },
{ headers: { Authorization: postToken, "Content-Type": "application/json" } }
);
Derek, I'll send you the logs directly. I checked everything on my side and the only thing is that it sends me back to the top-gg/sdk API problem.
escaleted the issue
Can I send you private?
Why?
Hey apologies let me take a look. I did some refactoring on an internal service and didnโt catch this
Read 1 message above yours
can you send me your bot id?
I think this may have to do with the stricter validation I pushed to the API
998547879201349693
hmm okay thanks for sharing
@tender steppe @elfin marlin @lapis igloo @brazen cobalt A fix is deploying now
Thanks for reporting the issue!
No worries, thank you ๐ค
ty!!
ofc!
Hi I need support
Just ask your question(s) or describe your problem I guess
I cannot request A POST from topgg how do I get the token authorization ?
it seem doesn't work to me
fixed it
for who have the same error, just let the array in post body without other property
await apiV1.post("/projects/@me/commands", commandsArray);
The error tells you
this is my top.ggWebhook.js file, the voting logs dont work but it updates the bot server count on top.gg
can you share how commandsArray looks like? cz for me, when I try to pass ApplicaitonCommand[] with the request, I get:
TypeError: Do not know how to serialize a BigInt
Update: I found it!
Here's the snippet
const { Routes } = require('discord.js');
const commandsArray = client.rest.get(Routes.applicationCommands(client.user.id));
const commandsArray = clientCommands
.filter((command) => !command?.isDev)
.map((command) => ({
options: command.data?.options ?? [],
name: command.data?.name ?? "sem-nome",
name_localizations: command.data?.name_localizations ?? null,
description: command.data?.description ?? "Sem descriรงรฃo",
description_localizations:
command.data?.description_localizations ?? null,
contexts: command.data?.contexts ?? [],
default_permission: command.data?.default_permission ?? null,
default_member_permissions:
command.data?.default_member_permissions ?? null,
dm_permission: command.data?.dm_permission ?? true,
integration_types: command.data?.integration_types ?? [],
nsfw: command.data?.nsfw ?? false,
}));
Itโs client.rest.get btw, the .rest is the rest instance, then . whatever is the route
.get .post .patch etc
oh mb
are vote responses on v1 api cached? 'cause I voted but keep getting 404, correct user id and token
no they are not cached
show your fetch call?
suspend fun hasUserVotedLast12Hours(
userId: String,
): Boolean {
try {
val uri = UriComponentsBuilder.fromUri(URI("https://top.gg/api/v1"))
.pathSegment("projects", "@me", "votes", userId)
.build()
.toUriString()
val body: TopggVoteResponse = httpClient.get(uri).body()
log.info { body }
return body.createdAt.isAfter(Instant.now().minusSeconds(43201))
} catch (e: ClientRequestException) {
if (e.response.status.value == 404)
return false
else
log.error("Failed fetching last vote from top.gg", e)
return true
} catch (t: Throwable) {
log.error("Failed fetching last vote from top.gg", t)
return true
}
REQUEST: https://top.gg/api/v1/projects/@me/votes/256851887502917633
METHOD: HttpMethod(value=GET)
COMMON HEADERS
-> Accept: application/json; application/json
-> Accept-Charset: UTF-8
-> Authorization: Bearer mytokenshh
-> Content-Type: application/json
CONTENT HEADERS
-> Content-Length: 0
2025-10-07T01:55:32.776+02:00 INFO 30176 --- [atcher-worker-3] io.ktor.client.HttpClient : RESPONSE: 404 Not Found
METHOD: HttpMethod(value=GET)
FROM: https://top.gg/api/v1/projects/@me/votes/256851887502917633
COMMON HEADERS
-> CF-RAY: 98a917192a6fcfef-MAD
-> Connection: keep-alive
-> Content-Length: 176
-> Content-Type: application/problem+json; charset=utf-8
-> Date: Mon, 06 Oct 2025 23:55:32 GMT
-> Server: cloudflare
-> Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
-> X-Content-Type-Options: nosniff
-> alt-svc: h3=":443"; ma=86400
-> cf-cache-status: DYNAMIC
-> via: 1.1 google
-> x-cloud-trace-context: 20de9faf6ebebd717c75b67c317192eb;o=1
@jagged pine is that the discord User ID?
you need to append ?source=discord if you want to check a discord User ID
ah my bad I thought source was for analytics purposes, thanks for the clarification ๐ซถ
glad that worked!
Bro wtf
Not even joking, I opened ur profile and Iโve been trying to sleep, I got bombed by the brightness
where do I find the docs
Thanks!
see
Thats no longer the url to go to webhooks
Try this one: https://top.gg/bot/1411783383217999982/dashboard/integrations
ohhh
If I'm just testing things, can I upload a "blank" bot to Top.gg, or is that not allowed?
I'm a small bot dev, trying to work on a feature for another bot
Your bot still needs to be approved so you can't actually submit a "blank" bot on top.gg
I mean you can but it will be declined anyways
I see, is there a way to set up a test environment?
i hate to do this as i know the question is asked quite often, but i'm running into issues updating my bot's server count on the site. i've gotten to the point of sending what seems to be a valid request (i.e. api gives me a 200 back), but the count on the bot's page still doesn't reflect it. i've both reloaded the page and clicked the "refresh data" button and neither seem to do the trick. the requests seem to have just reset the count to 0 from whatever it was when it was registered
Are you using a top.gg library?
i've tried
- go-dbl / go-sdk
- stdlib requests in a background service
- just straight curl requests
no dice
i also tried new rw key and legacy key
i've also tried a few different data shapes, tried doing an int in server count with all the proper shard data, tried changing server count to an array to behave like shards, tried doing it with no shard data, no dice
but 200s from all requests
I'm not sure if the go lang library has been tested in a long time.
Curl example though(Just tested and works)
curl -X POST \
https://top.gg/api/bots/BOT_ID_HERE/stats \
-H "Authorization: YOUR_TOP.GG_LEGACY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"server_count": SERVER_COUNT_HERE}'
BOT id, legacy token and server count need to be set.
The api is in a really weird state right now(imo)
okay so doing legacy token + just the server count seems to have done the trick. does the shard stuff just not work?
It was deprecated
we dont use shard counts anymore, docs havent been updated to reflect it
the api of ragebait and trolling
I want to pin that so bad
I just would like an answer to this, please
I really donโt think so
Your best bet is to actually make the bot , make sure it follows both discords and top.gg guidelines
Once approved
You can do whatever tests you want with it
Hey guys!
Is there a webhook page for servers?
I saw in the documentation that you have this link for bots:
https://top.gg/bot/:your-bot-id/webhooks
But can't find it for servers... 
Not yet, apparently this is planned but for now there is only an API route to check if someone has voted
Is there a method to collect users who have voted within the last 12 (or better, 24) hours by chance?
Aside from locally caching ofc
Where would one find "v1" for webhooks??
I don't think webhooks have v1 just v0
We've never been told about a v1 for webhooks at least ^-^
It's literally mentioned in the bottom of that screenshot though lol
check what i asked in #support, if you can share your webhook listener i'd be happy to take a look
ye my English kind a slow but do you mean the webhook url?
well that's a good start, sure
do I have to share it here?.
cuz yk sharing webhook url public is kind a dangerous
no but are you able to send the code that listens to that url?
for example, my webhook url is something like
integrations.wabbit.gg/vote
and i have an express route, voteRoutes.js listening on my server for /vote events
do you have something like that set up?
eh no..
and I still dont know what code do you guys mean when you say share your code
What do you use to get information about whether someone has voted?
look, this is example code that i use to listen to top.gg webhook events
const globalProfileModel = require("../models/globalProfileModel");
const createVoteReminder = require("../functions/createVoteReminderDocument");
const validateTopGG = (req, res, next) => {
const authHeader = req.headers.authorization;
if (!authHeader) {
return res.status(400).json({
success: false,
message: "Invalid webhook key"
});
}
if (authHeader !== process.env.TOP_GG_WEBHOOK_KEY) {
return res.status(403).json({
success: false,
message: "Invalid webhook key"
});
}
next();
};
const handleUserVote = async (req, res) => {
try {
const { user } = req.body;
const userProfile = await globalProfileModel.findOneAndUpdate({
userId: user,
}, {
$inc: {
totalVotes: 1,
availableVoteCredits: 1,
},
$set: {
lastVoted: new Date(),
}
}, { new: true, upsert: true });
if (userProfile && userProfile.voteReminders) await createVoteReminder(user);
return res.status(200).json({
success: true,
message: "Vote received"
});
} catch {
return res.status(500).json({
success: false,
message: "Unknown error",
details: error.message
});
}
};
module.exports = [validateTopGG, handleUserVote];
server.js
const userVote = require("../routes/userVote");
app.post("/vote", userVote);
you need something like a simple express server
le ne explain what i did
i searched for top gg webhooks and it gave me this Web https://webhook-topgg.com/new/url than i clicked on start than i shared my webhook url from my server and it asked me what kind of message do you want like only the Datum and name or how many votes i choesd the long one than it gave me a url and it said go to your bot edit section and click on interaction api and in the webhook url I added the webhook that this web gaved me https://webhook-topgg.com/new/url
and than I also added the authorization code also same as the website gaved me i clicked on send test and it sended the test message but when someone else is voting it doesn't send the message but when I vote it sends the message
Simplifying top.gg webhooks for all users, allowing non-developers and developers to use webhooks for their bot and server without confusing configuration.
oh a 3rd party service, i'm not familar with that
but i can take a look lol
Then you should contact them because this is not official tool made by top.gg
There should be link to their support server on the website
found it 
https://discord.gg/fBZBXSKqke
Literally in the right-down corner
ye didn't look at that bro..
nah I only speak English Germany and Kurdish

support kind a slow there..
btw how to do it in the top.gg way and not this one https://webhook-topgg.com/new/url
Simplifying top.gg webhooks for all users, allowing non-developers and developers to use webhooks for their bot and server without confusing configuration.
Like that for example. You have to host your own webserver to listen to top.gg webhook requests
Webserver?
Yes
he asking for topgg webhook password?
idk how he did it but he made me a command and he said js use /votes and you will see all your votes..
all your votes details *
Why I am getting this error from like 1-2 days
In my bot I added vote only system so people needs to vote but rn beacause of this error people cant got that msg so they also can't acces the vote only Commands ?
Note: from starting it's working fine I got this error like yesterday maybe
Now again so I am here
What api route are you using?

why tf does the docs mention webhooks v1 when its not even being worked on yet
that's dumb as bricks
im removing it
i cant even find which commit that came from
I have my bot verified and everything is alright but how can i track votes for a specific server (my server)
Is there documentation for how to get the reviews of the bot
That's not possible, maybe in the future
You can use api v1 I believe, never used it tho
https://docs.top.gg/docs/API/v1/projects#get-vote-status-by-user
@warped gate @dusk yacht
const express = require('express');
const app = express();
app.use(express.json());
app.post('/webhooks/topgg', (req, res) => {
console.log(request.body);
});
app.listen(3000, () => {
console.log(`Example app listening on port ${port}`);
});
request.body.user to get the user id
Pls someone help
Still facing
its returns 404 if a user has never voted before
iirc
Ohh I see
So how can I fix this ?
Handle 404 properly
How ? ๐ฅธ
Nvm
I can fix that
Just I am not understanding the issue before
Now I got that thanks
I will fix that easily

hey
hey hey, i have a question to the guidelines and the API
when I program a web scraping services to check the reviews (to reward users for it)
is this against your guidelines?
Yes, you can't reward users for reviews afaik
And you shouldn't scrape the website either
yes xd,
thats ONLY a idea, to take the reviewer's
does this apply in general?
so you MUST not reward users for reviews?
or you can't reward users like that for reviews??
(if the latter: how do you do it within the framework of the guidelines)
you can't reward people for reviews. simple. those are the guidelines. you can ask people to review, but that's it
can't and must not are the same thing
you'd be breaking the guidelines if you rewarded users
okey thanks
i will code my projekt whit another feature xd
i will not break the guidelines
You can reward them for voting though
How to get top.gg api for vote locked cmnd setup
They have a video on their YouTube channel, plus their docs (description of this channel) for it which is what I used, I havenโt setup a command yet
Oh lol
Can you send me video link?
Quick showcase on how the top.gg API can be easily used with the help of the top.gg javascript SDK to give users a reward for voting for your bot as well as how you can easily implement the autoposter library to keep your bot stats up to date on the website.
Credits
Produced...
What exactly does clicking the "Refresh data" button do? 
In case of bots, it fetches the bot name and avatar from the Discord API
In the case of servers it does the same + probably updates the number of members
hello I wanted to ask, how can we update the number of servers my bot is in?
You have to implement the Top.gg API and tell it how many. In other words, you could tell it your bot is in 69 million guilds. It's not really fact checked, which I feel is a bit of a questionable tactic.
hm.
If the number is very far out, it can be reported to staff and taken down/banned
They do moderate it, but not automatically
fair enough
Where can I locate the token
integration & API (when u wanna edit ur bot)
Hello where can I locate the token?
Read messages above
hey can someone help me set up a vote-tracking system for server? dm me or reply if you can help, thanks
use any bot like vote tracker
if you need help setting up the bot, you can join their support server
I use vote tracker when i add the server for tracking it provides me a Link i have to go there and paste the webhook and the key provided by that bot but the site says 404 error
is your bot approved on the site?
I am talking about server
is the server approved on the site
Yeah
click edit, then integrations and api on the left sidebar
Ok let me try
I can't see anything except that token one
yea u gotta use that
When i use the command to add my Server for tracking it gives me this link
https://top.gg/servers/1420685552390504520/edit
But it returns a 404 error
ask their support server for help, not here
:pareshan:
Do you have any idea about where can I add webhooks?
@radiant pasture ^ sorry for the ping
Or i can't track the server votes anymore?
Technically you can, but not via webhooks but via API
Probably impractical with more users, but possible
thanks
It's dead
404\
do you too?
at Api._request (/home/container/node_modules/@top-gg/sdk/dist/structs/Api.js:61:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async InteractionCreate.run (/home/container/dist/events/client/InteractionCreate.js:830:23) {
response: {
statusCode: 404,
headers: {
date: 'Sun, 02 Nov 2025 12:16:41 GMT',
'content-type': 'application/json',
'content-length': '29',
connection: 'keep-alive',
'cf-ray': '998390802a648ed3-FRA',
vary: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch',
'x-cloud-trace-context': 'e93118ea57e9c412ea343e2332510259',
via: '1.1 google',
'alt-svc': 'h3=":443"; ma=86400',
'cf-cache-status': 'DYNAMIC',
'strict-transport-security': 'max-age=15552000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
server: 'cloudflare'
},
trailers: {},
opaque: null,
body: BodyReadable {
_events: [Object],
_readableState: [ReadableState],
_read: [Function: bound resume],
_maxListeners: undefined,
_eventsCount: 3,
Symbol(shapeMode): true,
Symbol(kCapture): false,
Symbol(abort): [Function: abort],
Symbol(kConsume): [Object],
Symbol(kBody): null,
Symbol(kContentType): 'application/json',
Symbol(kReading): false
},
context: undefined
}
}
anyone can help
What route are you using?
?
try {
// DODAJ SPRAWDZENIE CZY topGG JEST DOSTฤPNE
if (!this.client.topGG || typeof this.client.topGG.hasVoted !== 'function') {
console.log('โ ๏ธ TopGG nie jest dostฤpne, pomijam sprawdzanie gลosรณw');
// Kontynuuj wykonywanie komendy bez blokowania
} else {
const voted = await this.client.topGG.hasVoted(interaction.user.id);
if (!voted) {
const voteBtn = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()
.setLabel(T(locale, "event.interaction.vote_button"))
.setURL(`https://top.gg/bot/${this.client.user?.id}/vote`)
.setStyle(ButtonStyle.Link),
);
return await interaction.reply({
content: T(locale, "event.interaction.vote_message"),
components: [voteBtn],
flags: MessageFlags.Ephemeral,
});
}
}
} catch (error) {
// ลAP I LOGUJ BลฤDY TOP.GG BEZ RZUCANIA ICH DALEJ
console.log('โ Bลฤ
d Top.gg przy sprawdzaniu gลosรณw:', error.message);
// KONTYNUUJ WYKONYWANIE KOMENDY POMIMO BลฤDU
}
}```
try {
const autoPoster = AutoPoster(env.TOPGG, this.client);
autoPoster.on("posted", () => {
this.client.logger.info("โ
Successfully posted stats to Top.gg!");
});
autoPoster.on("error", (error) => {
this.client.logger.warn(`โ ๏ธ Top.gg autoposter error: ${error.message}`);
// Nie rzucaj bลฤdu dalej - tylko loguj
});
this.client.logger.info("Top.gg autoposter initialized.");
} catch (error) {
this.client.logger.warn(`โ Failed to initialize Top.gg autoposter: ${error.message}`);
}
} else {
this.client.logger.warn("Top.gg token not found or empty. Skipping auto poster.");
}```
So you check if the user has voted for your bot. If the user has not voted for your bot even once, then top.gg api will return 404. You have to handle that
So it's not the code's fault, but the fact that it didn't vote?
Yea


hi
Where i can get
Go you you're bots page -> edit -> integrations and make one
Ok
Then add it in the correct headers
๐
Uhhhhh give me a sec I haven't used the new layout in a while
Is your bot approved?
Go in profile then select bot then click on edit then APIs then see token one
Bru
No, my bot Delince for reason long desc. (ONLY DESC???!?!!)
Its Just Desc
Your bot needs to be approved before you can use the API
You can dispute the denial in a #staff-tickets
Ok
I dm fellintron
But he offline
Surprisingly time zones exist and they do it on a voluntarily basis hence have a life outside of it
Hey, does anyone know why the v0 bots endpoints don't work as documented since a few days? eg.:
- GET
https://top.gg/api/bots/:botId/statsactually behaves likehttps://top.gg/api/bots/stats(which isn't documented btw) and returns your own bot stats, no matter what botId is in the URL - GET
https://top.gg/api/bots/:botIdreturns a 404, no matter what botId is in the URL
Anyone have an answer for this? ^
The docs on .NET (https://docs.top.gg/docs/Libraries/dotnet) mention a library called DiscordBotsList.Api.
This, however, does not seem to be available:
PS [...]> Install-Package DiscordBotsList.Api
Install-Package : No match was found for the specified search criteria and package name 'DiscordBotsList.Api'. Try Get-PackageSource to see all
available registered package sources.
At line:1 char:1
+ Install-Package DiscordBotsList.Api
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
nuget search (https://www.nuget.org/packages?q=discordbotlist) for "discordbotlist" also only gives DiscordBotList.Core, which only really seems to include models on bot/user/shard/etc. but with no API.
hi, im checking my code after a long time and https://top.gg/api/bots/<botid> seems to no longer work. When i check the docs, it is actually on the v0 API as a route to use, but i get the error 404 richened web.
https://top.gg/api/bots/<botid>/stats also works. Am i doing something wrong? Did something change while i was busy doing nothing?
oh
it is documented tho stats as a POST on the website @thorny otter
Yeah but Iโm talking about the GET endpoint. POST seems to still work as expected afaik
The GET endpoint worked fine until about a week ago
That screenshot isn't of much use 
I'd guess it returns a 404 like quite some of the messages above mention
Yes it does




