top.gg votes, with rewards in your game

Set up the top.gg callback (postback) step by step, check it arrives, and reward voters in the game. For Discord server servers, one vote every 12 hours.

  • Confirmed: the list calls back, signed
  • One vote every 12 hours
  • For Discord server

Have your server on top.gg

Your server must be listed there. You need this from the list: Your top.gg page link, for example https://top.gg/bot/1234567890.

Paste it into VoteScript

Open Vote sites, or step 2 of the setup, and paste it. VoteScript builds the vote link by itself.

You should now see: top.gg on your vote page.

Copy the callback URL to top.gg

Copy the URL VoteScript shows for this list, and paste it into your settings on top.gg. Use it exactly as shown.

Tip: Create a v1 webhook for vote.create and copy its secret here.

Copy the secret back

Paste the webhook secret (starts with whs_) from top.gg into VoteScript. It is required: callbacks that are not signed with it are refused.

Test it

Use the test button on top.gg if it has one, or open your vote page, enter your name and vote once.

You should now see: A line in the callback log.

What top.gg sends

VoteScript reads these fields for you. Useful when you compare with the callback log.

FieldMeaning
data.query.playerThe player
data.user.platform_idThe player
typeThe vote counts when this is vote.create
Header X-Topgg-Signature#v1SHA256 signature made with your secret
Header X-Topgg-Signature#tWhen it was signed; older than 10 minutes is refused
data.idId of this vote, so a retry never counts twice
data.expires_atWhen the player may vote again

Questions

How often can players vote on top.gg?
VoteScript is set to every 12 hours. You can change it for your server if the list changes it.
How is a vote on top.gg confirmed?
top.gg calls your callback URL after each vote, signed with your secret.
Nothing arrives from top.gg
Compare the URL there with the one in VoteScript, with https. If a firewall or Cloudflare stands in front, let the callback through.

Read from its webhook documentation in November 2026. Lists change: the callback log shows what arrives. top.gg is not connected to VoteScript, and its name belongs to its owner.

More

Give your players one place to vote

Your page is live as soon as you create your server. You can connect the rest step by step.