GameAPIs

Counter-Strike 1.6 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. 27015

Single Server

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

Multiple Servers

GET https://use.gameapis.net/cs/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/cs/query/players/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "players": {
        "online": 2,
        "max": 32,
        "list": [
            {
                "name": "Player",
                "score": 0,
                "time": {
                    "seconds": 622.31860351562,
                    "minutes": 10.37197672526,
                    "hours": 0.17286627875434
                }
            },
            {
                "name": "TAZ",
                "score": 9,
                "time": {
                    "seconds": 348.03500366211,
                    "minutes": 5.8005833943685,
                    "hours": 0.096676389906141
                }
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/cs/query/players/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "protocol": "udp",
        "players": {
            "online": 2,
            "max": 32,
            "list": [
                {
                    "name": "Player",
                    "score": 0,
                    "time": {
                        "seconds": 622.31860351562,
                        "minutes": 10.37197672526,
                        "hours": 0.17286627875434
                    }
                },
                {
                    "name": "TAZ",
                    "score": 9,
                    "time": {
                        "seconds": 348.03500366211,
                        "minutes": 5.8005833943685,
                        "hours": 0.096676389906141
                    }
                }
            ]
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP2}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "protocol": "udp",
        "players": {
            "online": 0,
            "max": 32,
            "list": null
        },
        "cached": false
    }
}

Single Server

GET https://use.gameapis.net/cs/query/info/{IP}:{PORT}
{
    "status": true,
    "hostname": "{IP}",
    "port": {PORT},
    "queryPort": {PORT},
    "protocol": "udp",
    "name": "cs 1.6 server",
    "map": "de_dust2",
    "vac_secured": true,
    "password_protected": false,
    "join": "steam://connect/{IP}:{PORT}/",
    "version": "1.1.2.7/Stdio",
    "protocol": 48,
    "players": {
        "online": 2,
        "max": 32,
        "list": [
            {
                "name": "Player",
                "score": 0,
                "time": {
                    "seconds": 622.31860351562,
                    "minutes": 10.37197672526,
                    "hours": 0.17286627875434
                }
            },
            {
                "name": "TAZ",
                "score": 9,
                "time": {
                    "seconds": 348.03500366211,
                    "minutes": 5.8005833943685,
                    "hours": 0.096676389906141
                }
            }
        ]
    },
    "cached": false
}

Multiple Servers

GET https://use.gameapis.net/cs/query/info/{IP}:{PORT},{IP2}:{PORT2}
{
    "{IP}:{PORT}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT},
        "queryPort": {PORT},
        "name": "cs 1.6 server",
        "map": "de_dust2",
        "vac_secured": true,
        "password_protected": false,
        "join": "steam://connect/{IP}:{PORT}/",
        "version": "1.1.2.7/Stdio",
        "protocol": "udp",
        "players": {
            "online": 2,
            "max": 32,
            "list": [
                {
                    "name": "Player",
                    "score": 0,
                    "time": {
                        "seconds": 622.31860351562,
                        "minutes": 10.37197672526,
                        "hours": 0.17286627875434
                    }
                },
                {
                    "name": "TAZ",
                    "score": 9,
                    "time": {
                        "seconds": 348.03500366211,
                        "minutes": 5.8005833943685,
                        "hours": 0.096676389906141
                    }
                }
            ]
        },
        "cached": false
    },
    "{IP2}:{PORT2}": {
        "status": true,
        "hostname": "{IP}",
        "port": {PORT2},
        "queryPort": {PORT2},
        "name": "cs 1.6 server",
        "map": "de_inferno",
        "vac_secured": true,
        "password_protected": false,
        "join": "steam://connect/{IP2}:{PORT2}/",
        "version": "1.1.2.7/Stdio",
        "protocol": "udp",
        "players": {
            "online": 0,
            "max": 32,
            "list": null
        },
        "cached": false
    }
}