Use this endpoint to check when a player last voted for your server and when they will be allowed to vote again.
Make a simple GET request:
GET https://api.top-servers-hytale.com/api/v1/votes/<serverId>/<username>
60 requests/minute per IP
Request
GET https://api.top-servers-hytale.com/api/v1/votes/qiGVkdcdeixVR7hWwW4P9K/jhonDoe
Response
{
"lastVoteAt":1768296330,
"nextVoteAt":1768299930,
"canVote":true,
"totalVotes":42
}Timestamps are returned as Unix timestamps in seconds.
You can call this endpoint from your plugin or script to check if a player is allowed to vote reward again. If the current time is ≥ nextVoteAt, the player can vote and receive a reward.