Complete documentation for the TrySMP API (TryApi)
Version 1.0
TryApi provides real-time access to player data from the TrySMP server. Get player balances, statistics, and monitor bot status through simple HTTP requests.
Get any player's current money balance
Access detailed player stats and metrics
Real-time bot status
All API requests require authentication using the x-api-key header.
GET /api/v1/bot/status x-api-key: TRYAPI_I4I5J34L5 Content-Type: application/json
Get the current status and information about the ingame bot.
{
"online": true,
"username": "TryApi",
"money": 32000,
"gems": 42
}
Get the current status about the ingame bot.
{
"online": true,
}
Get the current money balance for any player by their in-game name (IGN).
ign - Player's in-game name (2-17 characters){
"ign": "daimyh",
"success": true,
"balance": 1000000,
"formattedBalance": "1M"
}
Get comprehensive statistics for any player including money, gems, kills, deaths, playtime, and spawner rate.
ign - Player's in-game name (2-17 characters){
"ign": "daimyh",
"stats": {
"money": "1.03M",
"gems": "42 423",
"playtime": "14d 7h",
"spawnerRate": "9.08B ($/pm)",
"kills": 147,
"deaths": 23
}
}
Get a specific statistic field for a player. More efficient when you only need one piece of data.
field - Stat field: money, gems, kills, deaths, playtime, spawnerign - Player's in-game name (2-17 characters){
"ign": "daimyh",
"money": "1M"
}
Checks if a player is currently online by using a silent gem command trick.
ign - Player's in-game name (2-17 characters){
"ign": "daimyh",
"online": true
}
Fetch current server performance including ping, TPS, and player count.
{
"ping": 87,
"tps": 19.8,
"players": 14,
"username": "TryApi"
}
const getPlayerBalance = async (ign) => { try { const response = await fetch(`https://tryapi.daimy.xyz/api/v1/balance/${ign}`, { headers: { 'x-api-key': 'TRYAPI_I4I5J34L5', 'Content-Type': 'application/json' } }); const data = await response.json(); console.log(`${data.ign} has $${data.formattedBalance}`); return data; } catch (error) { console.error('Error fetching balance:', error); } }; getPlayerBalance('daimyh');
import requests def get_player_stats(ign): url = f"https://tryapi.daimy.xyz/api/v1/stats/{ign}" headers = { 'x-api-key': 'TRYAPI_I4I5J34L5', 'Content-Type': 'application/json' } try: response = requests.get(url, headers=headers) response.raise_for_status() data = response.json() print(f"Stats for {data['ign']}:") for stat, value in data['stats'].items(): print(f" {stat}: {value}") return data except requests.RequestException as e: print(f"Error: {e}") get_player_stats('daimyh')
curl -X GET "https://tryapi.daimy.xyz/api/v1/bot/status" \
-H "x-api-key: TRYAPI_I4I5J34L5" \
-H "Content-Type: application/json"
Test the API endpoints directly from this documentation. Enter your API base URL and try different requests.
400 Bad Request - Invalid IGN format401 Unauthorized - Missing or invalid API key404 Not Found - Player not found500 Internal Server Error500 Request timed out503 Service Unavailable - Bot offline