API Reseller Panel Developer Docs
Everything you need to integrate our API into your own application โ authentication, endpoints, request parameters, and ready-to-run code samples in your favorite language.
Authentication
Every request is authenticated with your personal API Key via the key query parameter. You'll get your own key once an Admin creates a reseller account for you โ log in to your dashboard to see it.
Don't have an account yet? Log in or contact the Admin to get one.
Endpoint
Send a GET request to this single endpoint for every category โ the amount parameter tells the server which one.
Query Parameters
| Parameter | Required | Description |
|---|---|---|
key |
Required | Your personal API Key. |
amount |
Required | The category username you want to use โ see the Categories section below. |
server_name |
Required | The server/region value required by the upstream API. |
uid |
Required | The target player/account UID. |
Available Categories
Code Examples
Sample requests in a few languages โ swap YOUR_API_KEY for your real API key once you have one.
import requests
url = "https://mahin.top/api"
params = {
"key": "YOUR_API_KEY",
"server_name": "IND",
"uid": "123456789",
"amount": "like"
}
response = requests.get(url, params=params)
result = response.json()
print(result["data"])
print(result["limit_info"])
<?php
$url = "https://mahin.top/api?" . http_build_query([
"key" => "YOUR_API_KEY",
"server_name" => "IND",
"uid" => "123456789",
"amount" => "like",
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result["data"]);
print_r($result["limit_info"]);
const params = new URLSearchParams({
key: "YOUR_API_KEY",
server_name: "IND",
uid: "123456789",
amount: "like"
});
fetch(`https://mahin.top/api?${params}`)
.then(res => res.json())
.then(result => {
console.log(result.data);
console.log(result.limit_info);
});
curl -G "https://mahin.top/api" \ -d "key=YOUR_API_KEY" \ -d "server_name=IND" \ -d "uid=123456789" \ -d "amount=like"
Response Format
Every response is wrapped in the same structure โ the upstream API's raw output stays inside data, and your current usage is always included in limit_info.
Error Reference
When something goes wrong, you'll receive status: 0 with a message explaining why.
| Message | Meaning |
|---|---|
| Invalid API key. | The key parameter doesn't match any account. |
| Your account has been blocked. | Contact the Admin โ your access is currently suspended. |
| Your account has expired. | Your account's time limit has passed. |
| Your limit has been exhausted. | You've used your full allocated limit. |
| Your daily limit has been reached. | Resets automatically at 4:00 AM. |
| You do not have permission to use this category. | The amount value isn't in your allowed categories. |
| This API has reached its usage limit. | The upstream API itself is temporarily unavailable โ try again later. |