Server Info API Documentation
This documentation provides details on how to interact with the Game Servers Info API.
Endpoint
[GET]
https://trackmyservers.com/api/server-info.php?ip={ip}&port={port}&apikey=YOUR_KEY
Alternative (by server ID):
[GET]
https://trackmyservers.com/api/server-info.php?id={server_id}&apikey=YOUR_KEY
Response Example
{ "status": 200, "hostname": "Example server", "ip": "192.168.1.1", "port": 27015, "game": "Counter-Strike 1.6", "game_code": "cs16", "location": "RO", "description": "Awesome server", "website": "https://example.com", "discord_url": "https://discord.gg/example", "owner_url": "https://trackmyservers.com/servers/owned-by/1", "rank": 1, "votes": 42, "online_players": 2, "max_players": 32, "map": "de_dust2", "server_status": "online", "uptime": 99.5, "last_scan_human": "2 minutes ago", "last_scan_timestamp": "2025-04-06T23:00:18.000000Z", "connect_url": "steam://connect/192.168.1.1:27015", "players": [ { "name": "Player 1", "score": 2, "time": 200.322 }, { "name": "Awesome player", "score": 25, "time": 1002.238 } ] }
Notes
API Key can be obtained from the "My account" section.
API is Rate Limited to 10 requests / min for an API Key.
Replace {ip} and {port} with the actual IP and port of the server.
Response is cached for 1 minute.
Server must be registered on TrackMyServers.com - Game Server Monitoring to be queryable via the API.
Error Responses
| Status | Meaning |
|---|---|
401 | Invalid or missing API Key |
404 | Server not found in database |
429 | Rate limit exceeded (10 req/min) |