Vote rewards integration
Connect your game server to MU RANK to read eligible votes and award players in your game. Your server is responsible for validation and delivery of the reward.
You need a published project with at least one world, access to My servers, and a developer who can add a scheduled task to your game server. No game password is required.
1. Create your private API token
- Sign in as the project owner and open My servers → Statistics.
- In Reward integration, select Create API token. Copy it immediately: it is displayed only once.
- Store it in a secret manager or a server-only configuration file. Never put it in a URL, client-side code, screenshots, public repositories or logs.
Each project has its own token. Rotating it immediately disables the previous one; revoking it disables access until a new token is created.
2. Request votes over HTTPS
Send a GET request with the token in the X-Vote-Token header. Set MURANK_API_TOKEN securely in your server environment; the following is a shell example:
curl --fail-with-body --silent --show-error \
--header "X-Vote-Token: $MURANK_API_TOKEN" \
"https://mmorank.evomu.online/?page=vote_feed&after_id=0"A valid response is JSON. The fields below are an example, not real player data:
{
"project_id": 1,
"timezone": "Europe/Berlin",
"events": [
{
"id": 42,
"world_id": 5,
"world_name": "Example",
"game_identifier": "player_login",
"vote_day": "2026-12-01"
}
],
"next_after_id": 42
}idis the unique vote ID; use it for deduplication.world_ididentifies the selected world; map it to your game server. Use the ID as the stable key; world names can change.game_identifieris the game account login entered by the player. Validate it against your own account database.vote_dayis the calendar day in Europe/Berlin;project_ididentifies the project.
3. Process pages and grant rewards safely
- Save a durable cursor for this project. Start at
0and send it asafter_id. - For each event, verify the world and account. Record the pair
(project_id, id)in a persistent table with a unique constraint. - In the same game-database transaction, record the vote as processed and grant the configured reward. If the record already exists, do not grant the reward again.
- Only after every event on the page has been handled durably, save
next_after_idas the cursor and request the next page. If interrupted, retry safely using your ledger.
Each response contains at most 100 events. An empty page returns the cursor unchanged. Keep failed or unknown accounts in a durable retry queue or resolve them before advancing; do not silently discard them.
4. Schedule and test
Run the integration on your server on a schedule. The feed includes only votes with both a world and an account login, and only from completed Berlin calendar days. Today's votes appear after midnight in Berlin. Older votes recorded without these fields cannot be delivered through the feed.
Test in a non-production environment first: check a valid vote, an empty page, invalid accounts, retries and a repeated event. Ensure a replay never grants a second reward. This API has not been connected to any game database automatically.
An absent or invalid token returns HTTP 401; an invalid cursor returns HTTP 400. HTTP 403 indicates that the server did not detect HTTPS. Never log the token or game account logins. If a token is exposed, revoke or rotate it and update your integration.
