API Documentation

Integrate with our voting system

API Documentation

Complete reference for integrating with our voting system. Choose the integration method that best fits your needs.

Simple Integration

Basic voting links and traffic tracking

Postback System

Real-time vote confirmations

Incentive Voting

Reward players for voting

Authentication

All API endpoints require authentication using API keys. Get your keys from the dashboard.

API Key Authentication

// Include in all API requests
{
    "api_key": "your-api-key",
    "api_secret": "your-api-secret"
}

Note: API keys are unique per game and can be found in your dashboard under "Button Codes".

Simple Integration

The easiest way to get started. No API calls required.

Basic Voting Link

https://mmo100.top/game/{game-slug}

Direct link to your game's voting page.

With Traffic Tracking

https://mmo100.top/in?u={game-slug}&a=in

Counts as "In" traffic and redirects to voting page.

HTML Example

<a href="https://mmo100.top/in?u=your-game-slug&a=in" 
   target="_blank" 
   class="vote-button">
    🗳️ Vote for Our Server
</a>

Postback System

Real-time vote confirmations sent to your server.

Simple Postback

https://mmo100.top/game/{game-slug}?vote=1&pingUsername={player-name}

When a player votes, we'll send a POST request to your configured postback URL.

Postback Data

POST /your-postback-url
Content-Type: application/x-www-form-urlencoded

pingUsername=PlayerName
vote=1
timestamp=1234567890

API Postback

POST /api/postback/vote

Request Body

{
    "game_id": 123,
    "api_key": "your-api-key",
    "user_id": 456,
    "ip_address": "192.168.1.1",
    "vote_value": 1,
    "timestamp": 1234567890,
    "signature": "generated-signature"
}

Response

{
    "success": true,
    "message": "Vote recorded successfully",
    "vote_id": 789,
    "total_votes": 150
}

Incentive Voting

Reward players for voting with in-game items, currency, or experience.

Vote with Rewards

POST /api/incentive/vote

Request Body

{
    "game_id": 123,
    "api_key": "your-api-key",
    "player_name": "PlayerName",
    "player_ip": "192.168.1.1",
    "vote_value": 1,
    "reward_type": "currency",
    "reward_amount": 1000,
    "reward_item": "Gold",
    "timestamp": 1234567890,
    "signature": "generated-signature"
}

Response

{
    "success": true,
    "message": "Vote recorded successfully",
    "vote_id": 789,
    "total_votes": 150,
    "reward": {
        "id": 456,
        "type": "currency",
        "amount": 1000,
        "item": "Gold",
        "status": "approved"
    },
    "reward_status": "approved"
}

Reward Types

Currency

"reward_type": "currency"
"reward_amount": 1000
"reward_item": "Gold"

Items

"reward_type": "item"
"reward_amount": 1
"reward_item": "Legendary Sword"

Experience

"reward_type": "experience"
"reward_amount": 5000
"reward_item": "XP"

Points

"reward_type": "points"
"reward_amount": 100
"reward_item": "Vote Points"

Signature Generation

All API requests require a signature for security. Here's how to generate it.

PHP Example

<?php
function generateSignature($data, $secret) {
    // Remove signature from data
    unset($data['signature']);
    
    // Sort data alphabetically by key
    ksort($data);
    
    // Create query string
    $queryString = http_build_query($data);
    
    // Generate HMAC signature
    return hash_hmac('sha256', $queryString, $secret);
}

// Example usage
$data = [
    'game_id' => 123,
    'api_key' => 'your-api-key',
    'player_name' => 'PlayerName',
    'vote_value' => 1,
    'timestamp' => time()
];

$signature = generateSignature($data, 'your-api-secret');
$data['signature'] = $signature;
?>

Error Codes

400 - Bad Request

Invalid request data or missing required parameters.

401 - Unauthorized

Invalid API key or signature.

409 - Conflict

Duplicate vote or rate limit exceeded.

500 - Server Error

Internal server error. Please try again later.

Rate Limits

Voting Limits

  • Per IP: 1 vote per 24 hours per game
  • Per Player: 1 vote per 24 hours per game
  • API Calls: 100 requests per minute per API key

Need Help?

Integration Guide

Step-by-step guide with examples for all integration methods.

View Guide

Contact Support

Having trouble? Our support team is here to help.

Contact Us