GameAPIs

Quake 2 Documentation

Parameters

Required Parameter Type Description Default Value
True IP String Server's IP address or domain None
False Port Integer The port of which the game server is running on. 27960

Single Server

GET https://use.gameapis.net/quake2/query/status/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/quake2/query/status/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "protocol": "udp",
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "protocol": "udp",
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/quake2/query/players/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "players": {
        "online": 1,
        "max": "28",
        "list": [
            {
                "frags": "22",
                "ping": "68",
                "name": "zonbie"
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/quake2/query/players/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "protocol": "udp",
        "players": {
            "online": 0,
            "max": 24,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "protocol": "udp",
        "players": {
            "online": 1,
            "max": "28",
            "list": [
                {
                    "frags": "22",
                    "ping": "68",
                    "name": "zonbie"
                }
            ]
        },
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/quake2/query/info/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "name": "Quake2 Server",
    "map": "q2dm3",
    "password_protected": false,
    "version": "R1Q2 b7864 i386 Oct  1 2008 Linux",
    "protocol": "udp",
    "players": {
        "online": 1,
        "max": "28",
        "list": [
            {
                "frags": "4",
                "ping": "54",
                "name": "NotForLong",
                "address": ""
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/quake2/query/info/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "name": "Quake2 Server",
        "map": "campgrounds",
        "password_protected": false,
        "version": "R1Q2 b7864 i386 Oct  1 2008 Linux",
        "protocol": "udp",
        "players": {
            "online": 0,
            "max": 24,
            "list": null
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "name": "Quake2 Server",
        "map": "q2dm3",
        "version": "R1Q2 b7864 i386 Oct  1 2008 Linux",
        "protocol": "udp",
        "players": {
            "online": 1,
            "max": 28,
            "list": [
                {
                    "frags": "4",
                    "ping": "54",
                    "name": "NotForLong",
                    "address": ""
                }
            ]
        },
        "cached": false
    }
}