Build anything on the same votes

A secret API for your game, a public API for your website, and signed webhooks for everything else. Small clients without dependencies save you the typing.

claim
curl -X POST -H "X-Api-Key: YOUR_KEY" \
  -d player=Zezima -d ref=A-NEW-UUID \
  "https://votescript.voterank.net/index.php?r=api/v1/claim"

{"ok": true, "player": "Zezima", "votes": 2,
 "items": [{"key": "995", "name": "Coins", "amount": 200000}]}

What it does

  • Game API

    Check, claim, redeem a code, list who is waiting, top voters.

  • Public API

    Texts, lists with images, rewards, top voters, counts, one player’s state.

  • Safe to repeat

    The same reference gives the same answer, so a lost answer costs nothing.

  • Keys stored as hashes

    A key is shown once. Create one per game server and delete it any time.

  • Plain text too

    For languages without JSON, claims can answer in simple lines.

  • Your own fields

    Keep links, rules and images in the dashboard and read them in your site.

Headless: you draw, we count

Start a vote from your own button, send the player to the address you get back, and show the state from the API. Callbacks, rewards and players stay with VoteScript.

browser
const vs = VoteScript.api('your-server');
const { sites } = await vs.server();
const { players } = await vs.top({ period: 'month', limit: 10 });
const url = await vs.vote('voterank', 'Zezima');

Clients

Java 8, Node, Python and .NET. One file each.

Questions

Is the public API open to everyone?
Reading is. Starting a vote from a browser works only on websites you allowed, and from a server with your API key.
Are there limits?
600 requests in 5 minutes per address, or 6,000 with a key.
Where is the reference?
On the API reference page, with every method, parameter and answer.

Next

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.