API Documentation
- Basics
- Authentication
- Limits and tokens
- Errors
- Examples
- Status
- Player statistics
- Server leaderboards
- Wallets
- Spawner wallets
- Linked accounts
- Scammer database
- Minigames and casino
Basics
Base URL: https://api.trybotcommunity.xyz
The API is read-only: only GET requests, answers in JSON. Paths that are not listed on this page are refused. Times are Unix timestamps. The answers shown are examples and shortened.
Authentication
Run /api in Discord to get your personal key. Send it as header X-API-Key (preferred) or as query parameter apiKey. Only GET /api/status works without a key.
Keep your key private: anyone who has it uses your daily tokens. You can create a new one with the button below /api; the old one stops working.
Rule: There has to be some kind of visible credit (like in an embed footer) or else your requests will get blocked.
Limits and tokens
- 120 requests per minute per IP address, 20 per minute on live endpoints.
- Live statistics and live server leaderboards cost one token. You have 24 tokens per day, shared with
/statsand/leaderboardin Discord; they reset at midnight UTC. The headerX-Tokens-Remainingtells you what is left. - These two live endpoints also share one cooldown for all users: one fetch every 60 seconds. Refused requests answer 429 with
retryAfterSeconds. - A token is taken as soon as the key is accepted, also when the request is then refused by the cooldown, an unknown type or an offline bot.
- Requests without a
User-Agentheader, or with the one of a scanning tool (this includes the default of the Python library httpx), are refused. A request is cut off after 10 seconds.
Errors
Errors answer with JSON of the form { "error": "..." }.
| Status | Meaning |
|---|---|
| 400 | Unknown type or invalid value. |
| 401 | API key missing or invalid. |
| 403 | API access suspended, path not public, or client refused. |
| 404 | Nothing found. |
| 405 | Only GET requests are allowed. |
| 429 | Too many requests, cooldown running or no tokens left. |
| 500 | Something failed on our side. |
| 503 | The statistics bot is offline or the request took too long. |
Examples
curl
curl -H "X-API-Key: your_key" https://api.trybotcommunity.xyz/api/stats/PlayerName/live
JavaScript
const res = await fetch('https://api.trybotcommunity.xyz/api/scammers/check/PlayerName', {
headers: { 'X-API-Key': 'your_key' },
});
const data = await res.json();
Python
import requests
res = requests.get('https://api.trybotcommunity.xyz/api/leaderboard/wallet',
headers={'X-API-Key': 'your_key'})
data = res.json()
Status
GET /api/status
No key needed.
Health check: state of the money bot TryBotC. uptime is in seconds.
{
"connected": true,
"ready": true,
"username": "TryBotC",
"lastPingMs": 42,
"uptime": 3600,
"manualStop": false
}
Player statistics
GET /api/stats/:username
Key needed, no token.
The latest saved snapshot of a tracked player. Players are tracked with /track in Discord.
Answers 202 if the player is tracked but not saved yet, 404 if the player is not tracked.
{
"fetchedAt": 1767225600,
"playtime": "3d 4h",
"money": "21.23k",
"moneyRank": "112",
"gems": "35",
"kills": 12,
"deaths": 7,
"kd": "1.71"
}
GET /api/stats/:username/live
Costs 1 token.
Reads the statistics in game right now. Same values as above plus player, server, online and ping.
Answers 503 while the statistics bot is offline.
{
"player": "PlayerName",
"server": "economy",
"fetchedAt": 1767225600,
"online": true,
"ping": 35,
"money": "21.23k",
"kills": 12
}
GET /api/history/:username
Key needed, no token.
All saved snapshots of a tracked player, oldest first. 404 if there are none.
[
{
"count": 1,
"fetchedAt": 1767139200,
"money": "19.8k"
},
{
"count": 2,
"fetchedAt": 1767225600,
"money": "21.23k"
}
]
Server leaderboards
GET /api/leaderboard/:type
Key needed, no token.
Ranking of the tracked players, at most 50. playtime and afkTime are in minutes.
Types: money, gems, spawner, kills, deaths, killstreak, playtime, afkTime, blocksPlaced, blocksBroken.
[
{
"username": "PlayerName",
"value": 21230,
"formatted": "21.23k",
"updatedAt": 1767225600
}
]
GET /api/leaderboard/:type/live
Costs 1 token.
The leaderboard of the game server right now.
Types: money, gems, kills, deaths, killstreak, deathstreak, playtime, afktime, cookiestotal, spawner, blocksbroken, blocksplaced, cratesopened, auctionsales, purchaseditems, solditems, invest, coinflip, gemflip.
{
"type": "money",
"fetchedAt": 1767225600,
"entries": [
{
"rank": 1,
"username": "PlayerName",
"value": "1.2b"
}
]
}
GET /api/leaderboard/:type/history
Key needed, no token.
Saved daily snapshots of a server leaderboard, oldest first. Same types as the live endpoint.
Query: limit number of snapshots (default 30, at most 90), top entries per snapshot (default 10, at most 25).
{
"type": "money",
"count": 1,
"snapshots": [
{
"fetchedAt": 1767225600,
"entries": [
{
"rank": 1,
"username": "PlayerName",
"value": "1.2b"
}
]
}
]
}
Wallets
GET /api/leaderboard/wallet
Key needed, no token.
The 50 largest wallets.
[
{
"discordId": "123456789012345678",
"username": "PlayerName",
"balance": 1500000,
"formattedBalance": "1.5M"
}
]
GET /api/leaderboard/wallet/live
Key needed, no token.
The largest wallets with totals over all wallets.
Query: limit (default 50, at most 100).
{
"type": "wallet",
"totalBalance": 9000000,
"formattedTotal": "9M",
"totalHolders": 40,
"count": 1,
"fetchedAt": 1767225600,
"leaderboard": [
{
"rank": 1,
"discordId": "123456789012345678",
"username": "PlayerName",
"balance": 1500000,
"formattedBalance": "1.5M"
}
]
}
GET /api/leaderboard/wallet/history
Key needed, no token.
Saved daily snapshots of the wallet leaderboard.
Query: limit number of snapshots (default 30, at most 90), top entries per snapshot (default 10, at most 25).
{
"type": "wallet",
"count": 1,
"snapshots": [
{
"fetchedAt": 1767225600,
"entries": [
{
"rank": 1,
"discordId": "123456789012345678",
"username": "PlayerName",
"balance": 1500000,
"formattedBalance": "1.5M"
}
]
}
]
}
GET /api/wallet/:discordId
Key needed, no token.
Balance of a user. recentTransactions (the last 20) is only filled when you ask for your own Discord ID, the one your API key belongs to.
{
"discordId": "123456789012345678",
"minecraftUsername": "PlayerName",
"balance": 1500000,
"formattedBalance": "1.5M"
}
GET /api/wallet/:identifier/live
Key needed, no token.
Current balance of a user, without transactions.
:identifier is a Discord ID or a linked Minecraft name.
{
"discordId": "123456789012345678",
"minecraftUsername": "PlayerName",
"balance": 1500000,
"formattedBalance": "1.5M",
"fetchedAt": 1767225600
}
Spawner wallets
GET /api/leaderboard/spawnerwallet
Key needed, no token.
The 50 spawner wallets with the highest income per minute.
[
{
"discordId": "123456789012345678",
"username": "PlayerName",
"totalSpawnerCount": 10,
"totalIncomePerMin": 39,
"formattedIncome": "39/min",
"spawnerBreakdown": {
"zombie": 10
}
}
]
GET /api/leaderboard/spawnerwallet/live
Key needed, no token.
The same with totals over all spawner wallets and a rank.
Query: limit (default 50, at most 100).
{
"type": "spawnerwallet",
"totalSpawnerCount": 10,
"totalIncomePerMin": 39,
"formattedTotalIncome": "39/min",
"totalHolders": 1,
"count": 1,
"fetchedAt": 1767225600,
"leaderboard": [
{
"rank": 1,
"discordId": "123456789012345678",
"username": "PlayerName",
"totalSpawnerCount": 10
}
]
}
GET /api/leaderboard/spawnerwallet/history
Key needed, no token.
Saved daily snapshots of the spawner wallet leaderboard.
Query: limit number of snapshots (default 30, at most 90), top entries per snapshot (default 10, at most 25).
{
"type": "spawnerwallet",
"count": 1,
"snapshots": [
{
"fetchedAt": 1767225600,
"entries": [
{
"rank": 1,
"discordId": "123456789012345678",
"username": "PlayerName",
"totalIncomePerMin": 39,
"formattedIncome": "39/min"
}
]
}
]
}
GET /api/leaderboard/spawnerwallet/:spawnerType
Key needed, no token.
The 50 users with the most spawners of one type.
Types: zombie, skeleton, spider, creeper, blaze, irongolem, evoker.
[
{
"discordId": "123456789012345678",
"username": "PlayerName",
"spawnerType": "zombie",
"displayName": "Zombie",
"incomePerMin": 3.9,
"count": 10
}
]
GET /api/spawnerwallet/:discordId
Key needed, no token.
Spawner wallet of a user. recentTransactions only for your own Discord ID.
{
"discordId": "123456789012345678",
"minecraftUsername": "PlayerName",
"spawners": {
"zombie": {
"count": 10,
"displayName": "Zombie",
"incomePerMin": 3.9
}
}
}
GET /api/spawnerwallet/:identifier/live
Key needed, no token.
Current spawner wallet of a user with totals.
:identifier is a Discord ID or a linked Minecraft name.
{
"discordId": "123456789012345678",
"minecraftUsername": "PlayerName",
"spawners": {
"zombie": {
"count": 10,
"displayName": "Zombie",
"incomePerMin": 3.9
}
},
"totalSpawnerCount": 10,
"totalIncomePerMin": 39,
"formattedIncome": "39/min",
"fetchedAt": 1767225600
}
Linked accounts
GET /api/user/:discordId
Key needed, no token.
The Minecraft name linked to a Discord ID. 404 if there is none. linkedAt is a time in seconds.
{
"discordId": "123456789012345678",
"minecraftUsername": "PlayerName",
"linkedAt": 1767225600
}
GET /api/mcuser/:username
Key needed, no token.
Everything about a Minecraft name: link, tracking, latest statistics, scammer state and wallets.
{
"username": "PlayerName",
"discordId": "123456789012345678",
"linked": true,
"linkedAt": 1767225600,
"tracked": true,
"trackedSince": 1767139200,
"latestStats": {
"money": "21.23k"
},
"isScammer": false,
"walletBalance": 1500000,
"formattedBalance": "1.5M",
"spawnerWallet": {
"zombie": 10
}
}
Scammer database
GET /api/scammers
Key needed, no token.
All players on the scammer list, newest first.
[
{
"minecraftUsername": "playername",
"discordId": "123456789012345678",
"discordUsername": "name",
"reportIds": [
"id"
],
"createdAt": 1767225600
}
]
GET /api/scammers/check/:username
Key needed, no token.
Whether a Minecraft name is on the list.
{
"isScammer": false,
"scammer": null,
"approvedReports": 0,
"vouches": 0
}
GET /api/scammers/reports
Key needed, no token.
The last 100 approved reports. Who reported or reviewed them is not included.
[
{
"minecraftUsername": "playername",
"description": "What happened",
"proofUrls": [
"https://example.com/proof.png"
],
"status": "approved",
"createdAt": 1767225600
}
]
Minigames and casino
GET /api/minigames
Key needed, no token.
Games, newest first.
Query: discordId, gameType (for example rps), status (for example completed), limit (default 50, at most 100).
[
{
"gameType": "rps",
"challengerDiscordId": "123456789012345678",
"opponentDiscordId": "234567890123456789",
"betAmount": 1000,
"status": "completed",
"winnerDiscordId": "123456789012345678",
"createdAt": 1767225600
}
]
GET /api/minigames/stats/:discordId
Key needed, no token.
Wins, losses and money won and lost of a user.
{
"discordId": "123456789012345678",
"total": 10,
"wins": 6,
"losses": 3,
"draws": 1,
"winRate": "60.0%",
"totalWon": 6000,
"totalLost": 3000,
"netProfit": 3000,
"formattedProfit": "3K"
}