Server Info API Documentation
This documentation explains how to use the Game Servers Info API.
Endpoint
[GET]
https://servertracker.playpx.ro/api/server-info.php?ip={ip}&port={port}&apikey=YOUR_KEY
Alternative (by server ID):
[GET]
https://servertracker.playpx.ro/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://servertracker.playpx.ro/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
The API key can be obtained from the "My account".
The API is limited to 10 requests per minute for each API key.
Replace {ip} and {port} with the server's actual IP address and port.
The response is cached for 1 minute.
The server must be registered on ServerTracker - PLAYPX Game Server Monitoring to be queried through the API.
Error Responses
| Status | Meaning |
|---|---|
401 | Invalid or missing API key |
404 | Server not found in the database |
429 | Rate limit exceeded (10 requests/minute) |