Get information about any game server in seconds. Simply enter the IP address and port, select the game, and GamePing will provide you with real-time information about the server's status, player count, and other parameters.
Base URL for API requests:
https://gameping.run/api/{game}?ip={ip}&port={port} The game identifier. Popular games include:
minecraftcsgorustpalworldarma3counterstrike2dayzvalheimsdtdThe server's IP address or hostname.
The server's port number.
The API returns JSON with the following common fields:
{
"name": "Server name",
"map": "Current map name",
"password": false,
"maxplayers": 20,
"numplayers": 1,
"players": [...],
"bots": [...],
"connect": "server:port",
"ping": 6,
"online": true,
"version": "Game version"
} fetch('https://gameping.run/api/minecraft?ip=play.example.com&port=25565') .then(response => response.json()) .then(data => { if (data.online) { console.log(`Server: ${data.name}`); console.log(`Players: ${data.numplayers}/${data.maxplayers}`); } }); import requests response = requests.get('https://gameping.run/api/minecraft?ip=play.example.com&port=25565') data = response.json() if data['online']: print(f"Server: {data['name']}") print(f"Players: {data['numplayers']}/{data['maxplayers']}") $response = file_get_contents('https://gameping.run/api/minecraft?ip=play.example.com&port=25565'); $data = json_decode($response, true); if ($data['online']) { echo "Server: " . $data['name'] . "\n"; echo "Players: " . $data['numplayers'] . "/" . $data['maxplayers']; }When a server is offline or unreachable, the response will include:
{ "online": false, "error": "Unable to connect to server" }